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