From f1a37e5ee0d8da01523c25f58fd480645071013b Mon Sep 17 00:00:00 2001 From: Dmitrii <36790425+dimaush@users.noreply.github.com> Date: Sat, 25 Apr 2026 01:04:36 +0300 Subject: [PATCH 1/2] Update longest_winter_holiday.toml MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit В одном из примеров ошибка в ответе. --- tasks/medium/collections/longest_winter_holiday.toml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tasks/medium/collections/longest_winter_holiday.toml b/tasks/medium/collections/longest_winter_holiday.toml index 1de7f84..6140be4 100644 --- a/tasks/medium/collections/longest_winter_holiday.toml +++ b/tasks/medium/collections/longest_winter_holiday.toml @@ -39,7 +39,7 @@ examples = """ solution([1], 0) == 1 solution([0], 1) == 1 solution([1, 0, 1], 1) == 3 -solution([1, 0, 0, 1], 1) == 3 +solution([1, 0, 0, 1], 1) == 2 solution([1, 1, 0, 0, 1, 1], 2) == 6 """ From 1f6a4554f8b07259e12044bfc311df77ce9a5c01 Mon Sep 17 00:00:00 2001 From: Dmitrii Ushakov Date: Wed, 29 Apr 2026 20:20:38 +0300 Subject: [PATCH 2/2] Fix description --- tasks/easy/collections/braid.toml | 18 ++++++++---------- 1 file changed, 8 insertions(+), 10 deletions(-) diff --git a/tasks/easy/collections/braid.toml b/tasks/easy/collections/braid.toml index 5889a53..baa3d6e 100644 --- a/tasks/easy/collections/braid.toml +++ b/tasks/easy/collections/braid.toml @@ -4,23 +4,21 @@ tags = ["collections", "simulation"] time_to_solve_sec = 300 description_en = """ -You are given three arrays `a1`, `a2`, `a3` of equal length $n$. +You are given three arrays $A_1$, $A_2$, $A_3$ of equal length $n$. -Form a **braid** as follows. For each index $i$ from $0$ to $n-1$: -output the triplet $[A_0[i], A_1[i], A_2[i]]$, then -- if $i$ is even, swap the first two ribbons: $(A_0, A_1, A_2) \\leftarrow (A_1, A_0, A_2)$; -- otherwise, swap the last two ribbons: $(A_0, A_1, A_2) \\leftarrow (A_0, A_2, A_1)$. +Form a **braid** as follows. For each index $i$ from $0$ to $n-1$: add the triplet $[A_1[i], A_2[i], A_3[i]]$, and then +- if $i$ is even, swap the first two ribbons: $(A_1, A_2, A_3) \\rightarrow (A_2, A_1, A_3)$; +- otherwise, swap the last two ribbons: $(A_1, A_2, A_3) \\rightarrow (A_1, A_3, A_2)$. Return the resulting array of triplets. """ description_ru = """ -Даны три массива одинаковой длины `a1`, `a2`, `a3` (длина $n$). +Даны три массива $A_1$, $A_2$, $A_3$ одинаковой длины $n$. -Плетём **косичку** так. Для каждого индекса $i$ от $0$ до $n-1$: -выведите тройку $[A_0[i], A_1[i], A_2[i]]$, затем -- если $i$ чётный, поменяйте местами первые две ленты: $(A_0, A_1, A_2) \\leftarrow (A_1, A_0, A_2)$; -- иначе поменяйте местами последние две ленты: $(A_0, A_1, A_2) \\leftarrow (A_0, A_2, A_1)$. +Плетём **косичку** так. Для каждого индекса $i$ от $0$ до $n-1$: добавьте тройку $[A_1[i], A_2[i], A_3[i]]$, и затем +- если $i$ чётный, поменяйте местами первые две ленты: $(A_1, A_2, A_3) \\rightarrow (A_2, A_1, A_3)$; +- иначе поменяйте местами последние две ленты: $(A_1, A_2, A_3) \\rightarrow (A_1, A_3, A_2)$. Верните получившийся массив троек. """