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 |
---|---|---|---|---|---|---|
1848 | Codeforces Round 885 (Div. 2) | FINISHED | False | 7200 | 47661863 | July 16, 2023, 2:35 p.m. |
Solved$ |
Index |
Name |
Type |
Tags |
Community Tag |
Rating |
---|---|---|---|---|---|---|
( 16140 ) | B | Vika and the Bridge | PROGRAMMING | binary search data structures greedy implementation math sortings |
B'In the summer, Vika likes to visit her country house. There is everything for relaxation: comfortable swings, bicycles, and a river. There is a wooden bridge over the river, consisting of n planks. It is quite old and unattractive, so Vika decided to paint it. And in the shed, they just found cans of paint of k colors. After painting each plank in one of k colors, Vika was about to go swinging to take a break from work. However, she realized that the house was on the other side of the river, and the paint had not yet completely dried, so she could not walk on the bridge yet. In order not to spoil the appearance of the bridge, Vika decided that she would still walk on it, but only stepping on planks of the same color. Otherwise, a small layer of paint on her sole will spoil the plank of another color. Vika also has a little paint left, but it will only be enough to repaint one plank of the bridge. Now Vika is standing on the ground in front of the first plank. To walk across the bridge, she will choose some planks of the same color (after repainting), which have numbers 1 <= i_1 < i_2 < ldots < i_m <= n (planks are numbered from 1 from left to right). Then Vika will have to cross i_1 - 1, i_2 - i_1 - 1, i_3 - i_2 - 1, ldots, i_m - i_{m-1} - 1, n - i_m planks as a result of each of m + 1 steps. Since Vika is afraid of falling, she does not want to take too long steps. Help her and tell her the minimum possible maximum number of planks she will have to cross in one step, if she can repaint one (or zero) plank a different color while crossing the bridge. Each test consists of multiple test cases. The first line contains a single integer t ( 1 <= t <= 10^4 ) -- the number of test cases. The description of the test cases follows. The first line of each test case contains two integers n and k ( 1 <= k <= n <= 2 cdot 10^5 ) -- the number of planks in the bridge and the number of diff'... |
Codeforces Round #885 (Div.2) Editorial |
Submission Id |
Author(s) |
Index |
Submitted |
Verdict |
Language |
Test Set |
Tests Passed |
Time taken (ms) |
Memory Consumed (bytes) |
Tags |
Rating |
---|---|---|---|---|---|---|---|---|---|---|---|
214115829 | NenadDapic | B | July 16, 2023, 7:56 p.m. | OK | FPC | TESTS | 21 | 61 | 2457600 | ||
214086346 | Cyrine69 | B | July 16, 2023, 4:10 p.m. | OK | GNU C11 | TESTS | 21 | 62 | 2355200 | ||
214154931 | RandomDud123456 | B | July 17, 2023, 5:46 a.m. | OK | GNU C11 | TESTS | 21 | 78 | 3174400 | ||
214085199 | six_one | B | July 16, 2023, 4:07 p.m. | OK | GNU C++14 | TESTS | 21 | 46 | 2457600 | ||
214139001 | XG0000 | B | July 17, 2023, 2:19 a.m. | OK | GNU C++14 | TESTS | 21 | 61 | 4812800 | ||
214117571 | 1braincellremaining | B | July 16, 2023, 8:14 p.m. | OK | GNU C++14 | TESTS | 21 | 62 | 2355200 | ||
214088629 | When_C | B | July 16, 2023, 4:17 p.m. | OK | GNU C++14 | TESTS | 21 | 62 | 2457600 | ||
214098115 | yuzou | B | July 16, 2023, 4:58 p.m. | OK | GNU C++14 | TESTS | 21 | 62 | 2457600 | ||
214098163 | TimeWillTell | B | July 16, 2023, 4:59 p.m. | OK | GNU C++14 | TESTS | 21 | 62 | 2457600 | ||
214103439 | williamearth0603 | B | July 16, 2023, 5:38 p.m. | OK | GNU C++14 | TESTS | 21 | 62 | 3174400 | ||
214103397 | passion63 | B | July 16, 2023, 5:38 p.m. | OK | GNU C++14 | TESTS | 21 | 62 | 3174400 | ||
214132673 | luogu_bot5 | B | July 17, 2023, 12:47 a.m. | OK | GNU C++14 | TESTS | 21 | 62 | 3174400 | ||
214130721 | chenjunxiu | B | July 17, 2023, 12:02 a.m. | OK | GNU C++14 | TESTS | 21 | 62 | 3174400 | ||
214135290 | SF-Manman | B | July 17, 2023, 1:30 a.m. | OK | GNU C++17 | TESTS | 21 | 46 | 2457600 | ||
214108032 | N00BGH0ST | B | July 16, 2023, 6:26 p.m. | OK | GNU C++17 | TESTS | 21 | 61 | 3174400 | ||
214086026 | theviditnayal | B | July 16, 2023, 4:09 p.m. | OK | GNU C++17 | TESTS | 21 | 61 | 3174400 | ||
214131165 | doclabinhduong | B | July 17, 2023, 12:13 a.m. | OK | GNU C++17 | TESTS | 21 | 61 | 3174400 | ||
214142975 | congyu711 | B | July 17, 2023, 3:03 a.m. | OK | GNU C++17 | TESTS | 21 | 61 | 3174400 | ||
214088533 | usx22145129 | B | July 16, 2023, 4:16 p.m. | OK | GNU C++17 | TESTS | 21 | 61 | 3993600 | ||
214104075 | MuKuL01 | B | July 16, 2023, 5:44 p.m. | OK | GNU C++17 | TESTS | 21 | 61 | 4812800 | ||
214152447 | mk1988906 | B | July 17, 2023, 5:12 a.m. | OK | GNU C++17 | TESTS | 21 | 61 | 6963200 | ||
214135825 | dionysios | B | July 17, 2023, 1:38 a.m. | OK | GNU C++17 | TESTS | 21 | 62 | 2355200 | ||
214152960 | paddakartheek | B | July 17, 2023, 5:19 a.m. | OK | GNU C++17 | TESTS | 21 | 62 | 2355200 | ||
214098720 | PLA_Nh | B | July 16, 2023, 5:02 p.m. | OK | GNU C++17 (64) | TESTS | 21 | 31 | 6451200 | ||
214129128 | stevenkplus | B | July 16, 2023, 11:21 p.m. | OK | GNU C++17 (64) | TESTS | 21 | 46 | 3993600 | ||
214098339 | PLA_Nh | B | July 16, 2023, 4:59 p.m. | OK | GNU C++17 (64) | TESTS | 21 | 46 | 6451200 | ||
214101204 | pemguimn | B | July 16, 2023, 5:19 p.m. | OK | GNU C++17 (64) | TESTS | 21 | 46 | 6451200 | ||
214136485 | ThreeTB | B | July 17, 2023, 1:47 a.m. | OK | GNU C++17 (64) | TESTS | 21 | 46 | 6451200 | ||
214105914 | jilowa4321 | B | July 16, 2023, 6:04 p.m. | OK | GNU C++17 (64) | TESTS | 21 | 62 | 6656000 | ||
214119921 | enslaved | B | July 16, 2023, 8:32 p.m. | OK | GNU C++17 (64) | TESTS | 21 | 62 | 7987200 | ||
214105312 | 4Rt8 | B | July 16, 2023, 5:58 p.m. | OK | GNU C++17 (64) | TESTS | 21 | 62 | 9932800 | ||
214121465 | Tanphoon | B | July 16, 2023, 8:54 p.m. | OK | GNU C++17 (64) | TESTS | 21 | 62 | 10547200 | ||
214090740 | Prahlad_03 | B | July 16, 2023, 4:23 p.m. | OK | GNU C++17 (64) | TESTS | 21 | 62 | 14336000 | ||
214125849 | Look_around | B | July 16, 2023, 10:10 p.m. | OK | GNU C++20 (64) | TESTS | 21 | 31 | 2457600 | ||
214130276 | YC_21 | B | July 16, 2023, 11:50 p.m. | OK | GNU C++20 (64) | TESTS | 21 | 31 | 2457600 | ||
214091809 | Mingyee | B | July 16, 2023, 4:25 p.m. | OK | GNU C++20 (64) | TESTS | 21 | 31 | 3174400 | ||
214132551 | ws-despair | B | July 17, 2023, 12:44 a.m. | OK | GNU C++20 (64) | TESTS | 21 | 31 | 3174400 | ||
214110040 | Soultaker | B | July 16, 2023, 6:49 p.m. | OK | GNU C++20 (64) | TESTS | 21 | 31 | 3174400 | ||
214146103 | luogu_bot2 | B | July 17, 2023, 3:38 a.m. | OK | GNU C++20 (64) | TESTS | 21 | 31 | 3276800 | ||
214134961 | 2088244836 | B | July 17, 2023, 1:25 a.m. | OK | GNU C++20 (64) | TESTS | 21 | 31 | 3276800 | ||
214100406 | Choize | B | July 16, 2023, 5:12 p.m. | OK | GNU C++20 (64) | TESTS | 21 | 31 | 3276800 | ||
214097867 | milkyghoul | B | July 16, 2023, 4:58 p.m. | OK | GNU C++20 (64) | TESTS | 21 | 31 | 6451200 | ||
214088708 | Zyras | B | July 16, 2023, 4:17 p.m. | OK | GNU C++20 (64) | TESTS | 21 | 46 | 1638400 | ||
214135186 | cck111 | B | July 17, 2023, 1:28 a.m. | OK | Go | TESTS | 21 | 139 | 17715200 | ||
214106749 | prakharshri12345 | B | July 16, 2023, 6:13 p.m. | OK | Java 11 | TESTS | 21 | 233 | 1228800 | ||
214093002 | themadknight45 | B | July 16, 2023, 4:29 p.m. | OK | Java 11 | TESTS | 21 | 234 | 1331200 | ||
214110946 | ty108 | B | July 16, 2023, 7 p.m. | OK | Java 11 | TESTS | 21 | 249 | 4403200 | ||
214086078 | WvemiY9 | B | July 16, 2023, 4:09 p.m. | OK | Java 11 | TESTS | 21 | 296 | 0 | ||
214089056 | ty108 | B | July 16, 2023, 4:18 p.m. | OK | Java 11 | TESTS | 21 | 296 | 4403200 | ||
214088382 | Un_sung | B | July 16, 2023, 4:16 p.m. | OK | Java 11 | TESTS | 21 | 374 | 17305600 | ||
214120967 | Feldspar21 | B | July 16, 2023, 8:46 p.m. | OK | Java 11 | TESTS | 21 | 514 | 0 | ||
214088504 | AceSea | B | July 16, 2023, 4:16 p.m. | OK | Java 11 | TESTS | 21 | 685 | 43008000 | ||
214086685 | karthikeya_guruju | B | July 16, 2023, 4:11 p.m. | OK | Java 11 | TESTS | 21 | 795 | 26726400 | ||
214104866 | creativegiant | B | July 16, 2023, 5:52 p.m. | OK | Java 11 | TESTS | 21 | 810 | 70451200 | ||
214089099 | mehrotramanvendra | B | July 16, 2023, 4:18 p.m. | OK | Java 17 | TESTS | 21 | 390 | 39628800 | ||
214100876 | Eslam_Ahmed | B | July 16, 2023, 5:16 p.m. | OK | Java 17 | TESTS | 21 | 420 | 35225600 | ||
214107378 | g_square | B | July 16, 2023, 6:20 p.m. | OK | Java 17 | TESTS | 21 | 421 | 85811200 | ||
214091725 | Utsav82 | B | July 16, 2023, 4:25 p.m. | OK | Java 17 | TESTS | 21 | 451 | 36556800 | ||
214154334 | GaleStarr | B | July 17, 2023, 5:38 a.m. | OK | Java 17 | TESTS | 21 | 467 | 1024000 | ||
214128159 | Mo.Mostafa2 | B | July 16, 2023, 10:55 p.m. | OK | Java 17 | TESTS | 21 | 467 | 6860800 | ||
214105815 | Ritik009999 | B | July 16, 2023, 6:03 p.m. | OK | Java 17 | TESTS | 21 | 483 | 21811200 | ||
214147672 | 2745810964z | B | July 17, 2023, 3:57 a.m. | OK | Java 17 | TESTS | 21 | 546 | 40960000 | ||
214152807 | sergey.chistofor | B | July 17, 2023, 5:16 a.m. | OK | Java 17 | TESTS | 21 | 577 | 34611200 | ||
214088877 | Akash_Sardar | B | July 16, 2023, 4:17 p.m. | OK | Java 17 | TESTS | 21 | 623 | 23756800 | ||
214106179 | lpychemistry | B | July 16, 2023, 6:07 p.m. | OK | Java 8 | TESTS | 21 | 202 | 0 | ||
214094843 | molecule03 | B | July 16, 2023, 4:33 p.m. | OK | Java 8 | TESTS | 21 | 295 | 78950400 | ||
214134378 | Harwinvanak | B | July 17, 2023, 1:16 a.m. | OK | Java 8 | TESTS | 21 | 343 | 0 | ||
214129376 | Harwinvanak | B | July 16, 2023, 11:28 p.m. | OK | Java 8 | TESTS | 21 | 374 | 0 | ||
214111698 | Sumitsingh7 | B | July 16, 2023, 7:09 p.m. | OK | Java 8 | TESTS | 21 | 530 | 60211200 | ||
214099192 | sumitsk007 | B | July 16, 2023, 5:04 p.m. | OK | Java 8 | TESTS | 21 | 530 | 60211200 | ||
214094586 | sarafnavneet2 | B | July 16, 2023, 4:32 p.m. | OK | Java 8 | TESTS | 21 | 545 | 58060800 | ||
214089253 | Pratham_2021347 | B | July 16, 2023, 4:19 p.m. | OK | Java 8 | TESTS | 21 | 686 | 27955200 | ||
214098727 | yadavDipesh | B | July 16, 2023, 5:02 p.m. | OK | Java 8 | TESTS | 21 | 686 | 42188800 | ||
214107789 | ScoobyDoobyDo | B | July 16, 2023, 6:23 p.m. | OK | Java 8 | TESTS | 21 | 701 | 38809600 | ||
214088896 | Jashkayth | B | July 16, 2023, 4:17 p.m. | OK | Kotlin 1.7 | TESTS | 21 | 982 | 139468800 | ||
214102777 | suprend | B | July 16, 2023, 5:32 p.m. | OK | MS C++ 2017 | TESTS | 21 | 156 | 3993600 | ||
214099058 | phantomthief1412 | B | July 16, 2023, 5:03 p.m. | OK | MS C++ 2017 | TESTS | 21 | 171 | 3174400 | ||
214090309 | gvalentiny | B | July 16, 2023, 4:22 p.m. | OK | MS C++ 2017 | TESTS | 21 | 171 | 3174400 | ||
214093726 | carrot_potat | B | July 16, 2023, 4:30 p.m. | OK | MS C++ 2017 | TESTS | 21 | 202 | 3174400 | ||
214100994 | TheHead | B | July 16, 2023, 5:17 p.m. | OK | MS C++ 2017 | TESTS | 21 | 202 | 4710400 | ||
214086477 | nanu123 | B | July 16, 2023, 4:10 p.m. | OK | MS C++ 2017 | TESTS | 21 | 217 | 7680000 | ||
214086746 | Subbu27 | B | July 16, 2023, 4:11 p.m. | OK | MS C++ 2017 | TESTS | 21 | 218 | 5529600 | ||
214089311 | zzzzzfffff | B | July 16, 2023, 4:19 p.m. | OK | MS C++ 2017 | TESTS | 21 | 218 | 8908800 | ||
214091453 | Voz56 | B | July 16, 2023, 4:25 p.m. | OK | MS C++ 2017 | TESTS | 21 | 218 | 28876800 | ||
214109038 | EbuYandex | B | July 16, 2023, 6:36 p.m. | OK | MS C++ 2017 | TESTS | 21 | 327 | 12288000 | ||
214105679 | ahtoh_ | B | July 16, 2023, 6:02 p.m. | OK | Node.js | TESTS | 21 | 140 | 15667200 | ||
214089300 | jashkayth_174 | B | July 16, 2023, 4:19 p.m. | OK | Perl | TESTS | 21 | 639 | 66355200 | ||
214102671 | 2momo2 | B | July 16, 2023, 5:31 p.m. | OK | PyPy 3 | TESTS | 21 | 296 | 21401600 | ||
214098675 | Kladrr | B | July 16, 2023, 5:01 p.m. | OK | PyPy 3 | TESTS | 21 | 312 | 21299200 | ||
214113409 | jvatsal0709 | B | July 16, 2023, 7:27 p.m. | OK | PyPy 3 | TESTS | 21 | 343 | 22630400 | ||
214085759 | Cup_ | B | July 16, 2023, 4:08 p.m. | OK | PyPy 3 | TESTS | 21 | 389 | 20787200 | ||
214140392 | oooommmm | B | July 17, 2023, 2:34 a.m. | OK | PyPy 3 | TESTS | 21 | 451 | 21299200 | ||
214089812 | some_playa | B | July 16, 2023, 4:20 p.m. | OK | PyPy 3 | TESTS | 21 | 452 | 20070400 | ||
214086478 | Ankita3246 | B | July 16, 2023, 4:10 p.m. | OK | PyPy 3 | TESTS | 21 | 467 | 31129600 | ||
214086458 | learner_tushar | B | July 16, 2023, 4:10 p.m. | OK | PyPy 3 | TESTS | 21 | 468 | 30515200 | ||
214086105 | adult | B | July 16, 2023, 4:09 p.m. | OK | PyPy 3 | TESTS | 21 | 468 | 31129600 | ||
214094162 | duck_man123 | B | July 16, 2023, 4:31 p.m. | OK | PyPy 3 | TESTS | 21 | 530 | 19865600 | ||
214103080 | injust | B | July 16, 2023, 5:35 p.m. | OK | PyPy 3-64 | TESTS | 21 | 124 | 22937600 | ||
214102539 | injust | B | July 16, 2023, 5:30 p.m. | OK | PyPy 3-64 | TESTS | 21 | 139 | 23040000 | ||
214100515 | dirac_de | B | July 16, 2023, 5:13 p.m. | OK | PyPy 3-64 | TESTS | 21 | 171 | 22937600 | ||
214107472 | aspiringquant | B | July 16, 2023, 6:21 p.m. | OK | PyPy 3-64 | TESTS | 21 | 186 | 31846400 | ||
214110621 | pglutz | B | July 16, 2023, 6:56 p.m. | OK | PyPy 3-64 | TESTS | 21 | 202 | 27648000 | ||
214102720 | Mohamed_Hamed | B | July 16, 2023, 5:31 p.m. | OK | PyPy 3-64 | TESTS | 21 | 202 | 29081600 | ||
214146516 | mikeac | B | July 17, 2023, 3:43 a.m. | OK | PyPy 3-64 | TESTS | 21 | 202 | 32665600 | ||
214155854 | LYmiracle | B | July 17, 2023, 5:56 a.m. | OK | PyPy 3-64 | TESTS | 21 | 217 | 33689600 | ||
214150171 | Hisoka-TheMagician | B | July 17, 2023, 4:36 a.m. | OK | PyPy 3-64 | TESTS | 21 | 218 | 30412800 | ||
214105131 | DarkTemplarDrop | B | July 16, 2023, 5:55 p.m. | OK | PyPy 3-64 | TESTS | 21 | 233 | 32051200 | ||
214146306 | pennymagic156 | B | July 17, 2023, 3:40 a.m. | OK | Python 3 | TESTS | 21 | 358 | 45670400 | ||
214148949 | Aditya.xyz | B | July 17, 2023, 4:15 a.m. | OK | Python 3 | TESTS | 21 | 373 | 45670400 | ||
214142567 | KATLF | B | July 17, 2023, 2:59 a.m. | OK | Python 3 | TESTS | 21 | 405 | 49356800 | ||
214089906 | mohit_404 | B | July 16, 2023, 4:20 p.m. | OK | Python 3 | TESTS | 21 | 436 | 50483200 | ||
214090823 | aasill | B | July 16, 2023, 4:23 p.m. | OK | Python 3 | TESTS | 21 | 436 | 51200000 | ||
214091567 | leonardo.liu.ziyang | B | July 16, 2023, 4:25 p.m. | OK | Python 3 | TESTS | 21 | 467 | 37888000 | ||
214091340 | xKRISHNAx | B | July 16, 2023, 4:24 p.m. | OK | Python 3 | TESTS | 21 | 467 | 50790400 | ||
214097918 | gaurav_t | B | July 16, 2023, 4:58 p.m. | OK | Python 3 | TESTS | 21 | 483 | 28979200 | ||
214155464 | dotanoob38 | B | July 17, 2023, 5:51 a.m. | OK | Python 3 | TESTS | 21 | 483 | 49971200 | ||
214121235 | jeetchovatia | B | July 16, 2023, 8:51 p.m. | OK | Python 3 | TESTS | 21 | 514 | 50278400 | ||
214090590 | Valkyrie.. | B | July 16, 2023, 4:22 p.m. | OK | Ruby 3 | TESTS | 21 | 592 | 44236800 | ||
214110984 | riverbl | B | July 16, 2023, 7 p.m. | OK | Rust 2021 | TESTS | 21 | 108 | 10035200 | ||
214094841 | aditya_coder9 | B | July 16, 2023, 4:33 p.m. | OK | Rust 2021 | TESTS | 21 | 124 | 19968000 |
Back to search problems