From 00de46a9d15f968c7c84750a56949b5a3fd59939 Mon Sep 17 00:00:00 2001 From: Ivan Reshetnikov Date: Sat, 21 Dec 2024 14:16:51 +0500 Subject: [PATCH] Change the structure of codeforces solutions --- codeforces/contest-1927/README.md | 3 +++ .../{round-923 => contest-1927}/task-a/Makefile | 0 .../readme.md => contest-1927/task-a/README.md} | 8 +++++--- .../{round-923 => contest-1927}/task-a/main.cpp | 0 .../{round-923 => contest-1927}/task-b/Makefile | 0 .../readme.md => contest-1927/task-b/README.md} | 8 +++++--- .../{round-923 => contest-1927}/task-b/main.cpp | 0 .../{round-923 => contest-1927}/task-d/Makefile | 0 .../readme.md => contest-1927/task-d/README.md} | 5 +++-- .../{round-923 => contest-1927}/task-d/main.cpp | 0 codeforces/contest-2026/README.md | 3 +++ .../problem_a/Cargo.lock | 0 .../problem_a/Cargo.toml | 0 .../{round-171 => contest-2026}/problem_a/README.md | 4 ++-- .../problem_a/src/main.rs | 0 .../problem_b/Cargo.lock | 0 .../problem_b/Cargo.toml | 0 .../{round-171 => contest-2026}/problem_b/README.md | 3 ++- .../problem_b/src/main.rs | 0 codeforces/contest-2029/README.md | 3 +++ .../problem_a/Cargo.lock | 0 .../problem_a/Cargo.toml | 0 .../{round-985 => contest-2029}/problem_a/README.md | 7 ++++--- .../problem_a/src/main.rs | 0 codeforces/contest-2032/README.md | 3 +++ .../{round-983 => contest-2032}/task_a/Cargo.lock | 0 .../{round-983 => contest-2032}/task_a/Cargo.toml | 0 .../{round-983 => contest-2032}/task_a/README.md | 13 ++++++++----- .../{round-983 => contest-2032}/task_a/src/main.rs | 0 codeforces/round-923/readme.md | 3 --- 30 files changed, 41 insertions(+), 22 deletions(-) create mode 100644 codeforces/contest-1927/README.md rename codeforces/{round-923 => contest-1927}/task-a/Makefile (100%) rename codeforces/{round-923/task-a/readme.md => contest-1927/task-a/README.md} (76%) rename codeforces/{round-923 => contest-1927}/task-a/main.cpp (100%) rename codeforces/{round-923 => contest-1927}/task-b/Makefile (100%) rename codeforces/{round-923/task-b/readme.md => contest-1927/task-b/README.md} (83%) rename codeforces/{round-923 => contest-1927}/task-b/main.cpp (100%) rename codeforces/{round-923 => contest-1927}/task-d/Makefile (100%) rename codeforces/{round-923/task-d/readme.md => contest-1927/task-d/README.md} (89%) rename codeforces/{round-923 => contest-1927}/task-d/main.cpp (100%) create mode 100644 codeforces/contest-2026/README.md rename codeforces/{round-171 => contest-2026}/problem_a/Cargo.lock (100%) rename codeforces/{round-171 => contest-2026}/problem_a/Cargo.toml (100%) rename codeforces/{round-171 => contest-2026}/problem_a/README.md (92%) rename codeforces/{round-171 => contest-2026}/problem_a/src/main.rs (100%) rename codeforces/{round-171 => contest-2026}/problem_b/Cargo.lock (100%) rename codeforces/{round-171 => contest-2026}/problem_b/Cargo.toml (100%) rename codeforces/{round-171 => contest-2026}/problem_b/README.md (96%) rename codeforces/{round-171 => contest-2026}/problem_b/src/main.rs (100%) create mode 100644 codeforces/contest-2029/README.md rename codeforces/{round-985 => contest-2029}/problem_a/Cargo.lock (100%) rename codeforces/{round-985 => contest-2029}/problem_a/Cargo.toml (100%) rename codeforces/{round-985 => contest-2029}/problem_a/README.md (91%) rename codeforces/{round-985 => contest-2029}/problem_a/src/main.rs (100%) create mode 100644 codeforces/contest-2032/README.md rename codeforces/{round-983 => contest-2032}/task_a/Cargo.lock (100%) rename codeforces/{round-983 => contest-2032}/task_a/Cargo.toml (100%) rename codeforces/{round-983 => contest-2032}/task_a/README.md (87%) rename codeforces/{round-983 => contest-2032}/task_a/src/main.rs (100%) delete mode 100644 codeforces/round-923/readme.md diff --git a/codeforces/contest-1927/README.md b/codeforces/contest-1927/README.md new file mode 100644 index 0000000..509e5f3 --- /dev/null +++ b/codeforces/contest-1927/README.md @@ -0,0 +1,3 @@ +# Round 923 (div. 3) + +[Contest page](https://codeforces.com/contest/1927/) diff --git a/codeforces/round-923/task-a/Makefile b/codeforces/contest-1927/task-a/Makefile similarity index 100% rename from codeforces/round-923/task-a/Makefile rename to codeforces/contest-1927/task-a/Makefile diff --git a/codeforces/round-923/task-a/readme.md b/codeforces/contest-1927/task-a/README.md similarity index 76% rename from codeforces/round-923/task-a/readme.md rename to codeforces/contest-1927/task-a/README.md index 8184bc5..bb77953 100644 --- a/codeforces/round-923/task-a/readme.md +++ b/codeforces/contest-1927/task-a/README.md @@ -1,10 +1,11 @@ # A. Make it White -[Codeforces.com](https://codeforces.com/contest/1927/problem/A) +[Task page](https://codeforces.com/contest/1927/problem/A) You have a horizontal strip of n cells. Each cell is either white or black. -You can choose a continuous segment of cells once and paint them all white. After this action, all the black cells in this segment will become white, and the white ones will remain white. +You can choose a continuous segment of cells once and paint them all white. +After this action, all the black cells in this segment will become white, and the white ones will remain white. What is the minimum length of the segment that needs to be painted white in order for all n cells to become white? @@ -23,7 +24,8 @@ It is guaranteed that at least one cell of the given strip is black. ## Output -For each test case, output a single number — the minimum length of a continuous segment of cells that needs to be painted white in order for the entire strip to become white. +For each test case, output a single number — the minimum length of a continuous segment of cells that +needs to be painted white in order for the entire strip to become white. ## Example diff --git a/codeforces/round-923/task-a/main.cpp b/codeforces/contest-1927/task-a/main.cpp similarity index 100% rename from codeforces/round-923/task-a/main.cpp rename to codeforces/contest-1927/task-a/main.cpp diff --git a/codeforces/round-923/task-b/Makefile b/codeforces/contest-1927/task-b/Makefile similarity index 100% rename from codeforces/round-923/task-b/Makefile rename to codeforces/contest-1927/task-b/Makefile diff --git a/codeforces/round-923/task-b/readme.md b/codeforces/contest-1927/task-b/README.md similarity index 83% rename from codeforces/round-923/task-b/readme.md rename to codeforces/contest-1927/task-b/README.md index 210ca2d..a0aaa6b 100644 --- a/codeforces/round-923/task-b/readme.md +++ b/codeforces/contest-1927/task-b/README.md @@ -1,13 +1,15 @@ # B. Following the String -[Codeforces.com](https://codeforces.com/contest/1927/problem/B) +[Task page](https://codeforces.com/contest/1927/problem/B) Polycarp lost the string s of length n consisting of lowercase Latin letters, but he still has its trace. The trace of the string s -is an array a of n integers, where ai is the number of such indices j (j