Solutions are presented as using the least memory and the fastest execution time. It also takes the top 10 most recent solutions from each language. If you want to limit to a specific index, click the "Solved" button and go to that problem.
ContestId |
Name |
Phase |
Frozen |
Duration (Seconds) |
Relative Time |
Start Time |
---|---|---|---|---|---|---|
1415 | Technocup 2021 - Elimination Round 2 | FINISHED | False | 7200 | 125189699 | Nov. 29, 2020, 7:05 a.m. |
Solved$ |
Index |
Name |
Type |
Tags |
Community Tag |
Rating |
---|---|---|---|---|---|---|
( 12205 ) | B | Repainting Street | PROGRAMMING | brute force brute force greedy |
B"There is a street with n houses in a line, numbered from 1 to n . The house i is initially painted in color c_i . The street is considered beautiful if all houses are painted in the same color. Tom, the painter, is in charge of making the street beautiful. Tom's painting capacity is defined by an integer, let's call it k . On one day, Tom can do the following repainting process that consists of two steps: Note that in the same day Tom can use different colors to repaint different houses. Tom wants to know the minimum number of days needed to repaint the street so that it becomes beautiful. The first line of input contains a single integer t ( 1 <= t <= 10^4 ), the number of test cases. Description of test cases follows. In the first line of a test case description there are two integers n and k ( 1 <= k <= n <= 10^5 ). The second line contains n space-separated integers. The i -th of these integers represents c_i ( 1 <= c_i <= 100 ), the color which house i is initially painted in. It is guaranteed that the sum of n over all test cases does not exceed 10^5 . Print t lines, each with one integer: the minimum number of days Tom needs to make the street beautiful for each test case. In the first test case Tom should paint houses 1 and 2 in the first day in color 2, houses 5 and 6 in the second day in color 2, and the last house in color 2 on the third day. In the second test case Tom can, for example, spend 6 days to paint houses 1, 2, 4, 5, 6, 7 in color 3. In the third test case Tom can paint the first house in the first day and houses 6, 7, and 8 in the second day in color 3. "... |
Editorial of Codeforces Round 687 (Technocup 2021 — Elimitation Round 2) |
Submission Id |
Author(s) |
Index |
Submitted |
Verdict |
Language |
Test Set |
Tests Passed |
Time taken (ms) |
Memory Consumed (bytes) |
Tags |
Rating |
---|---|---|---|---|---|---|---|---|---|---|---|
99933706 | Bhgbz | B | Nov. 29, 2020, 7:07 p.m. | OK | FPC | TESTS | 21 | 62 | 409600 | ||
99858736 | protogrammer | B | Nov. 29, 2020, 7:40 a.m. | OK | GNU C11 | TESTS | 21 | 46 | 409600 | ||
99890239 | xcxc82 | B | Nov. 29, 2020, 10:01 a.m. | OK | GNU C++11 | TESTS | 21 | 30 | 819200 | ||
99901614 | yangshaoqi | B | Nov. 29, 2020, 12:18 p.m. | OK | GNU C++11 | TESTS | 21 | 31 | 409600 | ||
99893227 | 9876879876 | B | Nov. 29, 2020, 10:32 a.m. | OK | GNU C++11 | TESTS | 21 | 46 | 409600 | ||
99899062 | TYpeWriting | B | Nov. 29, 2020, 11:40 a.m. | OK | GNU C++11 | TESTS | 21 | 46 | 3686400 | ||
99936986 | hir0inmyheart | B | Nov. 29, 2020, 8:35 p.m. | OK | GNU C++11 | TESTS | 21 | 62 | 409600 | ||
99863395 | myav | B | Nov. 29, 2020, 7:51 a.m. | OK | GNU C++11 | TESTS | 21 | 62 | 409600 | ||
99954496 | yoji_20 | B | Nov. 30, 2020, 5:25 a.m. | OK | GNU C++11 | TESTS | 21 | 62 | 819200 | ||
99878382 | Xantre | B | Nov. 29, 2020, 8:34 a.m. | OK | GNU C++11 | TESTS | 21 | 77 | 204800 | ||
99939412 | saiful.dh | B | Nov. 29, 2020, 10:07 p.m. | OK | GNU C++11 | TESTS | 21 | 77 | 409600 | ||
99949902 | fw_hz | B | Nov. 30, 2020, 3:31 a.m. | OK | GNU C++11 | TESTS | 21 | 77 | 409600 | ||
99844758 | juggernaut | B | Nov. 29, 2020, 7:14 a.m. | OK | GNU C++14 | TESTS | 21 | 31 | 409600 | ||
99907158 | Lev2131 | B | Nov. 29, 2020, 1:28 p.m. | OK | GNU C++14 | TESTS | 21 | 46 | 409600 | ||
99934035 | projavoja | B | Nov. 29, 2020, 7:14 p.m. | OK | GNU C++14 | TESTS | 21 | 46 | 409600 | ||
99926832 | Minh2409 | B | Nov. 29, 2020, 4:54 p.m. | OK | GNU C++14 | TESTS | 21 | 46 | 409600 | ||
99899124 | shabad.k8244 | B | Nov. 29, 2020, 11:41 a.m. | OK | GNU C++14 | TESTS | 21 | 46 | 409600 | ||
99893895 | rum3r | B | Nov. 29, 2020, 10:38 a.m. | OK | GNU C++14 | TESTS | 21 | 46 | 409600 | ||
99853487 | gen4ik | B | Nov. 29, 2020, 7:28 a.m. | OK | GNU C++14 | TESTS | 21 | 46 | 409600 | ||
99851696 | UnstoppableMathMachine | B | Nov. 29, 2020, 7:25 a.m. | OK | GNU C++14 | TESTS | 21 | 46 | 409600 | ||
99850894 | _-- | B | Nov. 29, 2020, 7:23 a.m. | OK | GNU C++14 | TESTS | 21 | 46 | 409600 | ||
99947097 | esmael_samir | B | Nov. 30, 2020, 1:50 a.m. | OK | GNU C++14 | TESTS | 21 | 46 | 512000 | ||
99929726 | rishipeddakama | B | Nov. 29, 2020, 5:51 p.m. | OK | GNU C++17 | TESTS | 21 | 31 | 921600 | ||
99881452 | DiBrain | B | Nov. 29, 2020, 8:45 a.m. | OK | GNU C++17 | TESTS | 21 | 46 | 204800 | ||
99896290 | Antoine | B | Nov. 29, 2020, 11:06 a.m. | OK | GNU C++17 | TESTS | 21 | 46 | 409600 | ||
99892996 | shishir_karanth | B | Nov. 29, 2020, 10:29 a.m. | OK | GNU C++17 | TESTS | 21 | 46 | 409600 | ||
99891499 | nikhilkumarmishra120 | B | Nov. 29, 2020, 10:14 a.m. | OK | GNU C++17 | TESTS | 21 | 46 | 409600 | ||
99886468 | Uniwerty | B | Nov. 29, 2020, 9:03 a.m. | OK | GNU C++17 | TESTS | 21 | 46 | 409600 | ||
99881411 | UnstoppableFlexMachine | B | Nov. 29, 2020, 8:45 a.m. | OK | GNU C++17 | TESTS | 21 | 46 | 409600 | ||
99881976 | hackerito | B | Nov. 29, 2020, 8:47 a.m. | OK | GNU C++17 | TESTS | 21 | 46 | 409600 | ||
99953723 | bhargavraM882 | B | Nov. 30, 2020, 5:07 a.m. | OK | GNU C++17 | TESTS | 21 | 46 | 409600 | ||
99946774 | rahulsubramanian | B | Nov. 30, 2020, 1:37 a.m. | OK | GNU C++17 | TESTS | 21 | 46 | 409600 | ||
99841524 | AlFlen | B | Nov. 29, 2020, 7:10 a.m. | OK | GNU C++17 (64) | TESTS | 21 | 31 | 409600 | ||
99923521 | Aditya-A-garwal | B | Nov. 29, 2020, 4 p.m. | OK | GNU C++17 (64) | TESTS | 21 | 31 | 409600 | ||
99882853 | Dasha_progr. | B | Nov. 29, 2020, 8:50 a.m. | OK | GNU C++17 (64) | TESTS | 21 | 31 | 409600 | ||
99876312 | BlogUnderground | B | Nov. 29, 2020, 8:27 a.m. | OK | GNU C++17 (64) | TESTS | 21 | 31 | 409600 | ||
99857677 | Nagim123 | B | Nov. 29, 2020, 7:37 a.m. | OK | GNU C++17 (64) | TESTS | 21 | 31 | 409600 | ||
99842373 | 74TrAkToR | B | Nov. 29, 2020, 7:11 a.m. | OK | GNU C++17 (64) | TESTS | 21 | 31 | 409600 | ||
99842236 | wronganswer | B | Nov. 29, 2020, 7:11 a.m. | OK | GNU C++17 (64) | TESTS | 21 | 31 | 409600 | ||
99844995 | Snoudin | B | Nov. 29, 2020, 7:14 a.m. | OK | GNU C++17 (64) | TESTS | 21 | 31 | 409600 | ||
99862633 | reverser- | B | Nov. 29, 2020, 7:49 a.m. | OK | GNU C++17 (64) | TESTS | 21 | 31 | 819200 | ||
99896811 | thenymphsofdelphi | B | Nov. 29, 2020, 11:12 a.m. | OK | GNU C++17 (64) | TESTS | 21 | 31 | 819200 | ||
99922285 | abdelrahman-yousf | B | Nov. 29, 2020, 3:41 p.m. | OK | Java 11 | TESTS | 21 | 217 | 0 | ||
99876775 | Shokersss | B | Nov. 29, 2020, 8:29 a.m. | OK | Java 11 | TESTS | 21 | 217 | 0 | ||
99863467 | Tardimgg | B | Nov. 29, 2020, 7:51 a.m. | OK | Java 11 | TESTS | 21 | 234 | 0 | ||
99894887 | loser001 | B | Nov. 29, 2020, 10:49 a.m. | OK | Java 11 | TESTS | 21 | 327 | 0 | ||
99921598 | 18o3 | B | Nov. 29, 2020, 3:30 p.m. | OK | Java 11 | TESTS | 21 | 373 | 0 | ||
99920554 | dhruvil_01 | B | Nov. 29, 2020, 3:16 p.m. | OK | Java 11 | TESTS | 21 | 373 | 0 | ||
99889280 | moli2398 | B | Nov. 29, 2020, 9:54 a.m. | OK | Java 8 | TESTS | 21 | 124 | 0 | ||
99886077 | volodamlv | B | Nov. 29, 2020, 9:02 a.m. | OK | Java 8 | TESTS | 21 | 140 | 0 | ||
99905403 | xoszm | B | Nov. 29, 2020, 1:06 p.m. | OK | Java 8 | TESTS | 21 | 170 | 0 | ||
99849711 | garey | B | Nov. 29, 2020, 7:21 a.m. | OK | Java 8 | TESTS | 21 | 170 | 0 | ||
99876845 | Kirill_Maglysh | B | Nov. 29, 2020, 8:29 a.m. | OK | Java 8 | TESTS | 21 | 171 | 0 | ||
99936497 | manas123 | B | Nov. 29, 2020, 8:20 p.m. | OK | Java 8 | TESTS | 21 | 312 | 0 | ||
99884484 | denshlk | B | Nov. 29, 2020, 8:56 a.m. | OK | MS C++ 2017 | TESTS | 21 | 61 | 409600 | ||
99857839 | Sorqen | B | Nov. 29, 2020, 7:38 a.m. | OK | MS C++ 2017 | TESTS | 21 | 62 | 409600 | ||
99844685 | The_Lost_Desu | B | Nov. 29, 2020, 7:14 a.m. | OK | MS C++ 2017 | TESTS | 21 | 78 | 409600 | ||
99854551 | zdechex | B | Nov. 29, 2020, 7:31 a.m. | OK | MS C++ 2017 | TESTS | 21 | 78 | 409600 | ||
99851702 | ivanovan | B | Nov. 29, 2020, 7:25 a.m. | OK | MS C++ 2017 | TESTS | 21 | 93 | 409600 | ||
99847985 | DarknessX | B | Nov. 29, 2020, 7:18 a.m. | OK | MS C++ 2017 | TESTS | 21 | 93 | 409600 | ||
99874462 | OMENZZZE | B | Nov. 29, 2020, 8:21 a.m. | OK | MS C++ 2017 | TESTS | 21 | 93 | 819200 | ||
99853421 | ShvarcstNeger | B | Nov. 29, 2020, 7:28 a.m. | OK | MS C++ 2017 | TESTS | 21 | 93 | 819200 | ||
99850661 | Zvyagintsev.A | B | Nov. 29, 2020, 7:23 a.m. | OK | MS C++ 2017 | TESTS | 21 | 108 | 409600 | ||
99857877 | Noobarolisimus | B | Nov. 29, 2020, 7:38 a.m. | OK | MS C++ 2017 | TESTS | 21 | 108 | 614400 | ||
99867969 | JustNik77 | B | Nov. 29, 2020, 8:03 a.m. | OK | .NET Core C# | TESTS | 21 | 124 | 7168000 | ||
99953713 | Pays | B | Nov. 30, 2020, 5:06 a.m. | OK | .NET Core C# | TESTS | 21 | 140 | 6860800 | ||
99870447 | marilova | B | Nov. 29, 2020, 8:10 a.m. | OK | PascalABC.NET | TESTS | 21 | 592 | 102400 | ||
99872348 | bormarglot | B | Nov. 29, 2020, 8:15 a.m. | OK | PascalABC.NET | TESTS | 21 | 904 | 614400 | ||
99871868 | rubin_m | B | Nov. 29, 2020, 8:14 a.m. | OK | PyPy 3 | TESTS | 21 | 248 | 8806400 | ||
99914744 | InvalidSyntax | B | Nov. 29, 2020, 2:45 p.m. | OK | PyPy 3 | TESTS | 21 | 295 | 7884800 | ||
99848253 | asvasil | B | Nov. 29, 2020, 7:19 a.m. | OK | PyPy 3 | TESTS | 21 | 358 | 6451200 | ||
99873529 | resourceful_coder | B | Nov. 29, 2020, 8:19 a.m. | OK | PyPy 3 | TESTS | 21 | 358 | 7987200 | ||
99903929 | protogrammer | B | Nov. 29, 2020, 12:47 p.m. | OK | PyPy 3 | TESTS | 21 | 389 | 7270400 | ||
99872758 | gubina_maria | B | Nov. 29, 2020, 8:16 a.m. | OK | PyPy 3 | TESTS | 21 | 389 | 7270400 | ||
99849956 | AR1510 | B | Nov. 29, 2020, 7:22 a.m. | OK | PyPy 3 | TESTS | 21 | 389 | 7270400 | ||
99865913 | Evstigneev_8B | B | Nov. 29, 2020, 7:57 a.m. | OK | PyPy 3 | TESTS | 21 | 389 | 11366400 | ||
99882683 | hellcattc | B | Nov. 29, 2020, 8:50 a.m. | OK | PyPy 3 | TESTS | 21 | 390 | 7270400 | ||
99853469 | kostylevGO | B | Nov. 29, 2020, 7:28 a.m. | OK | PyPy 3 | TESTS | 21 | 390 | 7270400 | ||
99891315 | qwertyone | B | Nov. 29, 2020, 10:12 a.m. | OK | Python 3 | TESTS | 21 | 264 | 4300800 | ||
99880152 | Yakser | B | Nov. 29, 2020, 8:41 a.m. | OK | Python 3 | TESTS | 21 | 264 | 4403200 | ||
99924825 | KingVlad | B | Nov. 29, 2020, 4:19 p.m. | OK | Python 3 | TESTS | 21 | 280 | 4710400 | ||
99871864 | regiri | B | Nov. 29, 2020, 8:14 a.m. | OK | Python 3 | TESTS | 21 | 311 | 4300800 | ||
99927932 | codingkick | B | Nov. 29, 2020, 5:15 p.m. | OK | Python 3 | TESTS | 21 | 311 | 4403200 | ||
99864013 | We1ine | B | Nov. 29, 2020, 7:52 a.m. | OK | Python 3 | TESTS | 21 | 342 | 4300800 | ||
99932851 | igorkravchenko0211 | B | Nov. 29, 2020, 6:49 p.m. | OK | Python 3 | TESTS | 21 | 343 | 4300800 | ||
99905394 | linlin000 | B | Nov. 29, 2020, 1:05 p.m. | OK | Python 3 | TESTS | 21 | 358 | 4198400 | ||
99865872 | PtFux | B | Nov. 29, 2020, 7:57 a.m. | OK | Python 3 | TESTS | 21 | 358 | 4300800 | ||
99866105 | Ruslan_Romanov | B | Nov. 29, 2020, 7:58 a.m. | OK | Python 3 | TESTS | 21 | 373 | 4300800 | ||
99879402 | yosik | B | Nov. 29, 2020, 8:38 a.m. | OK | Rust | TESTS | 21 | 61 | 2355200 |
Back to search problems