diff --git a/first week/Minesweeper Game/Minesweeper Game.md b/first week/Minesweeper Game/Minesweeper Game.md new file mode 100644 index 0000000..45f9eae --- /dev/null +++ b/first week/Minesweeper Game/Minesweeper Game.md @@ -0,0 +1,44 @@ +# Minesweeper Game + +## 题目描述 + +扫雷游戏是一款十分经典的单机小游戏。在 n 行 m 列的雷区中有一些格子含有地雷(称之为地雷格),其他格子不含地雷(称之为非地雷格)。玩家翻开一个非地雷格时,该格将会出现一个数字——提示周围格子中有多少个是地雷格。游戏的目标是在不翻出任何地雷格的条件下,找出所有的非地雷格。 + +现在给出 n 行 m 列的雷区中的地雷分布,要求计算出每个非地雷格周围的地雷格数。 + +注:一个格子的周围格子包括其上、下、左、右、左上、右上、左下、右下八个方向上与之直接相邻的格子。 + +## 输入格式 + +第一行是用一个空格隔开的两个整数 n 和 m,分别表示雷区的行数和列数。 + +接下来 n 行,每行 m 个字符,描述了雷区中的地雷分布情况。字符 * 表示相应格子是地雷格,字符 ? 表示相应格子是非地雷格。相邻字符之间无分隔符。 + +## 输出格式 + +输出文件包含 n 行,每行 m 个字符,描述整个雷区。用 * 表示地雷格,用周围的地雷个数表示非地雷格。相邻字符之间无分隔符。 + +## 输入输出样例 + +### 输入 + +``` +3 3 +*?? +??? +?*? +``` + +### 输出 + +``` +*10 +221 +1*1 +``` + + + +## 说明/提示 + +对于 100% 的数据,1≤n≤100, 1≤m≤100。 diff --git a/first week/Minesweeper Game/test_cases/test1.in b/first week/Minesweeper Game/test_cases/test1.in new file mode 100644 index 0000000..956211f --- /dev/null +++ b/first week/Minesweeper Game/test_cases/test1.in @@ -0,0 +1,4 @@ +3 3 +*?? +??? +?*? \ No newline at end of file diff --git a/first week/Minesweeper Game/test_cases/test1.out b/first week/Minesweeper Game/test_cases/test1.out new file mode 100644 index 0000000..96a4a33 --- /dev/null +++ b/first week/Minesweeper Game/test_cases/test1.out @@ -0,0 +1,3 @@ +*10 +221 +1*1 \ No newline at end of file diff --git a/first week/Minesweeper Game/test_cases/test10.in b/first week/Minesweeper Game/test_cases/test10.in new file mode 100644 index 0000000..cdc90ae --- /dev/null +++ b/first week/Minesweeper Game/test_cases/test10.in @@ -0,0 +1,2 @@ +1 8 +?*??*??? \ No newline at end of file diff --git a/first week/Minesweeper Game/test_cases/test10.out b/first week/Minesweeper Game/test_cases/test10.out new file mode 100644 index 0000000..e985645 --- /dev/null +++ b/first week/Minesweeper Game/test_cases/test10.out @@ -0,0 +1 @@ +1*11*100 \ No newline at end of file diff --git a/first week/Minesweeper Game/test_cases/test11.in b/first week/Minesweeper Game/test_cases/test11.in new file mode 100644 index 0000000..25d3fd2 --- /dev/null +++ b/first week/Minesweeper Game/test_cases/test11.in @@ -0,0 +1,6 @@ +5 6 +??*??? +?*??*? +??*??? +*????* +?????? \ No newline at end of file diff --git a/first week/Minesweeper Game/test_cases/test11.out b/first week/Minesweeper Game/test_cases/test11.out new file mode 100644 index 0000000..52e4e3f --- /dev/null +++ b/first week/Minesweeper Game/test_cases/test11.out @@ -0,0 +1,5 @@ +12*211 +1*33*1 +23*222 +*2111* +110011 \ No newline at end of file diff --git a/first week/Minesweeper Game/test_cases/test2.in b/first week/Minesweeper Game/test_cases/test2.in new file mode 100644 index 0000000..b6f38f4 --- /dev/null +++ b/first week/Minesweeper Game/test_cases/test2.in @@ -0,0 +1,3 @@ +2 3 +?*? +*?? \ No newline at end of file diff --git a/first week/Minesweeper Game/test_cases/test2.out b/first week/Minesweeper Game/test_cases/test2.out new file mode 100644 index 0000000..69e6402 --- /dev/null +++ b/first week/Minesweeper Game/test_cases/test2.out @@ -0,0 +1,2 @@ +2*1 +*21 \ No newline at end of file diff --git a/first week/Minesweeper Game/test_cases/test3.in b/first week/Minesweeper Game/test_cases/test3.in new file mode 100644 index 0000000..20d04c9 --- /dev/null +++ b/first week/Minesweeper Game/test_cases/test3.in @@ -0,0 +1,2 @@ +1 1 +* \ No newline at end of file diff --git a/first week/Minesweeper Game/test_cases/test3.out b/first week/Minesweeper Game/test_cases/test3.out new file mode 100644 index 0000000..f59ec20 --- /dev/null +++ b/first week/Minesweeper Game/test_cases/test3.out @@ -0,0 +1 @@ +* \ No newline at end of file diff --git a/first week/Minesweeper Game/test_cases/test4.in b/first week/Minesweeper Game/test_cases/test4.in new file mode 100644 index 0000000..1cb7825 --- /dev/null +++ b/first week/Minesweeper Game/test_cases/test4.in @@ -0,0 +1,2 @@ +1 1 +? \ No newline at end of file diff --git a/first week/Minesweeper Game/test_cases/test4.out b/first week/Minesweeper Game/test_cases/test4.out new file mode 100644 index 0000000..c227083 --- /dev/null +++ b/first week/Minesweeper Game/test_cases/test4.out @@ -0,0 +1 @@ +0 \ No newline at end of file diff --git a/first week/Minesweeper Game/test_cases/test5.in b/first week/Minesweeper Game/test_cases/test5.in new file mode 100644 index 0000000..d742862 --- /dev/null +++ b/first week/Minesweeper Game/test_cases/test5.in @@ -0,0 +1,3 @@ +2 2 +?? +?? \ No newline at end of file diff --git a/first week/Minesweeper Game/test_cases/test5.out b/first week/Minesweeper Game/test_cases/test5.out new file mode 100644 index 0000000..7afe504 --- /dev/null +++ b/first week/Minesweeper Game/test_cases/test5.out @@ -0,0 +1,2 @@ +00 +00 \ No newline at end of file diff --git a/first week/Minesweeper Game/test_cases/test6.in b/first week/Minesweeper Game/test_cases/test6.in new file mode 100644 index 0000000..8813a94 --- /dev/null +++ b/first week/Minesweeper Game/test_cases/test6.in @@ -0,0 +1,3 @@ +2 2 +** +** \ No newline at end of file diff --git a/first week/Minesweeper Game/test_cases/test6.out b/first week/Minesweeper Game/test_cases/test6.out new file mode 100644 index 0000000..cc20c6e --- /dev/null +++ b/first week/Minesweeper Game/test_cases/test6.out @@ -0,0 +1,2 @@ +** +** \ No newline at end of file diff --git a/first week/Minesweeper Game/test_cases/test7.in b/first week/Minesweeper Game/test_cases/test7.in new file mode 100644 index 0000000..874b437 --- /dev/null +++ b/first week/Minesweeper Game/test_cases/test7.in @@ -0,0 +1,5 @@ +4 4 +?*?? +*??? +??*? +???* \ No newline at end of file diff --git a/first week/Minesweeper Game/test_cases/test7.out b/first week/Minesweeper Game/test_cases/test7.out new file mode 100644 index 0000000..2fbdb83 --- /dev/null +++ b/first week/Minesweeper Game/test_cases/test7.out @@ -0,0 +1,4 @@ +2*10 +*321 +12*2 +012* \ No newline at end of file diff --git a/first week/Minesweeper Game/test_cases/test8.in b/first week/Minesweeper Game/test_cases/test8.in new file mode 100644 index 0000000..6c83740 --- /dev/null +++ b/first week/Minesweeper Game/test_cases/test8.in @@ -0,0 +1,4 @@ +3 5 +??*?? +?*??* +*???? \ No newline at end of file diff --git a/first week/Minesweeper Game/test_cases/test8.out b/first week/Minesweeper Game/test_cases/test8.out new file mode 100644 index 0000000..a9f78f1 --- /dev/null +++ b/first week/Minesweeper Game/test_cases/test8.out @@ -0,0 +1,3 @@ +12*21 +2*22* +*2111 \ No newline at end of file diff --git a/first week/Minesweeper Game/test_cases/test9.in b/first week/Minesweeper Game/test_cases/test9.in new file mode 100644 index 0000000..0c7f277 --- /dev/null +++ b/first week/Minesweeper Game/test_cases/test9.in @@ -0,0 +1,6 @@ +5 1 +? +* +? +* +? \ No newline at end of file diff --git a/first week/Minesweeper Game/test_cases/test9.out b/first week/Minesweeper Game/test_cases/test9.out new file mode 100644 index 0000000..330f94c --- /dev/null +++ b/first week/Minesweeper Game/test_cases/test9.out @@ -0,0 +1,5 @@ +1 +* +2 +* +1 \ No newline at end of file diff --git a/first week/Natural Number Splitting/Natural Number Splitting.md b/first week/Natural Number Splitting/Natural Number Splitting.md new file mode 100644 index 0000000..0a5e82a Binary files /dev/null and b/first week/Natural Number Splitting/Natural Number Splitting.md differ diff --git a/first week/Natural Number Splitting/test_cases/test1.in b/first week/Natural Number Splitting/test_cases/test1.in new file mode 100644 index 0000000..c793025 --- /dev/null +++ b/first week/Natural Number Splitting/test_cases/test1.in @@ -0,0 +1 @@ +7 \ No newline at end of file diff --git a/first week/Natural Number Splitting/test_cases/test1.out b/first week/Natural Number Splitting/test_cases/test1.out new file mode 100644 index 0000000..da11878 --- /dev/null +++ b/first week/Natural Number Splitting/test_cases/test1.out @@ -0,0 +1,14 @@ +1+1+1+1+1+1+1 +1+1+1+1+1+2 +1+1+1+1+3 +1+1+1+2+2 +1+1+1+4 +1+1+2+3 +1+1+5 +1+2+2+2 +1+2+4 +1+3+3 +1+6 +2+2+3 +2+5 +3+4 \ No newline at end of file diff --git a/first week/Natural Number Splitting/test_cases/test10.in b/first week/Natural Number Splitting/test_cases/test10.in new file mode 100644 index 0000000..ca7bf83 --- /dev/null +++ b/first week/Natural Number Splitting/test_cases/test10.in @@ -0,0 +1 @@ +13 \ No newline at end of file diff --git a/first week/Natural Number Splitting/test_cases/test10.out b/first week/Natural Number Splitting/test_cases/test10.out new file mode 100644 index 0000000..7071560 --- /dev/null +++ b/first week/Natural Number Splitting/test_cases/test10.out @@ -0,0 +1,100 @@ +1+1+1+1+1+1+1+1+1+1+1+1+1 +1+1+1+1+1+1+1+1+1+1+1+2 +1+1+1+1+1+1+1+1+1+1+3 +1+1+1+1+1+1+1+1+1+2+2 +1+1+1+1+1+1+1+1+1+4 +1+1+1+1+1+1+1+1+2+3 +1+1+1+1+1+1+1+1+5 +1+1+1+1+1+1+1+2+2+2 +1+1+1+1+1+1+1+2+4 +1+1+1+1+1+1+1+3+3 +1+1+1+1+1+1+1+6 +1+1+1+1+1+1+2+2+3 +1+1+1+1+1+1+2+5 +1+1+1+1+1+1+3+4 +1+1+1+1+1+1+7 +1+1+1+1+1+2+2+2+2 +1+1+1+1+1+2+2+4 +1+1+1+1+1+2+3+3 +1+1+1+1+1+2+6 +1+1+1+1+1+3+5 +1+1+1+1+1+4+4 +1+1+1+1+1+8 +1+1+1+1+2+2+2+3 +1+1+1+1+2+2+5 +1+1+1+1+2+3+4 +1+1+1+1+2+7 +1+1+1+1+3+3+3 +1+1+1+1+3+6 +1+1+1+1+4+5 +1+1+1+1+9 +1+1+1+2+2+2+2+2 +1+1+1+2+2+2+4 +1+1+1+2+2+3+3 +1+1+1+2+2+6 +1+1+1+2+3+5 +1+1+1+2+4+4 +1+1+1+2+8 +1+1+1+3+3+4 +1+1+1+3+7 +1+1+1+4+6 +1+1+1+5+5 +1+1+1+10 +1+1+2+2+2+2+3 +1+1+2+2+2+5 +1+1+2+2+3+4 +1+1+2+2+7 +1+1+2+3+3+3 +1+1+2+3+6 +1+1+2+4+5 +1+1+2+9 +1+1+3+3+5 +1+1+3+4+4 +1+1+3+8 +1+1+4+7 +1+1+5+6 +1+1+11 +1+2+2+2+2+2+2 +1+2+2+2+2+4 +1+2+2+2+3+3 +1+2+2+2+6 +1+2+2+3+5 +1+2+2+4+4 +1+2+2+8 +1+2+3+3+4 +1+2+3+7 +1+2+4+6 +1+2+5+5 +1+2+10 +1+3+3+3+3 +1+3+3+6 +1+3+4+5 +1+3+9 +1+4+4+4 +1+4+8 +1+5+7 +1+6+6 +1+12 +2+2+2+2+2+3 +2+2+2+2+5 +2+2+2+3+4 +2+2+2+7 +2+2+3+3+3 +2+2+3+6 +2+2+4+5 +2+2+9 +2+3+3+5 +2+3+4+4 +2+3+8 +2+4+7 +2+5+6 +2+11 +3+3+3+4 +3+3+7 +3+4+6 +3+5+5 +3+10 +4+4+5 +4+9 +5+8 +6+7 \ No newline at end of file diff --git a/first week/Natural Number Splitting/test_cases/test2.in b/first week/Natural Number Splitting/test_cases/test2.in new file mode 100644 index 0000000..e440e5c --- /dev/null +++ b/first week/Natural Number Splitting/test_cases/test2.in @@ -0,0 +1 @@ +3 \ No newline at end of file diff --git a/first week/Natural Number Splitting/test_cases/test2.out b/first week/Natural Number Splitting/test_cases/test2.out new file mode 100644 index 0000000..44cbdec --- /dev/null +++ b/first week/Natural Number Splitting/test_cases/test2.out @@ -0,0 +1,2 @@ +1+1+1 +1+2 \ No newline at end of file diff --git a/first week/Natural Number Splitting/test_cases/test3.in b/first week/Natural Number Splitting/test_cases/test3.in new file mode 100644 index 0000000..301160a --- /dev/null +++ b/first week/Natural Number Splitting/test_cases/test3.in @@ -0,0 +1 @@ +8 \ No newline at end of file diff --git a/first week/Natural Number Splitting/test_cases/test3.out b/first week/Natural Number Splitting/test_cases/test3.out new file mode 100644 index 0000000..530cef0 --- /dev/null +++ b/first week/Natural Number Splitting/test_cases/test3.out @@ -0,0 +1,21 @@ +1+1+1+1+1+1+1+1 +1+1+1+1+1+1+2 +1+1+1+1+1+3 +1+1+1+1+2+2 +1+1+1+1+4 +1+1+1+2+3 +1+1+1+5 +1+1+2+2+2 +1+1+2+4 +1+1+3+3 +1+1+6 +1+2+2+3 +1+2+5 +1+3+4 +1+7 +2+2+2+2 +2+2+4 +2+3+3 +2+6 +3+5 +4+4 \ No newline at end of file diff --git a/first week/Natural Number Splitting/test_cases/test4.in b/first week/Natural Number Splitting/test_cases/test4.in new file mode 100644 index 0000000..62f9457 --- /dev/null +++ b/first week/Natural Number Splitting/test_cases/test4.in @@ -0,0 +1 @@ +6 \ No newline at end of file diff --git a/first week/Natural Number Splitting/test_cases/test4.out b/first week/Natural Number Splitting/test_cases/test4.out new file mode 100644 index 0000000..455f7e7 --- /dev/null +++ b/first week/Natural Number Splitting/test_cases/test4.out @@ -0,0 +1,10 @@ +1+1+1+1+1+1 +1+1+1+1+2 +1+1+1+3 +1+1+2+2 +1+1+4 +1+2+3 +1+5 +2+2+2 +2+4 +3+3 \ No newline at end of file diff --git a/first week/Natural Number Splitting/test_cases/test5.in b/first week/Natural Number Splitting/test_cases/test5.in new file mode 100644 index 0000000..7813681 --- /dev/null +++ b/first week/Natural Number Splitting/test_cases/test5.in @@ -0,0 +1 @@ +5 \ No newline at end of file diff --git a/first week/Natural Number Splitting/test_cases/test5.out b/first week/Natural Number Splitting/test_cases/test5.out new file mode 100644 index 0000000..f46da38 --- /dev/null +++ b/first week/Natural Number Splitting/test_cases/test5.out @@ -0,0 +1,6 @@ +1+1+1+1+1 +1+1+1+2 +1+1+3 +1+2+2 +1+4 +2+3 \ No newline at end of file diff --git a/first week/Natural Number Splitting/test_cases/test6.in b/first week/Natural Number Splitting/test_cases/test6.in new file mode 100644 index 0000000..9a03714 --- /dev/null +++ b/first week/Natural Number Splitting/test_cases/test6.in @@ -0,0 +1 @@ +10 \ No newline at end of file diff --git a/first week/Natural Number Splitting/test_cases/test6.out b/first week/Natural Number Splitting/test_cases/test6.out new file mode 100644 index 0000000..17fe61c --- /dev/null +++ b/first week/Natural Number Splitting/test_cases/test6.out @@ -0,0 +1,41 @@ +1+1+1+1+1+1+1+1+1+1 +1+1+1+1+1+1+1+1+2 +1+1+1+1+1+1+1+3 +1+1+1+1+1+1+2+2 +1+1+1+1+1+1+4 +1+1+1+1+1+2+3 +1+1+1+1+1+5 +1+1+1+1+2+2+2 +1+1+1+1+2+4 +1+1+1+1+3+3 +1+1+1+1+6 +1+1+1+2+2+3 +1+1+1+2+5 +1+1+1+3+4 +1+1+1+7 +1+1+2+2+2+2 +1+1+2+2+4 +1+1+2+3+3 +1+1+2+6 +1+1+3+5 +1+1+4+4 +1+1+8 +1+2+2+2+3 +1+2+2+5 +1+2+3+4 +1+2+7 +1+3+3+3 +1+3+6 +1+4+5 +1+9 +2+2+2+2+2 +2+2+2+4 +2+2+3+3 +2+2+6 +2+3+5 +2+4+4 +2+8 +3+3+4 +3+7 +4+6 +5+5 \ No newline at end of file diff --git a/first week/Natural Number Splitting/test_cases/test7.in b/first week/Natural Number Splitting/test_cases/test7.in new file mode 100644 index 0000000..9d60796 --- /dev/null +++ b/first week/Natural Number Splitting/test_cases/test7.in @@ -0,0 +1 @@ +11 \ No newline at end of file diff --git a/first week/Natural Number Splitting/test_cases/test7.out b/first week/Natural Number Splitting/test_cases/test7.out new file mode 100644 index 0000000..e1ef73c --- /dev/null +++ b/first week/Natural Number Splitting/test_cases/test7.out @@ -0,0 +1,55 @@ +1+1+1+1+1+1+1+1+1+1+1 +1+1+1+1+1+1+1+1+1+2 +1+1+1+1+1+1+1+1+3 +1+1+1+1+1+1+1+2+2 +1+1+1+1+1+1+1+4 +1+1+1+1+1+1+2+3 +1+1+1+1+1+1+5 +1+1+1+1+1+2+2+2 +1+1+1+1+1+2+4 +1+1+1+1+1+3+3 +1+1+1+1+1+6 +1+1+1+1+2+2+3 +1+1+1+1+2+5 +1+1+1+1+3+4 +1+1+1+1+7 +1+1+1+2+2+2+2 +1+1+1+2+2+4 +1+1+1+2+3+3 +1+1+1+2+6 +1+1+1+3+5 +1+1+1+4+4 +1+1+1+8 +1+1+2+2+2+3 +1+1+2+2+5 +1+1+2+3+4 +1+1+2+7 +1+1+3+3+3 +1+1+3+6 +1+1+4+5 +1+1+9 +1+2+2+2+2+2 +1+2+2+2+4 +1+2+2+3+3 +1+2+2+6 +1+2+3+5 +1+2+4+4 +1+2+8 +1+3+3+4 +1+3+7 +1+4+6 +1+5+5 +1+10 +2+2+2+2+3 +2+2+2+5 +2+2+3+4 +2+2+7 +2+3+3+3 +2+3+6 +2+4+5 +2+9 +3+3+5 +3+4+4 +3+8 +4+7 +5+6 \ No newline at end of file diff --git a/first week/Natural Number Splitting/test_cases/test8.in b/first week/Natural Number Splitting/test_cases/test8.in new file mode 100644 index 0000000..3cacc0b --- /dev/null +++ b/first week/Natural Number Splitting/test_cases/test8.in @@ -0,0 +1 @@ +12 \ No newline at end of file diff --git a/first week/Natural Number Splitting/test_cases/test8.out b/first week/Natural Number Splitting/test_cases/test8.out new file mode 100644 index 0000000..3de0a1b --- /dev/null +++ b/first week/Natural Number Splitting/test_cases/test8.out @@ -0,0 +1,76 @@ +1+1+1+1+1+1+1+1+1+1+1+1 +1+1+1+1+1+1+1+1+1+1+2 +1+1+1+1+1+1+1+1+1+3 +1+1+1+1+1+1+1+1+2+2 +1+1+1+1+1+1+1+1+4 +1+1+1+1+1+1+1+2+3 +1+1+1+1+1+1+1+5 +1+1+1+1+1+1+2+2+2 +1+1+1+1+1+1+2+4 +1+1+1+1+1+1+3+3 +1+1+1+1+1+1+6 +1+1+1+1+1+2+2+3 +1+1+1+1+1+2+5 +1+1+1+1+1+3+4 +1+1+1+1+1+7 +1+1+1+1+2+2+2+2 +1+1+1+1+2+2+4 +1+1+1+1+2+3+3 +1+1+1+1+2+6 +1+1+1+1+3+5 +1+1+1+1+4+4 +1+1+1+1+8 +1+1+1+2+2+2+3 +1+1+1+2+2+5 +1+1+1+2+3+4 +1+1+1+2+7 +1+1+1+3+3+3 +1+1+1+3+6 +1+1+1+4+5 +1+1+1+9 +1+1+2+2+2+2+2 +1+1+2+2+2+4 +1+1+2+2+3+3 +1+1+2+2+6 +1+1+2+3+5 +1+1+2+4+4 +1+1+2+8 +1+1+3+3+4 +1+1+3+7 +1+1+4+6 +1+1+5+5 +1+1+10 +1+2+2+2+2+3 +1+2+2+2+5 +1+2+2+3+4 +1+2+2+7 +1+2+3+3+3 +1+2+3+6 +1+2+4+5 +1+2+9 +1+3+3+5 +1+3+4+4 +1+3+8 +1+4+7 +1+5+6 +1+11 +2+2+2+2+2+2 +2+2+2+2+4 +2+2+2+3+3 +2+2+2+6 +2+2+3+5 +2+2+4+4 +2+2+8 +2+3+3+4 +2+3+7 +2+4+6 +2+5+5 +2+10 +3+3+3+3 +3+3+6 +3+4+5 +3+9 +4+4+4 +4+8 +5+7 +6+6 \ No newline at end of file diff --git a/first week/Natural Number Splitting/test_cases/test9.in b/first week/Natural Number Splitting/test_cases/test9.in new file mode 100644 index 0000000..f11c82a --- /dev/null +++ b/first week/Natural Number Splitting/test_cases/test9.in @@ -0,0 +1 @@ +9 \ No newline at end of file diff --git a/first week/Natural Number Splitting/test_cases/test9.out b/first week/Natural Number Splitting/test_cases/test9.out new file mode 100644 index 0000000..5e81a31 --- /dev/null +++ b/first week/Natural Number Splitting/test_cases/test9.out @@ -0,0 +1,29 @@ +1+1+1+1+1+1+1+1+1 +1+1+1+1+1+1+1+2 +1+1+1+1+1+1+3 +1+1+1+1+1+2+2 +1+1+1+1+1+4 +1+1+1+1+2+3 +1+1+1+1+5 +1+1+1+2+2+2 +1+1+1+2+4 +1+1+1+3+3 +1+1+1+6 +1+1+2+2+3 +1+1+2+5 +1+1+3+4 +1+1+7 +1+2+2+2+2 +1+2+2+4 +1+2+3+3 +1+2+6 +1+3+5 +1+4+4 +1+8 +2+2+2+3 +2+2+5 +2+3+4 +2+7 +3+3+3 +3+6 +4+5 \ No newline at end of file diff --git a/first week/Secret Message Decoding/Secret Message Decoding.md b/first week/Secret Message Decoding/Secret Message Decoding.md new file mode 100644 index 0000000..ae4b149 --- /dev/null +++ b/first week/Secret Message Decoding/Secret Message Decoding.md @@ -0,0 +1,30 @@ +# Secret Message Decoding + +## 题目描述 + +你是一名网络安全工程师,在一次调查中,你发现黑客组织“暗影”在通信时使用了一种特殊的加密方式。他们不仅对消息内容加密,还会对每条消息附带的时间戳进行反转处理,以干扰追踪。 + +现在,你截获了一批数据包,每个数据包都包含一个被反转过的数字时间戳(以字符串形式传输)。你的任务是编写一个程序,将这些被反转的时间戳恢复成正常顺序,以便分析攻击发生的确切时间。 + +## 输入格式 + +输入为一个字符串 \( S \)(长度 ≤ 1000),可能包含大小写字母、数字、空格和标点符号。 + +## 输出格式 + +输出一个字符串,为输入字符串 \( S \) 的完全反转。 + +## 输入输出样例 + +### 输入 + +``` +Hello, World! +``` + +### 输出 + +``` +!dlroW ,olleH +``` + diff --git a/first week/Secret Message Decoding/test_cases/test1.in b/first week/Secret Message Decoding/test_cases/test1.in new file mode 100644 index 0000000..b45ef6f --- /dev/null +++ b/first week/Secret Message Decoding/test_cases/test1.in @@ -0,0 +1 @@ +Hello, World! \ No newline at end of file diff --git a/first week/Secret Message Decoding/test_cases/test1.out b/first week/Secret Message Decoding/test_cases/test1.out new file mode 100644 index 0000000..68c4383 --- /dev/null +++ b/first week/Secret Message Decoding/test_cases/test1.out @@ -0,0 +1 @@ +!dlroW ,olleH \ No newline at end of file diff --git a/first week/Secret Message Decoding/test_cases/test10.in b/first week/Secret Message Decoding/test_cases/test10.in new file mode 100644 index 0000000..ce01e3c --- /dev/null +++ b/first week/Secret Message Decoding/test_cases/test10.in @@ -0,0 +1 @@ +1018zrgyhz \ No newline at end of file diff --git a/first week/Secret Message Decoding/test_cases/test10.out b/first week/Secret Message Decoding/test_cases/test10.out new file mode 100644 index 0000000..6f556ee --- /dev/null +++ b/first week/Secret Message Decoding/test_cases/test10.out @@ -0,0 +1 @@ +zhygrz8101 \ No newline at end of file diff --git a/first week/Secret Message Decoding/test_cases/test11.in b/first week/Secret Message Decoding/test_cases/test11.in new file mode 100644 index 0000000..d57c668 --- /dev/null +++ b/first week/Secret Message Decoding/test_cases/test11.in @@ -0,0 +1 @@ +If You?! \ No newline at end of file diff --git a/first week/Secret Message Decoding/test_cases/test11.out b/first week/Secret Message Decoding/test_cases/test11.out new file mode 100644 index 0000000..a131ce1 --- /dev/null +++ b/first week/Secret Message Decoding/test_cases/test11.out @@ -0,0 +1 @@ +!?uoY fI \ No newline at end of file diff --git a/first week/Secret Message Decoding/test_cases/test2.in b/first week/Secret Message Decoding/test_cases/test2.in new file mode 100644 index 0000000..303fd77 --- /dev/null +++ b/first week/Secret Message Decoding/test_cases/test2.in @@ -0,0 +1 @@ +202312251430 \ No newline at end of file diff --git a/first week/Secret Message Decoding/test_cases/test2.out b/first week/Secret Message Decoding/test_cases/test2.out new file mode 100644 index 0000000..3557db7 --- /dev/null +++ b/first week/Secret Message Decoding/test_cases/test2.out @@ -0,0 +1 @@ +034152213202 \ No newline at end of file diff --git a/first week/Secret Message Decoding/test_cases/test3.in b/first week/Secret Message Decoding/test_cases/test3.in new file mode 100644 index 0000000..af3a357 --- /dev/null +++ b/first week/Secret Message Decoding/test_cases/test3.in @@ -0,0 +1 @@ +AB4 \ No newline at end of file diff --git a/first week/Secret Message Decoding/test_cases/test3.out b/first week/Secret Message Decoding/test_cases/test3.out new file mode 100644 index 0000000..87c1e3d --- /dev/null +++ b/first week/Secret Message Decoding/test_cases/test3.out @@ -0,0 +1 @@ +4BA \ No newline at end of file diff --git a/first week/Secret Message Decoding/test_cases/test4.in b/first week/Secret Message Decoding/test_cases/test4.in new file mode 100644 index 0000000..43836c8 --- /dev/null +++ b/first week/Secret Message Decoding/test_cases/test4.in @@ -0,0 +1 @@ +madam \ No newline at end of file diff --git a/first week/Secret Message Decoding/test_cases/test4.out b/first week/Secret Message Decoding/test_cases/test4.out new file mode 100644 index 0000000..43836c8 --- /dev/null +++ b/first week/Secret Message Decoding/test_cases/test4.out @@ -0,0 +1 @@ +madam \ No newline at end of file diff --git a/first week/Secret Message Decoding/test_cases/test5.in b/first week/Secret Message Decoding/test_cases/test5.in new file mode 100644 index 0000000..ed2c580 --- /dev/null +++ b/first week/Secret Message Decoding/test_cases/test5.in @@ -0,0 +1 @@ +a b c \ No newline at end of file diff --git a/first week/Secret Message Decoding/test_cases/test5.out b/first week/Secret Message Decoding/test_cases/test5.out new file mode 100644 index 0000000..adf2c92 --- /dev/null +++ b/first week/Secret Message Decoding/test_cases/test5.out @@ -0,0 +1 @@ +c b a \ No newline at end of file diff --git a/first week/Secret Message Decoding/test_cases/test6.in b/first week/Secret Message Decoding/test_cases/test6.in new file mode 100644 index 0000000..d5978d7 --- /dev/null +++ b/first week/Secret Message Decoding/test_cases/test6.in @@ -0,0 +1 @@ +ABC123!@# \ No newline at end of file diff --git a/first week/Secret Message Decoding/test_cases/test6.out b/first week/Secret Message Decoding/test_cases/test6.out new file mode 100644 index 0000000..707c5db --- /dev/null +++ b/first week/Secret Message Decoding/test_cases/test6.out @@ -0,0 +1 @@ +#@!321CBA \ No newline at end of file diff --git a/first week/Secret Message Decoding/test_cases/test7.in b/first week/Secret Message Decoding/test_cases/test7.in new file mode 100644 index 0000000..ff3bb63 --- /dev/null +++ b/first week/Secret Message Decoding/test_cases/test7.in @@ -0,0 +1 @@ +The quick brown fox jumps over the lazy dog \ No newline at end of file diff --git a/first week/Secret Message Decoding/test_cases/test7.out b/first week/Secret Message Decoding/test_cases/test7.out new file mode 100644 index 0000000..da104fd --- /dev/null +++ b/first week/Secret Message Decoding/test_cases/test7.out @@ -0,0 +1 @@ +god yzal eht revo spmuj xof nworb kciuq ehT \ No newline at end of file diff --git a/first week/Secret Message Decoding/test_cases/test8.in b/first week/Secret Message Decoding/test_cases/test8.in new file mode 100644 index 0000000..2689b08 --- /dev/null +++ b/first week/Secret Message Decoding/test_cases/test8.in @@ -0,0 +1 @@ +huang421 \ No newline at end of file diff --git a/first week/Secret Message Decoding/test_cases/test8.out b/first week/Secret Message Decoding/test_cases/test8.out new file mode 100644 index 0000000..ec74cbe --- /dev/null +++ b/first week/Secret Message Decoding/test_cases/test8.out @@ -0,0 +1 @@ +124gnauh \ No newline at end of file diff --git a/first week/Secret Message Decoding/test_cases/test9.in b/first week/Secret Message Decoding/test_cases/test9.in new file mode 100644 index 0000000..24ee35c --- /dev/null +++ b/first week/Secret Message Decoding/test_cases/test9.in @@ -0,0 +1 @@ +wo xi huan ni \ No newline at end of file diff --git a/first week/Secret Message Decoding/test_cases/test9.out b/first week/Secret Message Decoding/test_cases/test9.out new file mode 100644 index 0000000..bb00a4e --- /dev/null +++ b/first week/Secret Message Decoding/test_cases/test9.out @@ -0,0 +1 @@ +in nauh ix ow \ No newline at end of file diff --git a/second week/Lake Counting S/Lake Counting S.md b/second week/Lake Counting S/Lake Counting S.md new file mode 100644 index 0000000..437c75f --- /dev/null +++ b/second week/Lake Counting S/Lake Counting S.md @@ -0,0 +1,47 @@ +# Lake Counting S + +## 题目描述 + +由于最近的降雨,水在农夫约翰的田地里积聚了。田地可以表示为一个 $N \times M$ 的矩形($1 \leq N \leq 100$;$1 \leq M \leq 100$)。每个方格中要么是水(`W`),要么是干地(`.`)。农夫约翰想要弄清楚他的田地里形成了多少个水塘。一个水塘是由连通的水方格组成的,其中一个方格被认为与它的八个邻居相邻(上下左右,四个对角线方向也算相邻)。给定农夫约翰田地的示意图,确定他有多少个水塘。 + +## 输入格式 + +第 $1$ 行:两个用空格分隔的整数:$N$ 和 $M$。 + +第 $2$ 行到第 $N+1$ 行:每行 $M$ 个字符,表示农夫约翰田地的一行。 + +每个字符要么是 `W`,要么是 `.`。 + +字符之间没有空格。 + +## 输出格式 + +第 $1$ 行:农夫约翰田地中的水塘数量。 + +## 输入输出样例 + +### 输入 + +``` +10 12 +W........WW. +.WWW.....WWW +....WW...WW. +.........WW. +.........W.. +..W......W.. +.W.W.....WW. +W.W.W.....W. +.W.W......W. +..W.......W. +``` + +### 输出 + +``` +3 +``` + +## 说明/提示 + +输出详情:共有三个水塘:一个在左上角,一个在左下角,还有一个沿着右侧。 diff --git a/second week/Lake Counting S/test_cases/1.in b/second week/Lake Counting S/test_cases/1.in new file mode 100644 index 0000000..e82474b --- /dev/null +++ b/second week/Lake Counting S/test_cases/1.in @@ -0,0 +1,4 @@ +3 3 +www +www +www diff --git a/second week/Lake Counting S/test_cases/1.out b/second week/Lake Counting S/test_cases/1.out new file mode 100644 index 0000000..56a6051 --- /dev/null +++ b/second week/Lake Counting S/test_cases/1.out @@ -0,0 +1 @@ +1 \ No newline at end of file diff --git a/second week/Lake Counting S/test_cases/10.in b/second week/Lake Counting S/test_cases/10.in new file mode 100644 index 0000000..97baa8d --- /dev/null +++ b/second week/Lake Counting S/test_cases/10.in @@ -0,0 +1,6 @@ +5 5 +..... +..... +w.w.w +..... +..... diff --git a/second week/Lake Counting S/test_cases/10.out b/second week/Lake Counting S/test_cases/10.out new file mode 100644 index 0000000..e440e5c --- /dev/null +++ b/second week/Lake Counting S/test_cases/10.out @@ -0,0 +1 @@ +3 \ No newline at end of file diff --git a/second week/Lake Counting S/test_cases/2.in b/second week/Lake Counting S/test_cases/2.in new file mode 100644 index 0000000..ae7385d --- /dev/null +++ b/second week/Lake Counting S/test_cases/2.in @@ -0,0 +1,5 @@ +4 4 +w..w +.w.w +..w. +w..w diff --git a/second week/Lake Counting S/test_cases/2.out b/second week/Lake Counting S/test_cases/2.out new file mode 100644 index 0000000..d8263ee --- /dev/null +++ b/second week/Lake Counting S/test_cases/2.out @@ -0,0 +1 @@ +2 \ No newline at end of file diff --git a/second week/Lake Counting S/test_cases/3.in b/second week/Lake Counting S/test_cases/3.in new file mode 100644 index 0000000..93e1d8f --- /dev/null +++ b/second week/Lake Counting S/test_cases/3.in @@ -0,0 +1,3 @@ +2 2 +w. +.w diff --git a/second week/Lake Counting S/test_cases/3.out b/second week/Lake Counting S/test_cases/3.out new file mode 100644 index 0000000..56a6051 --- /dev/null +++ b/second week/Lake Counting S/test_cases/3.out @@ -0,0 +1 @@ +1 \ No newline at end of file diff --git a/second week/Lake Counting S/test_cases/4.in b/second week/Lake Counting S/test_cases/4.in new file mode 100644 index 0000000..5d6af8e --- /dev/null +++ b/second week/Lake Counting S/test_cases/4.in @@ -0,0 +1,6 @@ +5 5 +wwwww +.w.w. +.w.w. +.w.w. +wwwww diff --git a/second week/Lake Counting S/test_cases/4.out b/second week/Lake Counting S/test_cases/4.out new file mode 100644 index 0000000..56a6051 --- /dev/null +++ b/second week/Lake Counting S/test_cases/4.out @@ -0,0 +1 @@ +1 \ No newline at end of file diff --git a/second week/Lake Counting S/test_cases/5.in b/second week/Lake Counting S/test_cases/5.in new file mode 100644 index 0000000..5a26681 --- /dev/null +++ b/second week/Lake Counting S/test_cases/5.in @@ -0,0 +1,4 @@ +3 3 +w.w +.w. +w.w diff --git a/second week/Lake Counting S/test_cases/5.out b/second week/Lake Counting S/test_cases/5.out new file mode 100644 index 0000000..56a6051 --- /dev/null +++ b/second week/Lake Counting S/test_cases/5.out @@ -0,0 +1 @@ +1 \ No newline at end of file diff --git a/second week/Lake Counting S/test_cases/6.in b/second week/Lake Counting S/test_cases/6.in new file mode 100644 index 0000000..1b30481 --- /dev/null +++ b/second week/Lake Counting S/test_cases/6.in @@ -0,0 +1,5 @@ +4 5 +..... +.w.w. +.w.w. +..... diff --git a/second week/Lake Counting S/test_cases/6.out b/second week/Lake Counting S/test_cases/6.out new file mode 100644 index 0000000..d8263ee --- /dev/null +++ b/second week/Lake Counting S/test_cases/6.out @@ -0,0 +1 @@ +2 \ No newline at end of file diff --git a/second week/Lake Counting S/test_cases/7.in b/second week/Lake Counting S/test_cases/7.in new file mode 100644 index 0000000..b6ad5e2 --- /dev/null +++ b/second week/Lake Counting S/test_cases/7.in @@ -0,0 +1,7 @@ +6 6 +...... +.w.... +.w.w.. +....w. +.....w +...... diff --git a/second week/Lake Counting S/test_cases/7.out b/second week/Lake Counting S/test_cases/7.out new file mode 100644 index 0000000..d8263ee --- /dev/null +++ b/second week/Lake Counting S/test_cases/7.out @@ -0,0 +1 @@ +2 \ No newline at end of file diff --git a/second week/Lake Counting S/test_cases/8.in b/second week/Lake Counting S/test_cases/8.in new file mode 100644 index 0000000..9e095a2 --- /dev/null +++ b/second week/Lake Counting S/test_cases/8.in @@ -0,0 +1,3 @@ +2 3 +ww. +w.w diff --git a/second week/Lake Counting S/test_cases/8.out b/second week/Lake Counting S/test_cases/8.out new file mode 100644 index 0000000..56a6051 --- /dev/null +++ b/second week/Lake Counting S/test_cases/8.out @@ -0,0 +1 @@ +1 \ No newline at end of file diff --git a/second week/Lake Counting S/test_cases/9.in b/second week/Lake Counting S/test_cases/9.in new file mode 100644 index 0000000..7216736 --- /dev/null +++ b/second week/Lake Counting S/test_cases/9.in @@ -0,0 +1,4 @@ +3 4 +w.w. +.w.. +.w.w diff --git a/second week/Lake Counting S/test_cases/9.out b/second week/Lake Counting S/test_cases/9.out new file mode 100644 index 0000000..d8263ee --- /dev/null +++ b/second week/Lake Counting S/test_cases/9.out @@ -0,0 +1 @@ +2 \ No newline at end of file diff --git a/second week/Last Minute/Last Minute.md b/second week/Last Minute/Last Minute.md new file mode 100644 index 0000000..834bcb1 --- /dev/null +++ b/second week/Last Minute/Last Minute.md @@ -0,0 +1,52 @@ +# 考前临时抱佛脚 + +## 题目背景 + +rr平时太忙没有时间学习。但是,临近期末考试,他必须要开始抱佛脚,以求不挂科。 + +## 题目描述 + +这次期末考试,rr需要考 $4$ 科。因此要开始刷习题集,每科都有一个习题集,分别有 $s_1,s_2,s_3,s_4$ 道题目,完成每道题目需要一些时间,可能不等($A_1,A_2,\ldots,A_{s_1}$,$B_1,B_2,\ldots,B_{s_2}$,$C_1,C_2,\ldots,C_{s_3}$,$D_1,D_2,\ldots,D_{s_4}$)。 + + +rr有一个能力,他的左右两个大脑可以同时计算 $2$ 道不同的题目,但是仅限于同一科。因此,他必须一科一科的复习。rr希望知道能够完成复习的最短时间。 + +## 输入格式 + +本题包含 $5$ 行数据:第 $1$ 行,为四个正整数 $s_1,s_2,s_3,s_4$。 + +第 $2$ 行,为 $A_1,A_2,\ldots,A_{s_1}$ 共 $s_1$ 个数,表示第一科习题集每道题目所消耗的时间。 + +第 $3$ 行,为 $B_1,B_2,\ldots,B_{s_2}$ 共 $s_2$ 个数。 + +第 $4$ 行,为 $C_1,C_2,\ldots,C_{s_3}$ 共 $s_3$ 个数。 + +第 $5$ 行,为 $D_1,D_2,\ldots,D_{s_4}$ 共 $s_4$ 个数,意思均同上。 + +## 输出格式 + +输出一行,为复习完毕最短时间。 + +## 输入输出样例 + +### 输入 + +``` +1 2 1 3 +5 +4 3 +6 +2 4 3 +``` + +### 输出 + +``` +20 +``` + +## 说明/提示 + +$1\leq s_1,s_2,s_3,s_4\leq 20$ + +$1\leq A_1,A_2,\ldots,A_{s_1},B_1,B_2,\ldots,B_{s_2},C_1,C_2,\ldots,C_{s_3},D_1,D_2,\ldots,D_{s_4}\leq60$ \ No newline at end of file diff --git a/second week/Last Minute/test_cases/1.in b/second week/Last Minute/test_cases/1.in new file mode 100644 index 0000000..cf8c15e --- /dev/null +++ b/second week/Last Minute/test_cases/1.in @@ -0,0 +1,5 @@ +1 1 1 1 +1 +1 +1 +1 \ No newline at end of file diff --git a/second week/Last Minute/test_cases/1.out b/second week/Last Minute/test_cases/1.out new file mode 100644 index 0000000..bf0d87a --- /dev/null +++ b/second week/Last Minute/test_cases/1.out @@ -0,0 +1 @@ +4 \ No newline at end of file diff --git a/second week/Last Minute/test_cases/10.in b/second week/Last Minute/test_cases/10.in new file mode 100644 index 0000000..16786f4 --- /dev/null +++ b/second week/Last Minute/test_cases/10.in @@ -0,0 +1,5 @@ +1 2 1 2 +2 +3 4 +5 +6 7 \ No newline at end of file diff --git a/second week/Last Minute/test_cases/10.out b/second week/Last Minute/test_cases/10.out new file mode 100644 index 0000000..25bf17f --- /dev/null +++ b/second week/Last Minute/test_cases/10.out @@ -0,0 +1 @@ +18 \ No newline at end of file diff --git a/second week/Last Minute/test_cases/2.in b/second week/Last Minute/test_cases/2.in new file mode 100644 index 0000000..14f3ae0 --- /dev/null +++ b/second week/Last Minute/test_cases/2.in @@ -0,0 +1,5 @@ +2 2 2 2 +2 2 +3 3 +4 4 +5 5 \ No newline at end of file diff --git a/second week/Last Minute/test_cases/2.out b/second week/Last Minute/test_cases/2.out new file mode 100644 index 0000000..da2d398 --- /dev/null +++ b/second week/Last Minute/test_cases/2.out @@ -0,0 +1 @@ +14 \ No newline at end of file diff --git a/second week/Last Minute/test_cases/3.in b/second week/Last Minute/test_cases/3.in new file mode 100644 index 0000000..b33fa4a --- /dev/null +++ b/second week/Last Minute/test_cases/3.in @@ -0,0 +1,5 @@ +3 3 3 3 +1 2 10 +2 5 8 +3 6 9 +4 7 12 \ No newline at end of file diff --git a/second week/Last Minute/test_cases/3.out b/second week/Last Minute/test_cases/3.out new file mode 100644 index 0000000..72f523f --- /dev/null +++ b/second week/Last Minute/test_cases/3.out @@ -0,0 +1 @@ +39 \ No newline at end of file diff --git a/second week/Last Minute/test_cases/4.in b/second week/Last Minute/test_cases/4.in new file mode 100644 index 0000000..2e7871a --- /dev/null +++ b/second week/Last Minute/test_cases/4.in @@ -0,0 +1,5 @@ +5 1 1 1 +1 2 3 4 5 +5 +10 +7 \ No newline at end of file diff --git a/second week/Last Minute/test_cases/4.out b/second week/Last Minute/test_cases/4.out new file mode 100644 index 0000000..8580e7b --- /dev/null +++ b/second week/Last Minute/test_cases/4.out @@ -0,0 +1 @@ +30 \ No newline at end of file diff --git a/second week/Last Minute/test_cases/5.in b/second week/Last Minute/test_cases/5.in new file mode 100644 index 0000000..2fda8cd --- /dev/null +++ b/second week/Last Minute/test_cases/5.in @@ -0,0 +1,5 @@ +3 3 3 3 +5 5 5 +5 5 5 +5 5 5 +5 5 5 \ No newline at end of file diff --git a/second week/Last Minute/test_cases/5.out b/second week/Last Minute/test_cases/5.out new file mode 100644 index 0000000..86ee83a --- /dev/null +++ b/second week/Last Minute/test_cases/5.out @@ -0,0 +1 @@ +40 \ No newline at end of file diff --git a/second week/Last Minute/test_cases/6.in b/second week/Last Minute/test_cases/6.in new file mode 100644 index 0000000..c73eebd --- /dev/null +++ b/second week/Last Minute/test_cases/6.in @@ -0,0 +1,5 @@ +4 4 4 4 +60 60 60 60 +60 60 60 60 +60 60 60 60 +60 60 60 60 \ No newline at end of file diff --git a/second week/Last Minute/test_cases/6.out b/second week/Last Minute/test_cases/6.out new file mode 100644 index 0000000..7ad8022 --- /dev/null +++ b/second week/Last Minute/test_cases/6.out @@ -0,0 +1 @@ +480 \ No newline at end of file diff --git a/second week/Last Minute/test_cases/7.in b/second week/Last Minute/test_cases/7.in new file mode 100644 index 0000000..124ddc4 --- /dev/null +++ b/second week/Last Minute/test_cases/7.in @@ -0,0 +1,5 @@ +3 3 3 3 +1 1 20 +2 2 25 +3 3 30 +4 4 35 \ No newline at end of file diff --git a/second week/Last Minute/test_cases/7.out b/second week/Last Minute/test_cases/7.out new file mode 100644 index 0000000..97e3504 --- /dev/null +++ b/second week/Last Minute/test_cases/7.out @@ -0,0 +1 @@ +110 \ No newline at end of file diff --git a/second week/Last Minute/test_cases/8.in b/second week/Last Minute/test_cases/8.in new file mode 100644 index 0000000..9e9df6c --- /dev/null +++ b/second week/Last Minute/test_cases/8.in @@ -0,0 +1,5 @@ +1 5 5 5 +10 +1 2 3 4 5 +5 4 3 2 1 +6 6 6 6 6 \ No newline at end of file diff --git a/second week/Last Minute/test_cases/8.out b/second week/Last Minute/test_cases/8.out new file mode 100644 index 0000000..d2e1cef --- /dev/null +++ b/second week/Last Minute/test_cases/8.out @@ -0,0 +1 @@ +44 \ No newline at end of file diff --git a/second week/Last Minute/test_cases/9.in b/second week/Last Minute/test_cases/9.in new file mode 100644 index 0000000..e625d63 --- /dev/null +++ b/second week/Last Minute/test_cases/9.in @@ -0,0 +1,5 @@ +4 3 5 2 +3 8 2 7 +5 6 1 +2 4 6 3 1 +9 2 \ No newline at end of file diff --git a/second week/Last Minute/test_cases/9.out b/second week/Last Minute/test_cases/9.out new file mode 100644 index 0000000..dc7b54a --- /dev/null +++ b/second week/Last Minute/test_cases/9.out @@ -0,0 +1 @@ +33 \ No newline at end of file