From ee0e71d94d3e9888d899625af1080e199eeb5215 Mon Sep 17 00:00:00 2001 From: tangzw Date: Fri, 24 Feb 2023 18:08:53 +0800 Subject: [PATCH] =?UTF-8?q?=E8=93=84=E6=B0=B4=E6=B1=A0=E6=88=AA=E9=9D=A2?= =?UTF-8?q?=E7=A7=AF?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../exercise.md" | 15 +++++++++++++++ .../test_cases/1.in" | 1 + .../test_cases/1.output" | 1 + .../test_cases/10.in" | 1 + .../test_cases/10.output" | 1 + .../test_cases/2.in" | 1 + .../test_cases/2.output" | 1 + .../test_cases/3.in" | 1 + .../test_cases/3.output" | 1 + .../test_cases/4.in" | 1 + .../test_cases/4.output" | 1 + .../test_cases/5.in" | 1 + .../test_cases/5.output" | 1 + .../test_cases/6.in" | 1 + .../test_cases/6.output" | 1 + .../test_cases/7.in" | 1 + .../test_cases/7.output" | 1 + .../test_cases/8.in" | 1 + .../test_cases/8.output" | 1 + .../test_cases/9.in" | 1 + .../test_cases/9.output" | 1 + .../tangzw/\345\233\260\351\232\276/.gitkeep" | 1 + .../tangzw/\347\256\200\345\215\225/.gitkeep" | 0 23 files changed, 36 insertions(+) create mode 100644 "exercises/tangzw/\344\270\255\347\255\211/\350\223\204\346\260\264\346\261\240\346\210\252\351\235\242\347\247\257/exercise.md" create mode 100644 "exercises/tangzw/\344\270\255\347\255\211/\350\223\204\346\260\264\346\261\240\346\210\252\351\235\242\347\247\257/test_cases/1.in" create mode 100644 "exercises/tangzw/\344\270\255\347\255\211/\350\223\204\346\260\264\346\261\240\346\210\252\351\235\242\347\247\257/test_cases/1.output" create mode 100644 "exercises/tangzw/\344\270\255\347\255\211/\350\223\204\346\260\264\346\261\240\346\210\252\351\235\242\347\247\257/test_cases/10.in" create mode 100644 "exercises/tangzw/\344\270\255\347\255\211/\350\223\204\346\260\264\346\261\240\346\210\252\351\235\242\347\247\257/test_cases/10.output" create mode 100644 "exercises/tangzw/\344\270\255\347\255\211/\350\223\204\346\260\264\346\261\240\346\210\252\351\235\242\347\247\257/test_cases/2.in" create mode 100644 "exercises/tangzw/\344\270\255\347\255\211/\350\223\204\346\260\264\346\261\240\346\210\252\351\235\242\347\247\257/test_cases/2.output" create mode 100644 "exercises/tangzw/\344\270\255\347\255\211/\350\223\204\346\260\264\346\261\240\346\210\252\351\235\242\347\247\257/test_cases/3.in" create mode 100644 "exercises/tangzw/\344\270\255\347\255\211/\350\223\204\346\260\264\346\261\240\346\210\252\351\235\242\347\247\257/test_cases/3.output" create mode 100644 "exercises/tangzw/\344\270\255\347\255\211/\350\223\204\346\260\264\346\261\240\346\210\252\351\235\242\347\247\257/test_cases/4.in" create mode 100644 "exercises/tangzw/\344\270\255\347\255\211/\350\223\204\346\260\264\346\261\240\346\210\252\351\235\242\347\247\257/test_cases/4.output" create mode 100644 "exercises/tangzw/\344\270\255\347\255\211/\350\223\204\346\260\264\346\261\240\346\210\252\351\235\242\347\247\257/test_cases/5.in" create mode 100644 "exercises/tangzw/\344\270\255\347\255\211/\350\223\204\346\260\264\346\261\240\346\210\252\351\235\242\347\247\257/test_cases/5.output" create mode 100644 "exercises/tangzw/\344\270\255\347\255\211/\350\223\204\346\260\264\346\261\240\346\210\252\351\235\242\347\247\257/test_cases/6.in" create mode 100644 "exercises/tangzw/\344\270\255\347\255\211/\350\223\204\346\260\264\346\261\240\346\210\252\351\235\242\347\247\257/test_cases/6.output" create mode 100644 "exercises/tangzw/\344\270\255\347\255\211/\350\223\204\346\260\264\346\261\240\346\210\252\351\235\242\347\247\257/test_cases/7.in" create mode 100644 "exercises/tangzw/\344\270\255\347\255\211/\350\223\204\346\260\264\346\261\240\346\210\252\351\235\242\347\247\257/test_cases/7.output" create mode 100644 "exercises/tangzw/\344\270\255\347\255\211/\350\223\204\346\260\264\346\261\240\346\210\252\351\235\242\347\247\257/test_cases/8.in" create mode 100644 "exercises/tangzw/\344\270\255\347\255\211/\350\223\204\346\260\264\346\261\240\346\210\252\351\235\242\347\247\257/test_cases/8.output" create mode 100644 "exercises/tangzw/\344\270\255\347\255\211/\350\223\204\346\260\264\346\261\240\346\210\252\351\235\242\347\247\257/test_cases/9.in" create mode 100644 "exercises/tangzw/\344\270\255\347\255\211/\350\223\204\346\260\264\346\261\240\346\210\252\351\235\242\347\247\257/test_cases/9.output" create mode 100644 "exercises/tangzw/\345\233\260\351\232\276/.gitkeep" create mode 100644 "exercises/tangzw/\347\256\200\345\215\225/.gitkeep" diff --git "a/exercises/tangzw/\344\270\255\347\255\211/\350\223\204\346\260\264\346\261\240\346\210\252\351\235\242\347\247\257/exercise.md" "b/exercises/tangzw/\344\270\255\347\255\211/\350\223\204\346\260\264\346\261\240\346\210\252\351\235\242\347\247\257/exercise.md" new file mode 100644 index 0000000..818a9a3 --- /dev/null +++ "b/exercises/tangzw/\344\270\255\347\255\211/\350\223\204\346\260\264\346\261\240\346\210\252\351\235\242\347\247\257/exercise.md" @@ -0,0 +1,15 @@ +# 蓄水池截面积 + +工匠用高度不同但宽度一致的隔板修建蓄水池,将隔板按顺序码好后,再将其前面和后面封闭,求蓄水池的截面积 + +## 输入描述 +输入一个元素不为负的数组,表示每个石块的排列顺序和高度,当数组元素为0表示该块板的地方空着不放隔板 + +## 输出描述 +输出截面积 + +## 输入样例 +[2,1,0,3] + +## 输出样例 +3 \ No newline at end of file diff --git "a/exercises/tangzw/\344\270\255\347\255\211/\350\223\204\346\260\264\346\261\240\346\210\252\351\235\242\347\247\257/test_cases/1.in" "b/exercises/tangzw/\344\270\255\347\255\211/\350\223\204\346\260\264\346\261\240\346\210\252\351\235\242\347\247\257/test_cases/1.in" new file mode 100644 index 0000000..4ed213a --- /dev/null +++ "b/exercises/tangzw/\344\270\255\347\255\211/\350\223\204\346\260\264\346\261\240\346\210\252\351\235\242\347\247\257/test_cases/1.in" @@ -0,0 +1 @@ +[1,0,1] \ No newline at end of file diff --git "a/exercises/tangzw/\344\270\255\347\255\211/\350\223\204\346\260\264\346\261\240\346\210\252\351\235\242\347\247\257/test_cases/1.output" "b/exercises/tangzw/\344\270\255\347\255\211/\350\223\204\346\260\264\346\261\240\346\210\252\351\235\242\347\247\257/test_cases/1.output" new file mode 100644 index 0000000..56a6051 --- /dev/null +++ "b/exercises/tangzw/\344\270\255\347\255\211/\350\223\204\346\260\264\346\261\240\346\210\252\351\235\242\347\247\257/test_cases/1.output" @@ -0,0 +1 @@ +1 \ No newline at end of file diff --git "a/exercises/tangzw/\344\270\255\347\255\211/\350\223\204\346\260\264\346\261\240\346\210\252\351\235\242\347\247\257/test_cases/10.in" "b/exercises/tangzw/\344\270\255\347\255\211/\350\223\204\346\260\264\346\261\240\346\210\252\351\235\242\347\247\257/test_cases/10.in" new file mode 100644 index 0000000..0a81a6e --- /dev/null +++ "b/exercises/tangzw/\344\270\255\347\255\211/\350\223\204\346\260\264\346\261\240\346\210\252\351\235\242\347\247\257/test_cases/10.in" @@ -0,0 +1 @@ +[13,2,3,11,4,5,6,9,0,1,3,7] \ No newline at end of file diff --git "a/exercises/tangzw/\344\270\255\347\255\211/\350\223\204\346\260\264\346\261\240\346\210\252\351\235\242\347\247\257/test_cases/10.output" "b/exercises/tangzw/\344\270\255\347\255\211/\350\223\204\346\260\264\346\261\240\346\210\252\351\235\242\347\247\257/test_cases/10.output" new file mode 100644 index 0000000..abc4eff --- /dev/null +++ "b/exercises/tangzw/\344\270\255\347\255\211/\350\223\204\346\260\264\346\261\240\346\210\252\351\235\242\347\247\257/test_cases/10.output" @@ -0,0 +1 @@ +46 \ No newline at end of file diff --git "a/exercises/tangzw/\344\270\255\347\255\211/\350\223\204\346\260\264\346\261\240\346\210\252\351\235\242\347\247\257/test_cases/2.in" "b/exercises/tangzw/\344\270\255\347\255\211/\350\223\204\346\260\264\346\261\240\346\210\252\351\235\242\347\247\257/test_cases/2.in" new file mode 100644 index 0000000..46facd9 --- /dev/null +++ "b/exercises/tangzw/\344\270\255\347\255\211/\350\223\204\346\260\264\346\261\240\346\210\252\351\235\242\347\247\257/test_cases/2.in" @@ -0,0 +1 @@ +[1,0,0,1] \ No newline at end of file diff --git "a/exercises/tangzw/\344\270\255\347\255\211/\350\223\204\346\260\264\346\261\240\346\210\252\351\235\242\347\247\257/test_cases/2.output" "b/exercises/tangzw/\344\270\255\347\255\211/\350\223\204\346\260\264\346\261\240\346\210\252\351\235\242\347\247\257/test_cases/2.output" new file mode 100644 index 0000000..d8263ee --- /dev/null +++ "b/exercises/tangzw/\344\270\255\347\255\211/\350\223\204\346\260\264\346\261\240\346\210\252\351\235\242\347\247\257/test_cases/2.output" @@ -0,0 +1 @@ +2 \ No newline at end of file diff --git "a/exercises/tangzw/\344\270\255\347\255\211/\350\223\204\346\260\264\346\261\240\346\210\252\351\235\242\347\247\257/test_cases/3.in" "b/exercises/tangzw/\344\270\255\347\255\211/\350\223\204\346\260\264\346\261\240\346\210\252\351\235\242\347\247\257/test_cases/3.in" new file mode 100644 index 0000000..cf4a199 --- /dev/null +++ "b/exercises/tangzw/\344\270\255\347\255\211/\350\223\204\346\260\264\346\261\240\346\210\252\351\235\242\347\247\257/test_cases/3.in" @@ -0,0 +1 @@ +[2,0,0,1] \ No newline at end of file diff --git "a/exercises/tangzw/\344\270\255\347\255\211/\350\223\204\346\260\264\346\261\240\346\210\252\351\235\242\347\247\257/test_cases/3.output" "b/exercises/tangzw/\344\270\255\347\255\211/\350\223\204\346\260\264\346\261\240\346\210\252\351\235\242\347\247\257/test_cases/3.output" new file mode 100644 index 0000000..d8263ee --- /dev/null +++ "b/exercises/tangzw/\344\270\255\347\255\211/\350\223\204\346\260\264\346\261\240\346\210\252\351\235\242\347\247\257/test_cases/3.output" @@ -0,0 +1 @@ +2 \ No newline at end of file diff --git "a/exercises/tangzw/\344\270\255\347\255\211/\350\223\204\346\260\264\346\261\240\346\210\252\351\235\242\347\247\257/test_cases/4.in" "b/exercises/tangzw/\344\270\255\347\255\211/\350\223\204\346\260\264\346\261\240\346\210\252\351\235\242\347\247\257/test_cases/4.in" new file mode 100644 index 0000000..a7574e2 --- /dev/null +++ "b/exercises/tangzw/\344\270\255\347\255\211/\350\223\204\346\260\264\346\261\240\346\210\252\351\235\242\347\247\257/test_cases/4.in" @@ -0,0 +1 @@ +[5,1,0,3,1,2] \ No newline at end of file diff --git "a/exercises/tangzw/\344\270\255\347\255\211/\350\223\204\346\260\264\346\261\240\346\210\252\351\235\242\347\247\257/test_cases/4.output" "b/exercises/tangzw/\344\270\255\347\255\211/\350\223\204\346\260\264\346\261\240\346\210\252\351\235\242\347\247\257/test_cases/4.output" new file mode 100644 index 0000000..62f9457 --- /dev/null +++ "b/exercises/tangzw/\344\270\255\347\255\211/\350\223\204\346\260\264\346\261\240\346\210\252\351\235\242\347\247\257/test_cases/4.output" @@ -0,0 +1 @@ +6 \ No newline at end of file diff --git "a/exercises/tangzw/\344\270\255\347\255\211/\350\223\204\346\260\264\346\261\240\346\210\252\351\235\242\347\247\257/test_cases/5.in" "b/exercises/tangzw/\344\270\255\347\255\211/\350\223\204\346\260\264\346\261\240\346\210\252\351\235\242\347\247\257/test_cases/5.in" new file mode 100644 index 0000000..6e7ea63 --- /dev/null +++ "b/exercises/tangzw/\344\270\255\347\255\211/\350\223\204\346\260\264\346\261\240\346\210\252\351\235\242\347\247\257/test_cases/5.in" @@ -0,0 +1 @@ +[0] \ No newline at end of file diff --git "a/exercises/tangzw/\344\270\255\347\255\211/\350\223\204\346\260\264\346\261\240\346\210\252\351\235\242\347\247\257/test_cases/5.output" "b/exercises/tangzw/\344\270\255\347\255\211/\350\223\204\346\260\264\346\261\240\346\210\252\351\235\242\347\247\257/test_cases/5.output" new file mode 100644 index 0000000..c227083 --- /dev/null +++ "b/exercises/tangzw/\344\270\255\347\255\211/\350\223\204\346\260\264\346\261\240\346\210\252\351\235\242\347\247\257/test_cases/5.output" @@ -0,0 +1 @@ +0 \ No newline at end of file diff --git "a/exercises/tangzw/\344\270\255\347\255\211/\350\223\204\346\260\264\346\261\240\346\210\252\351\235\242\347\247\257/test_cases/6.in" "b/exercises/tangzw/\344\270\255\347\255\211/\350\223\204\346\260\264\346\261\240\346\210\252\351\235\242\347\247\257/test_cases/6.in" new file mode 100644 index 0000000..f2eda87 --- /dev/null +++ "b/exercises/tangzw/\344\270\255\347\255\211/\350\223\204\346\260\264\346\261\240\346\210\252\351\235\242\347\247\257/test_cases/6.in" @@ -0,0 +1 @@ +[1,3,5,7,10] \ No newline at end of file diff --git "a/exercises/tangzw/\344\270\255\347\255\211/\350\223\204\346\260\264\346\261\240\346\210\252\351\235\242\347\247\257/test_cases/6.output" "b/exercises/tangzw/\344\270\255\347\255\211/\350\223\204\346\260\264\346\261\240\346\210\252\351\235\242\347\247\257/test_cases/6.output" new file mode 100644 index 0000000..c227083 --- /dev/null +++ "b/exercises/tangzw/\344\270\255\347\255\211/\350\223\204\346\260\264\346\261\240\346\210\252\351\235\242\347\247\257/test_cases/6.output" @@ -0,0 +1 @@ +0 \ No newline at end of file diff --git "a/exercises/tangzw/\344\270\255\347\255\211/\350\223\204\346\260\264\346\261\240\346\210\252\351\235\242\347\247\257/test_cases/7.in" "b/exercises/tangzw/\344\270\255\347\255\211/\350\223\204\346\260\264\346\261\240\346\210\252\351\235\242\347\247\257/test_cases/7.in" new file mode 100644 index 0000000..2cd1d89 --- /dev/null +++ "b/exercises/tangzw/\344\270\255\347\255\211/\350\223\204\346\260\264\346\261\240\346\210\252\351\235\242\347\247\257/test_cases/7.in" @@ -0,0 +1 @@ +[6,5,4,3,2,1] \ No newline at end of file diff --git "a/exercises/tangzw/\344\270\255\347\255\211/\350\223\204\346\260\264\346\261\240\346\210\252\351\235\242\347\247\257/test_cases/7.output" "b/exercises/tangzw/\344\270\255\347\255\211/\350\223\204\346\260\264\346\261\240\346\210\252\351\235\242\347\247\257/test_cases/7.output" new file mode 100644 index 0000000..c227083 --- /dev/null +++ "b/exercises/tangzw/\344\270\255\347\255\211/\350\223\204\346\260\264\346\261\240\346\210\252\351\235\242\347\247\257/test_cases/7.output" @@ -0,0 +1 @@ +0 \ No newline at end of file diff --git "a/exercises/tangzw/\344\270\255\347\255\211/\350\223\204\346\260\264\346\261\240\346\210\252\351\235\242\347\247\257/test_cases/8.in" "b/exercises/tangzw/\344\270\255\347\255\211/\350\223\204\346\260\264\346\261\240\346\210\252\351\235\242\347\247\257/test_cases/8.in" new file mode 100644 index 0000000..816378b --- /dev/null +++ "b/exercises/tangzw/\344\270\255\347\255\211/\350\223\204\346\260\264\346\261\240\346\210\252\351\235\242\347\247\257/test_cases/8.in" @@ -0,0 +1 @@ +[4,0,1,5] \ No newline at end of file diff --git "a/exercises/tangzw/\344\270\255\347\255\211/\350\223\204\346\260\264\346\261\240\346\210\252\351\235\242\347\247\257/test_cases/8.output" "b/exercises/tangzw/\344\270\255\347\255\211/\350\223\204\346\260\264\346\261\240\346\210\252\351\235\242\347\247\257/test_cases/8.output" new file mode 100644 index 0000000..c793025 --- /dev/null +++ "b/exercises/tangzw/\344\270\255\347\255\211/\350\223\204\346\260\264\346\261\240\346\210\252\351\235\242\347\247\257/test_cases/8.output" @@ -0,0 +1 @@ +7 \ No newline at end of file diff --git "a/exercises/tangzw/\344\270\255\347\255\211/\350\223\204\346\260\264\346\261\240\346\210\252\351\235\242\347\247\257/test_cases/9.in" "b/exercises/tangzw/\344\270\255\347\255\211/\350\223\204\346\260\264\346\261\240\346\210\252\351\235\242\347\247\257/test_cases/9.in" new file mode 100644 index 0000000..3aed854 --- /dev/null +++ "b/exercises/tangzw/\344\270\255\347\255\211/\350\223\204\346\260\264\346\261\240\346\210\252\351\235\242\347\247\257/test_cases/9.in" @@ -0,0 +1 @@ +[5,0,1,9,7,3,4,2,3] \ No newline at end of file diff --git "a/exercises/tangzw/\344\270\255\347\255\211/\350\223\204\346\260\264\346\261\240\346\210\252\351\235\242\347\247\257/test_cases/9.output" "b/exercises/tangzw/\344\270\255\347\255\211/\350\223\204\346\260\264\346\261\240\346\210\252\351\235\242\347\247\257/test_cases/9.output" new file mode 100644 index 0000000..9d60796 --- /dev/null +++ "b/exercises/tangzw/\344\270\255\347\255\211/\350\223\204\346\260\264\346\261\240\346\210\252\351\235\242\347\247\257/test_cases/9.output" @@ -0,0 +1 @@ +11 \ No newline at end of file diff --git "a/exercises/tangzw/\345\233\260\351\232\276/.gitkeep" "b/exercises/tangzw/\345\233\260\351\232\276/.gitkeep" new file mode 100644 index 0000000..8b13789 --- /dev/null +++ "b/exercises/tangzw/\345\233\260\351\232\276/.gitkeep" @@ -0,0 +1 @@ + diff --git "a/exercises/tangzw/\347\256\200\345\215\225/.gitkeep" "b/exercises/tangzw/\347\256\200\345\215\225/.gitkeep" new file mode 100644 index 0000000..e69de29 -- GitLab