Codeforces Round 567 (Div. 2)

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
1181 Codeforces Round 567 (Div. 2) FINISHED False 7200 171145499 June 16, 2019, 9:35 a.m.

Problems

Solved$
Index
Name
Type
Tags
Community Tag
Rating
( 2418 ) D Irrigation PROGRAMMING binary search data structures implementation sortings trees two pointers 2100

B"Misha was interested in water delivery from childhood. That's why his mother sent him to the annual Innovative Olympiad in Irrigation (IOI). Pupils from all Berland compete there demonstrating their skills in watering. It is extremely expensive to host such an olympiad, so after the first n olympiads the organizers introduced the following rule of the host city selection. The host cities of the olympiads are selected in the following way. There are m cities in Berland wishing to host the olympiad, they are numbered from 1 to m . The host city of each next olympiad is determined as the city that hosted the olympiad the smallest number of times before. If there are several such cities, the city with the smallest index is selected among them. Misha's mother is interested where the olympiad will be held in some specific years. The only information she knows is the above selection rule and the host cities of the first n olympiads. Help her and if you succeed, she will ask Misha to avoid flooding your house. The first line contains three integers n , m and q ( 1 <= q n, m, q <= q 500 ,000 ) -- the number of olympiads before the rule was introduced, the number of cities in Berland wishing to host the olympiad, and the number of years Misha's mother is interested in, respectively. The next line contains n integers a_1, a_2, ldots, a_n ( 1 <= q a_i <= q m ), where a_i denotes the city which hosted the olympiad in the i -th year. Note that before the rule was introduced the host city was chosen arbitrarily. Each of the next q lines contains an integer k_i ( n + 1 <= q k_i <= q 10^{18} ) -- the year number Misha's mother is interested in host city in. Print q integers. The i -th of them should be the city the olympiad will be hosted in the year k_i . In the first example Misha's mother is interested in the first 10 years after the rule was introduce"...

Tutorials

Editorial of Codeforces Round #567 (based on All-Russian olympiad in the name of Keldysh)

Submissions

Submission Id
Author(s)
Index
Submitted
Verdict
Language
Test Set
Tests Passed
Time taken (ms)
Memory Consumed (bytes)
Tags
Rating
55645639 jiangly D June 16, 2019, 12:11 p.m. OK Clang++17 Diagnostics TESTS 52 2027 45875200 2100
56247773 Noble_Mushtak D June 28, 2019, 11:04 p.m. OK GNU C11 TESTS 52 592 48128000 2100
56247817 Noble_Mushtak D June 28, 2019, 11:07 p.m. OK GNU C11 TESTS 52 2355 48128000 2100
55968252 luogu_bot5 D June 23, 2019, 1:18 p.m. OK GNU C++11 TESTS 52 171 8089600 2100
55831864 chenyewei_1234 D June 20, 2019, 1:32 p.m. OK GNU C++11 TESTS 52 186 7987200 2100
55831790 chenyewei_1234 D June 20, 2019, 1:30 p.m. OK GNU C++11 TESTS 52 187 7987200 2100
55719697 chenyewei_1234 D June 18, 2019, 2:37 p.m. OK GNU C++11 TESTS 52 187 7987200 2100
56065761 vjudge2 D June 26, 2019, 7:52 a.m. OK GNU C++11 TESTS 52 233 7987200 2100
57773715 GCCCCCCC D July 26, 2019, 2:21 a.m. OK GNU C++11 TESTS 52 234 16076800 2100
56031739 luogu_bot5 D June 25, 2019, 9:55 a.m. OK GNU C++11 TESTS 52 248 7987200 2100
56002695 dsjkafdsaf D June 24, 2019, 1:48 p.m. OK GNU C++11 TESTS 52 248 7987200 2100
56003702 vjudge3 D June 24, 2019, 2:20 p.m. OK GNU C++11 TESTS 52 249 7987200 2100
55632813 Umi D June 16, 2019, 10:30 a.m. OK GNU C++11 TESTS 52 249 16179200 2100
55637371 sunshiness D June 16, 2019, 10:55 a.m. OK GNU C++14 TESTS 52 327 24166400 2100
55652097 LODB---D D June 16, 2019, 3:05 p.m. OK GNU C++14 TESTS 52 436 26931200 2100
55651958 LODB---D D June 16, 2019, 3:01 p.m. OK GNU C++14 TESTS 52 451 26931200 2100
58462894 aajisaka D Aug. 8, 2019, 5:36 p.m. OK GNU C++14 TESTS 52 467 26316800 2100
55636255 LODB---D D June 16, 2019, 10:49 a.m. OK GNU C++14 TESTS 52 467 73625600 2100
56306870 Hacheylight D June 30, 2019, 12:23 p.m. OK GNU C++14 TESTS 52 468 6041600 2100
58168334 final_tsu D Aug. 2, 2019, 10:05 a.m. OK GNU C++14 TESTS 52 482 6041600 2100
61187846 1706915033 D Sept. 24, 2019, 12:31 a.m. OK GNU C++14 TESTS 52 483 6041600 2100
61117456 1706915033 D Sept. 23, 2019, 1:20 p.m. OK GNU C++14 TESTS 52 483 6041600 2100
56408400 rawatds D July 1, 2019, 9:03 p.m. OK GNU C++14 TESTS 52 483 6041600 2100
55644954 wjyyy D June 16, 2019, 12:01 p.m. OK GNU C++17 TESTS 52 265 22118400 2100
55702109 nickluo D June 18, 2019, 5:15 a.m. OK GNU C++17 TESTS 52 280 30412800 2100
55670468 wjyyy D June 17, 2019, 7:15 a.m. OK GNU C++17 TESTS 52 296 22118400 2100
55664776 swust-5120175253 D June 17, 2019, 2:24 a.m. OK GNU C++17 TESTS 52 421 32256000 2100
55915702 ZhihuiLiu D June 22, 2019, 5:18 a.m. OK GNU C++17 TESTS 52 468 23859200 2100
55673384 1290852513 D June 17, 2019, 9 a.m. OK GNU C++17 TESTS 52 483 6041600 2100
56375492 Sun-alpaca D July 1, 2019, 6:21 a.m. OK GNU C++17 TESTS 52 483 7987200 2100
55855927 huangda D June 21, 2019, 7 a.m. OK GNU C++17 TESTS 52 483 16076800 2100
55651017 Shayan.P D June 16, 2019, 2:34 p.m. OK GNU C++17 TESTS 52 483 23859200 2100
55679355 temp6 D June 17, 2019, 12:12 p.m. OK GNU C++17 TESTS 52 483 32153600 2100
55638918 BaZ_ D June 16, 2019, 11:05 a.m. OK Java 8 TESTS 52 670 40243200 2100
56994490 Oopsimbad D July 13, 2019, 8:43 p.m. OK Java 8 TESTS 52 935 51507200 2100
55640696 holeguma D June 16, 2019, 11:16 a.m. OK Java 8 TESTS 52 1091 59494400 2100
56990158 yorky D July 13, 2019, 5:48 p.m. OK Java 8 TESTS 52 1107 52121600 2100
57925945 7dan D July 29, 2019, 7:06 a.m. OK Java 8 TESTS 52 1154 74240000 2100
55644510 mennafadali D June 16, 2019, 11:57 a.m. OK Java 8 TESTS 52 1185 53657600 2100
55651325 tmwilliamlin168 D June 16, 2019, 2:42 p.m. OK Java 8 TESTS 52 1200 70758400 2100
56050399 kusomushi D June 25, 2019, 6:44 p.m. OK Java 8 TESTS 52 1216 68300800 2100
68369555 ijxjdjd D Jan. 7, 2020, 5:13 p.m. OK Java 8 TESTS 52 1248 48025600 2100
55638446 Musin D June 16, 2019, 11:02 a.m. OK Java 8 TESTS 52 1340 70656000 2100
59833834 Spheniscine D Sept. 1, 2019, 2:13 a.m. OK Kotlin TESTS 52 1013 69324800 2100
59835042 Spheniscine D Sept. 1, 2019, 3:15 a.m. OK Kotlin TESTS 52 1029 66252800 2100
59835003 Spheniscine D Sept. 1, 2019, 3:13 a.m. OK Kotlin TESTS 52 1029 69324800 2100
59687174 Spheniscine D Aug. 30, 2019, 2:45 a.m. OK Kotlin TESTS 52 1715 51200000 2100
59687399 Spheniscine D Aug. 30, 2019, 2:56 a.m. OK Kotlin TESTS 52 1716 51302400 2100
59686956 Spheniscine D Aug. 30, 2019, 2:32 a.m. OK Kotlin TESTS 52 1730 50995200 2100
59688645 Spheniscine D Aug. 30, 2019, 4:06 a.m. OK Kotlin TESTS 52 1730 51302400 2100
59691273 Spheniscine D Aug. 30, 2019, 6:11 a.m. OK Kotlin TESTS 52 1731 51200000 2100
59687256 Spheniscine D Aug. 30, 2019, 2:49 a.m. OK Kotlin TESTS 52 1731 51200000 2100
59686587 Spheniscine D Aug. 30, 2019, 2:12 a.m. OK Kotlin TESTS 52 1731 56115200 2100
55651829 og.kostya D June 16, 2019, 2:57 p.m. OK Mono C# TESTS 52 358 20787200 2100
61429152 vjudge3 D Sept. 28, 2019, 2:06 p.m. OK MS C++ TESTS 52 405 6041600 2100
55996586 vjudge4 D June 24, 2019, 10:47 a.m. OK MS C++ TESTS 52 498 22016000 2100
58654287 vjudge3 D Aug. 12, 2019, 8:34 a.m. OK MS C++ TESTS 52 608 42086400 2100
55649916 tang0404 D June 16, 2019, 2:04 p.m. OK MS C++ TESTS 52 639 18022400 2100
55999120 vjudge5 D June 24, 2019, 12:09 p.m. OK MS C++ TESTS 52 701 36044800 2100
55991364 vjudge2 D June 24, 2019, 7:50 a.m. OK MS C++ TESTS 52 811 36044800 2100
67411200 SDSZ-WZZ D Dec. 22, 2019, 8:24 a.m. OK MS C++ 2017 TESTS 52 576 6041600 2100
56467845 petko_mitkov D July 3, 2019, 9:40 a.m. OK MS C++ 2017 TESTS 52 608 24064000 2100
55717649 GOATWU D June 18, 2019, 1:33 p.m. OK MS C++ 2017 TESTS 52 670 22016000 2100
55717593 GOATWU D June 18, 2019, 1:31 p.m. OK MS C++ 2017 TESTS 52 686 22016000 2100
55691412 CtrlAlt D June 17, 2019, 6:24 p.m. OK MS C++ 2017 TESTS 52 1138 44134400 2100
56466418 Ivan_Dunko D July 3, 2019, 9:06 a.m. OK MS C++ 2017 TESTS 52 1169 119500800 2100
55707402 Megalitum D June 18, 2019, 8:21 a.m. OK MS C++ 2017 TESTS 52 1591 16281600 2100
56034754 kingee D June 25, 2019, 11:31 a.m. OK MS C++ 2017 TESTS 52 1637 40140800 2100
55652043 ZloyNegr D June 16, 2019, 3:03 p.m. OK MS C++ 2017 TESTS 52 1746 57241600 2100
55690200 index_ D June 17, 2019, 5:44 p.m. OK MS C++ 2017 TESTS 52 1887 54784000 2100
55657960 pajenegod D June 16, 2019, 6:34 p.m. OK PyPy 2 TESTS 52 967 99430400 2100
55661655 pajenegod D June 16, 2019, 9:48 p.m. OK PyPy 2 TESTS 52 998 115097600 2100
55661901 pajenegod D June 16, 2019, 10:05 p.m. OK PyPy 2 TESTS 52 1013 102195200 2100
55661484 pajenegod D June 16, 2019, 9:35 p.m. OK PyPy 2 TESTS 52 1013 114892800 2100
55660974 pajenegod D June 16, 2019, 9 p.m. OK PyPy 2 TESTS 52 1013 114892800 2100
55661688 pajenegod D June 16, 2019, 9:51 p.m. OK PyPy 2 TESTS 52 1014 100044800 2100
55661716 pajenegod D June 16, 2019, 9:53 p.m. OK PyPy 2 TESTS 52 1029 102400000 2100
55657916 pajenegod D June 16, 2019, 6:32 p.m. OK PyPy 2 TESTS 52 1044 99532800 2100
55658004 pajenegod D June 16, 2019, 6:36 p.m. OK PyPy 2 TESTS 52 1044 102707200 2100
55662270 pajenegod D June 16, 2019, 10:35 p.m. OK PyPy 2 TESTS 52 1044 103116800 2100
55937796 shyman D June 22, 2019, 2:51 p.m. OK PyPy 3 TESTS 52 2214 94105600 2100
56058996 pineriver D June 26, 2019, 3:41 a.m. OK PyPy 3 TESTS 52 2293 100864000 2100
56059022 pineriver D June 26, 2019, 3:43 a.m. OK PyPy 3 TESTS 52 2323 100556800 2100
55653477 c1729 D June 16, 2019, 3:49 p.m. OK PyPy 3 TESTS 52 2418 122777600 2100
56058942 pineriver D June 26, 2019, 3:39 a.m. OK PyPy 3 TESTS 52 2433 104243200 2100
55640196 rustaurance D June 16, 2019, 11:13 a.m. OK Rust TESTS 52 576 30208000 2100
55741416 yakamoto D June 19, 2019, 7:38 a.m. OK Scala TESTS 52 2167 41164800 2100

remove filters

Back to search problems