From fab3fed2b66f433812c3e4f38cf345d116a81b9b Mon Sep 17 00:00:00 2001 From: Dmitrii Ushakov Date: Tue, 26 May 2026 17:08:56 +0300 Subject: [PATCH 1/6] Change multiline to inline style in one of the asserts --- tasks/easy/arrays/loot_merge.toml | 39 +------------------------------ 1 file changed, 1 insertion(+), 38 deletions(-) diff --git a/tasks/easy/arrays/loot_merge.toml b/tasks/easy/arrays/loot_merge.toml index 39b6712..fc4910d 100644 --- a/tasks/easy/arrays/loot_merge.toml +++ b/tasks/easy/arrays/loot_merge.toml @@ -136,44 +136,7 @@ expected = [[3, 4]] [[asserts]] arguments = [[2, 4, 6, 8], [1, 3, 5, 7, 9]] comment = "Fully interleaved values" -expected = [ - [ - 1, - 1, - ], - [ - 2, - 1, - ], - [ - 3, - 1, - ], - [ - 4, - 1, - ], - [ - 5, - 1, - ], - [ - 6, - 1, - ], - [ - 7, - 1, - ], - [ - 8, - 1, - ], - [ - 9, - 1, - ], -] +expected = [[1, 1], [2, 1], [3, 1], [4, 1], [5, 1], [6, 1], [7, 1], [8, 1], [9, 1]] [[asserts]] arguments = [[1, 2, 10], [3, 4, 5, 6]] From 29ed344413b4843db96238ffee6eedfd20202c70 Mon Sep 17 00:00:00 2001 From: Dmitrii Ushakov Date: Tue, 26 May 2026 17:51:53 +0300 Subject: [PATCH 2/6] Major fixes in file structure --- tasks/easy/dp/rum_thirst.toml | 206 +++++++--------------------------- 1 file changed, 38 insertions(+), 168 deletions(-) diff --git a/tasks/easy/dp/rum_thirst.toml b/tasks/easy/dp/rum_thirst.toml index 9fb00da..6317f6f 100644 --- a/tasks/easy/dp/rum_thirst.toml +++ b/tasks/easy/dp/rum_thirst.toml @@ -1,9 +1,21 @@ -description_en = "A pirate walks along a deck lined with barrels of rum. Each barrel contains a certain number of liters (given as an array of non‑negative integers). The pirate cannot take rum from two adjacent barrels (that would make noise). What is the maximum total amount of rum he can drink unnoticed?\n" -description_ru = "Пират идет по палубе, заставленной бочками с ромом. В каждой бочке разное количество литров (задано массивом неотрицательных целых чисел). Он не может брать ром из двух соседних бочек (поднимется шум). Какое максимальное количество рома он может выпить незаметно?\n" -examples = "solution([]) == 0\nsolution([5]) == 5\nsolution([5, 3]) == 5\nsolution([5, 3, 7]) == 12\nsolution([2, 7, 9, 3, 1]) == 12\n" -level = "easy" -limits = "- $0 \\leq \\text{len}(\\text{barrels}) \\leq 1000$\n- $0 \\leq \\text{barrels}[i] \\leq 1000$\n" -name = "rum_thirst" +level = "easy" +name = "rum_thirst" +tags = ["dp", "algo", "collections"] +time_to_solve_sec = 180 + +description_en = """ +A pirate walks along a deck lined with barrels of rum. Each barrel contains a certain number of liters (given as an array of non‑negative integers). The pirate cannot take rum from two adjacent barrels (that would make noise). What is the maximum total amount of rum he can drink unnoticed? +""" + +description_ru = """ +Пират идет по палубе вдоль ряда бочек с ромом. В каждой бочке есть некоторое количество литров (задано массивом неотрицательных целых чисел). Он не может брать ром из двух соседних бочек (поднимется шум). Какое максимальное количество рома он может выпить незаметно? +""" + +limits = """ +- $0 \\leq \\text{len}(\\text{barrels}) \\leq 1000$ +- $0 \\leq \\text{barrels}[i] \\leq 1000$ +""" + solution = """ def solution(barrels: list[int]) -> int: prev2 = prev1 = 0 @@ -11,15 +23,25 @@ def solution(barrels: list[int]) -> int: prev2, prev1 = prev1, max(prev1, prev2 + x) return prev1 """ -tags = ["dp", "algo", "collections"] -time_to_solve_sec = 180 + +examples = """ +solution([]) == 0 +solution([5]) == 5 +solution([5, 3]) == 5 +solution([5, 3, 7]) == 12 +solution([2, 7, 9, 3, 1]) == 12 +""" + [[input_signature]] argument_name = "barrels" - [input_signature.type] name = "array" [input_signature.type.nested] name = "integer" + +[output_signature.type] +name = "integer" + [[asserts]] arguments = [[]] comment = "Test 1" @@ -76,52 +98,12 @@ comment = "Test 11" expected = 243 [[asserts]] -arguments = [ - [ - 241, - 310, - 105, - 738, - 405, - 490, - 158, - 92, - 68, - 20, - 411, - 562, - 939, - 296, - 819, - 783, - 60, - 227, - ], -] +arguments = [[241, 310, 105, 738, 405, 490, 158, 92, 68, 20, 411, 562, 939, 296, 819, 783, 60, 227]] comment = "Test 12" expected = 4026 [[asserts]] -arguments = [ - [ - 637, - 261, - 759, - 367, - 814, - 707, - 965, - 861, - 757, - 667, - 944, - 542, - 29, - 860, - 476, - 794, - ], -] +arguments = [[637, 261, 759, 367, 814, 707, 965, 861, 757, 667, 944, 542, 29, 860, 476, 794]] comment = "Test 13" expected = 6530 @@ -151,28 +133,7 @@ comment = "Test 18" expected = 1079 [[asserts]] -arguments = [ - [ - 463, - 886, - 573, - 877, - 946, - 799, - 476, - 462, - 520, - 875, - 601, - 194, - 189, - 823, - 524, - 487, - 644, - 628, - ], -] +arguments = [[463, 886, 573, 877, 946, 799, 476, 462, 520, 875, 601, 194, 189, 823, 524, 487, 644, 628]] comment = "Test 19" expected = 6031 @@ -192,30 +153,7 @@ comment = "Test 22" expected = 1403 [[asserts]] -arguments = [ - [ - 988, - 213, - 11, - 533, - 753, - 37, - 161, - 934, - 244, - 17, - 56, - 900, - 824, - 697, - 150, - 877, - 711, - 376, - 245, - 119, - ], -] +arguments = [[988, 213, 11, 533, 753, 37, 161, 934, 244, 17, 56, 900, 824, 697, 150, 877, 711, 376, 245, 119]] comment = "Test 23" expected = 5672 @@ -230,27 +168,7 @@ comment = "Test 25" expected = 2639 [[asserts]] -arguments = [ - [ - 185, - 125, - 677, - 459, - 342, - 245, - 202, - 974, - 501, - 643, - 505, - 187, - 491, - 302, - 469, - 908, - 270, - ], -] +arguments = [[185, 125, 677, 459, 342, 245, 202, 974, 501, 643, 505, 187, 491, 302, 469, 908, 270]] comment = "Test 26" expected = 4220 @@ -260,59 +178,11 @@ comment = "Test 27" expected = 2028 [[asserts]] -arguments = [ - [ - 927, - 740, - 702, - 805, - 784, - 901, - 926, - 154, - 266, - 690, - 650, - 869, - 926, - 103, - 893, - 335, - ], -] +arguments = [[927, 740, 702, 805, 784, 901, 926, 154, 266, 690, 650, 869, 926, 103, 893, 335]] comment = "Test 28" expected = 6074 [[asserts]] -arguments = [ - [ - 168, - 428, - 706, - 428, - 650, - 288, - 490, - 863, - 221, - 811, - 486, - 827, - 986, - 524, - 187, - 517, - 540, - 241, - ], -] +arguments = [[168, 428, 706, 428, 650, 288, 490, 863, 221, 811, 486, 827, 986, 524, 187, 517, 540, 241]] comment = "Test 29" expected = 5307 - -[[asserts]] -arguments = [[]] -comment = "Test 30" -expected = 0 - -[output_signature.type] -name = "integer" From 9d79130d323cda98b594674b52f620b459a2240b Mon Sep 17 00:00:00 2001 From: Dmitrii Ushakov Date: Wed, 27 May 2026 00:09:09 +0300 Subject: [PATCH 3/6] Major fixes in file structure --- tasks/medium/dp/black_mark.toml | 239 +++++++++----------------------- 1 file changed, 66 insertions(+), 173 deletions(-) diff --git a/tasks/medium/dp/black_mark.toml b/tasks/medium/dp/black_mark.toml index d4b6bd1..f8e76b3 100644 --- a/tasks/medium/dp/black_mark.toml +++ b/tasks/medium/dp/black_mark.toml @@ -1,12 +1,25 @@ -description_en = "You have a list of $n$ pirates ($n \\leq 20$) and $n$ dangerous tasks. Each pirate has a fear level for each task, given as an $n \\times n$ matrix `fear` where `fear[i][j]` is the fear of pirate $i$ for task $j$. You need to assign each pirate exactly one distinct task so that the total sum of fear levels is minimized. Return the minimal possible total.\n" -description_ru = "У вас есть список из $n$ пиратов ($n \\leq 20$) и $n$ опасных заданий. Каждый пират имеет свой уровень страха перед каждым заданием, заданный матрицей `fear` размером $n \\times n$, где `fear[i][j]` — уровень страха пирата $i$ перед заданием $j$. Необходимо назначить каждому пирату ровно одно уникальное задание так, чтобы суммарный уровень страха был минимальным. Верните минимально возможную сумму.\n" -examples = "solution([[5]]) == 5\nsolution([[1,2],[3,4]]) == 5\nsolution([[10,1],[1,10]]) == 2\n" -level = "medium" +level = "medium" +name = "black_mark" +tags = ["dp", "algo", "scheduling"] +time_to_solve_sec = 400 + +description_en = """ +You have a list of $n$ pirates ($n \\leq 20$) and $n$ dangerous tasks. Each pirate has a fear level for each task, given as an $n \\times n$ matrix `fear` where `fear[i][j]` is the fear of pirate $i$ for task $j$. + +You have to assign each pirate exactly one distinct task so that the total sum of fear levels is minimized. Return the minimal possible total. +""" + +description_ru = """ +У вас есть список из $n$ пиратов ($n \\leq 20$) и $n$ опасных заданий. Каждый пират имеет свой уровень страха перед каждым заданием, заданный матрицей `fear` размером $n \\times n$, где `fear[i][j]` — уровень страха пирата $i$ перед заданием $j$. + +Необходимо назначить каждому пирату ровно одно уникальное задание так, чтобы суммарный уровень страха был минимальным. Верните минимально возможную сумму. +""" + limits = """ - $1 \\leq n \\leq 20$ - $0 \\leq \\text{fear}[i][j] \\leq 1000$ """ -name = "black_mark" + solution = """ def solution(fear: list[list[int]]) -> int: n = len(fear) @@ -21,17 +34,25 @@ def solution(fear: list[list[int]]) -> int: dp[new_mask] = min(dp[new_mask], dp[mask] + fear[i][j]) return dp[(1 << n) - 1] """ -tags = ["dp", "algo", "scheduling"] -time_to_solve_sec = 400 + +examples = """ +solution([[5]]) == 5 +solution([[1, 2], [3, 4]]) == 5 +solution([[10, 1], [1, 10]]) == 2 +""" + [[input_signature]] argument_name = "fear" - [input_signature.type] name = "array" [input_signature.type.nested] name = "array" [input_signature.type.nested.nested] name = "integer" + +[output_signature.type] +name = "integer" + [[asserts]] arguments = [[[5]]] comment = "Test 1" @@ -62,211 +83,83 @@ arguments = [[[979]]] comment = "Test 6" expected = 979 -[[asserts]] -arguments = [[[244]]] -comment = "Test 7" -expected = 244 - [[asserts]] arguments = [ [ - [ - 242, - 311, - 106, - 739, - 406, - ], - [ - 491, - 159, - 93, - 69, - 21, - ], - [ - 412, - 563, - 940, - 297, - 820, - ], - [ - 784, - 61, - 228, - 533, - 550, - ], - [ - 369, - 284, - 799, - 177, - 847, - ], - ], + [242, 311, 106, 739, 406], + [491, 159, 93, 69, 21], + [412, 563, 940, 297, 820], + [784, 61, 228, 533, 550], + [369, 284, 799, 177, 847] + ] ] -comment = "Test 8" -expected = 777 - -[[asserts]] -arguments = [[[638]]] -comment = "Test 9" -expected = 638 +comment = "Test 7" +expected = 777 [[asserts]] arguments = [[[813, 588, 842], [83, 497, 781], [268, 38, 1]]] -comment = "Test 10" +comment = "Test 8" expected = 672 [[asserts]] arguments = [[[332, 971], [155, 405]]] -comment = "Test 11" +comment = "Test 9" expected = 737 -[[asserts]] -arguments = [[[233]]] -comment = "Test 12" -expected = 233 - [[asserts]] arguments = [[[475, 628, 383], [274, 142, 191], [888, 693, 7]]] -comment = "Test 13" +comment = "Test 10" expected = 624 [[asserts]] arguments = [[[586, 34, 440], [495, 592, 16], [212, 474, 833]]] -comment = "Test 14" +comment = "Test 11" expected = 262 [[asserts]] arguments = [ [ - [ - 464, - 887, - 574, - 878, - ], - [ - 947, - 800, - 477, - 463, - ], - [ - 521, - 876, - 602, - 195, - ], - [ - 190, - 824, - 525, - 488, - ], - ], + [464, 887, 574, 878], + [947, 800, 477, 463], + [521, 876, 602, 195], + [190, 824, 525, 488] + ] ] -comment = "Test 15" -expected = 1749 +comment = "Test 12" +expected = 1749 [[asserts]] arguments = [ [ - [ - 486, - 276, - 674, - 542, - 683, - ], - [ - 359, - 147, - 391, - 12, - 384, - ], - [ - 495, - 281, - 659, - 830, - 472, - ], - [ - 708, - 886, - 616, - 234, - 572, - ], - [ - 2, - 678, - 640, - 149, - 451, - ], - ], + [486, 276, 674, 542, 683], + [359, 147, 391, 12, 384], + [495, 281, 659, 830, 472], + [708, 886, 616, 234, 572], + [2, 678, 640, 149, 451] + ] ] -comment = "Test 16" -expected = 1375 +comment = "Test 13" +expected = 1375 [[asserts]] arguments = [[[266, 298, 702], [932, 701, 822], [870, 912, 191]]] -comment = "Test 17" +comment = "Test 14" expected = 1158 [[asserts]] arguments = [[[110, 631], [720, 774]]] -comment = "Test 18" +comment = "Test 15" expected = 884 [[asserts]] arguments = [ [ - [ - 989, - 214, - 12, - 534, - 754, - ], - [ - 38, - 162, - 935, - 245, - 18, - ], - [ - 57, - 901, - 825, - 698, - 151, - ], - [ - 878, - 712, - 377, - 246, - 120, - ], - [ - 347, - 478, - 726, - 365, - 288, - ], - ], + [989, 214, 12, 534, 754], + [38, 162, 935, 245, 18], + [57, 901, 825, 698, 151], + [878, 712, 377, 246, 120], + [347, 478, 726, 365, 288] + ] ] -comment = "Test 19" -expected = 716 - -[output_signature.type] -name = "integer" +comment = "Test 16" +expected = 716 From 3aa2564576541d3658c3fd27c4b1685d0b0b6207 Mon Sep 17 00:00:00 2001 From: Dmitrii Ushakov Date: Wed, 27 May 2026 00:16:58 +0300 Subject: [PATCH 4/6] Minor fix --- tasks/medium/games/feeding_kraken.toml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tasks/medium/games/feeding_kraken.toml b/tasks/medium/games/feeding_kraken.toml index 320571d..a1a320a 100644 --- a/tasks/medium/games/feeding_kraken.toml +++ b/tasks/medium/games/feeding_kraken.toml @@ -13,15 +13,15 @@ description_ru = """ limits = """ - $0 \\leq a, b, c \\leq 1000$ +- $a + b + c \\geq 1$ """ solution = """ def solution(a: int, b: int, c: int) -> bool: - return (a ^ b ^ c) != 0 + return a ^ b ^ c != 0 """ examples = """ -solution(0, 0, 0) == False solution(1, 0, 0) == True solution(1, 1, 0) == False solution(1, 2, 3) == False From 8c5babcf3f2aa4a8312d7633c56ba481535b83d4 Mon Sep 17 00:00:00 2001 From: Dmitrii Ushakov Date: Wed, 27 May 2026 00:23:51 +0300 Subject: [PATCH 5/6] Change multiline to inline style in asserts --- .../medium/greedy/lone_whetstone_dilemma.toml | 476 +----------------- 1 file changed, 26 insertions(+), 450 deletions(-) diff --git a/tasks/medium/greedy/lone_whetstone_dilemma.toml b/tasks/medium/greedy/lone_whetstone_dilemma.toml index 8adc630..007ca16 100644 --- a/tasks/medium/greedy/lone_whetstone_dilemma.toml +++ b/tasks/medium/greedy/lone_whetstone_dilemma.toml @@ -142,32 +142,8 @@ expected = 230 [[asserts]] arguments = [ - [ - 9, - 8, - 4, - 10, - 9, - 10, - 6, - 1, - 7, - 9, - 7, - ], - [ - 9, - 10, - 8, - 9, - 7, - 6, - 9, - 1, - 3, - 2, - 8, - ], + [9, 8, 4, 10, 9, 10, 6, 1, 7, 9, 7], + [9, 10, 8, 9, 7, 6, 9, 1, 3, 2, 8] ] comment = "Test 10" expected = 2383 @@ -179,36 +155,8 @@ expected = 760 [[asserts]] arguments = [ - [ - 9, - 9, - 1, - 5, - 8, - 4, - 9, - 8, - 3, - 3, - 9, - 8, - 7, - ], - [ - 8, - 1, - 1, - 3, - 8, - 4, - 1, - 5, - 6, - 5, - 7, - 7, - 1, - ], + [9, 9, 1, 5, 8, 4, 9, 8, 3, 3, 9, 8, 7], + [8, 1, 1, 3, 8, 4, 1, 5, 6, 5, 7, 7, 1] ] comment = "Test 12" expected = 1703 @@ -220,94 +168,16 @@ expected = 150 [[asserts]] arguments = [ - [ - 7, - 2, - 9, - 7, - 1, - 6, - 5, - 8, - 1, - 9, - 6, - 7, - 6, - 1, - 3, - 7, - 2, - 3, - ], - [ - 6, - 4, - 2, - 1, - 9, - 7, - 9, - 5, - 3, - 5, - 7, - 6, - 3, - 9, - 6, - 9, - 2, - 3, - ], + [7, 2, 9, 7, 1, 6, 5, 8, 1, 9, 6, 7, 6, 1, 3, 7, 2, 3], + [6, 4, 2, 1, 9, 7, 9, 5, 3, 5, 7, 6, 3, 9, 6, 9, 2, 3] ] comment = "Test 14" expected = 2669 [[asserts]] arguments = [ - [ - 7, - 7, - 1, - 3, - 8, - 1, - 6, - 8, - 8, - 5, - 7, - 1, - 3, - 9, - 6, - 9, - 9, - 9, - 3, - ], - [ - 6, - 9, - 2, - 9, - 6, - 4, - 10, - 6, - 2, - 5, - 9, - 4, - 4, - 6, - 5, - 7, - 1, - 9, - 2, - ], + [7, 7, 1, 3, 8, 1, 6, 8, 8, 5, 7, 1, 3, 9, 6, 9, 9, 9, 3], + [6, 9, 2, 9, 6, 4, 10, 6, 2, 5, 9, 4, 4, 6, 5, 7, 1, 9, 2] ] comment = "Test 15" expected = 4262 @@ -324,112 +194,24 @@ expected = 468 [[asserts]] arguments = [ - [ - 4, - 9, - 3, - 10, - 1, - 10, - 10, - 8, - 6, - 10, - 2, - 1, - 6, - ], - [ - 8, - 6, - 7, - 6, - 6, - 4, - 8, - 6, - 4, - 3, - 7, - 1, - 7, - ], + [4, 9, 3, 10, 1, 10, 10, 8, 6, 10, 2, 1, 6], + [8, 6, 7, 6, 6, 4, 8, 6, 4, 3, 7, 1, 7] ] comment = "Test 18" expected = 2048 [[asserts]] arguments = [ - [ - 9, - 5, - 3, - 9, - 7, - 6, - 2, - 5, - 2, - 5, - 9, - 10, - 6, - ], - [ - 1, - 7, - 1, - 10, - 7, - 5, - 2, - 8, - 10, - 6, - 4, - 8, - 5, - ], + [9, 5, 3, 9, 7, 6, 2, 5, 2, 5, 9, 10, 6], + [1, 7, 1, 10, 7, 5, 2, 8, 10, 6, 4, 8, 5] ] comment = "Test 19" expected = 2130 [[asserts]] arguments = [ - [ - 10, - 10, - 6, - 4, - 8, - 9, - 10, - 5, - 6, - 1, - 3, - 2, - 1, - 7, - 8, - ], - [ - 3, - 8, - 9, - 1, - 8, - 9, - 3, - 6, - 6, - 4, - 10, - 1, - 8, - 9, - 10, - ], + [10, 10, 6, 4, 8, 9, 10, 5, 6, 1, 3, 2, 1, 7, 8], + [3, 8, 9, 1, 8, 9, 3, 6, 6, 4, 10, 1, 8, 9, 10] ] comment = "Test 20" expected = 2995 @@ -441,44 +223,8 @@ expected = 738 [[asserts]] arguments = [ - [ - 3, - 9, - 4, - 5, - 8, - 8, - 4, - 5, - 9, - 2, - 2, - 8, - 10, - 9, - 9, - 5, - 4, - ], - [ - 9, - 2, - 7, - 7, - 8, - 2, - 1, - 10, - 7, - 7, - 9, - 6, - 3, - 8, - 3, - 4, - 4, - ], + [3, 9, 4, 5, 8, 8, 4, 5, 9, 2, 2, 8, 10, 9, 9, 5, 4], + [9, 2, 7, 7, 8, 2, 1, 10, 7, 7, 9, 6, 3, 8, 3, 4, 4] ] comment = "Test 22" expected = 3105 @@ -505,74 +251,16 @@ expected = 504 [[asserts]] arguments = [ - [ - 4, - 7, - 1, - 2, - 9, - 2, - 10, - 6, - 2, - 4, - 7, - 3, - ], - [ - 7, - 3, - 8, - 3, - 1, - 3, - 2, - 6, - 1, - 2, - 3, - 4, - ], + [4, 7, 1, 2, 9, 2, 10, 6, 2, 4, 7, 3], + [7, 3, 8, 3, 1, 3, 2, 6, 1, 2, 3, 4] ] comment = "Test 27" expected = 675 [[asserts]] arguments = [ - [ - 7, - 4, - 7, - 1, - 1, - 3, - 2, - 8, - 2, - 3, - 1, - 6, - 8, - 4, - 4, - ], - [ - 4, - 7, - 6, - 3, - 2, - 1, - 5, - 6, - 7, - 6, - 4, - 1, - 1, - 9, - 2, - ], + [7, 4, 7, 1, 1, 3, 2, 8, 2, 3, 1, 6, 8, 4, 4], + [4, 7, 6, 3, 2, 1, 5, 6, 7, 6, 4, 1, 1, 9, 2] ] comment = "Test 28" expected = 1146 @@ -594,136 +282,24 @@ expected = 512 [[asserts]] arguments = [ - [ - 8, - 5, - 9, - 9, - 3, - 7, - 1, - 5, - 1, - 3, - 4, - 6, - 3, - 2, - ], - [ - 3, - 10, - 2, - 5, - 2, - 2, - 6, - 1, - 5, - 6, - 3, - 5, - 7, - 2, - ], + [8, 5, 9, 9, 3, 7, 1, 5, 1, 3, 4, 6, 3, 2], + [3, 10, 2, 5, 2, 2, 6, 1, 5, 6, 3, 5, 7, 2] ] comment = "Test 32" expected = 1107 [[asserts]] arguments = [ - [ - 5, - 9, - 9, - 2, - 9, - 2, - 6, - 5, - 5, - 8, - 4, - 1, - 2, - 2, - 10, - 2, - 8, - 7, - 6, - 3, - ], - [ - 3, - 7, - 1, - 7, - 4, - 4, - 1, - 7, - 3, - 2, - 3, - 9, - 5, - 7, - 3, - 7, - 5, - 2, - 1, - 2, - ], + [5, 9, 9, 2, 9, 2, 6, 5, 5, 8, 4, 1, 2, 2, 10, 2, 8, 7, 6, 3], + [3, 7, 1, 7, 4, 4, 1, 7, 3, 2, 3, 9, 5, 7, 3, 7, 5, 2, 1, 2] ] comment = "Test 33" expected = 2180 [[asserts]] arguments = [ - [ - 7, - 5, - 10, - 1, - 9, - 4, - 5, - 5, - 10, - 9, - 6, - 1, - 3, - 5, - 5, - 4, - 7, - 4, - 8, - ], - [ - 1, - 7, - 2, - 3, - 3, - 1, - 9, - 4, - 2, - 8, - 10, - 4, - 7, - 10, - 7, - 9, - 6, - 2, - 4, - ], + [7, 5, 10, 1, 9, 4, 5, 5, 10, 9, 6, 1, 3, 5, 5, 4, 7, 4, 8], + [1, 7, 2, 3, 3, 1, 9, 4, 2, 8, 10, 4, 7, 10, 7, 9, 6, 2, 4] ] comment = "Test 34" expected = 3220 From f8768f25b2fa803f7228a418264b36f60ecb6477 Mon Sep 17 00:00:00 2001 From: Dmitrii Ushakov Date: Wed, 27 May 2026 00:37:00 +0300 Subject: [PATCH 6/6] Order examples --- tasks/medium/stack/broadside_salvo.toml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/tasks/medium/stack/broadside_salvo.toml b/tasks/medium/stack/broadside_salvo.toml index cc925cb..65ab64c 100644 --- a/tasks/medium/stack/broadside_salvo.toml +++ b/tasks/medium/stack/broadside_salvo.toml @@ -33,10 +33,10 @@ def solution(heights: list[int]) -> int: """ examples = """ -solution([2,1,5,6,2,3]) == 10 -solution([2,4]) == 4 -solution([1]) == 1 solution([]) == 0 +solution([1]) == 1 +solution([2, 4]) == 4 +solution([2, 1, 5, 6, 2, 3]) == 10 """ [[input_signature]]