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 |
---|---|---|---|---|---|---|
1179 | Codeforces Round 569 (Div. 1) | FINISHED | False | 7200 | 176302487 | June 21, 2019, 5:05 p.m. |
Solved$ |
Index |
Name |
Type |
Tags |
Community Tag |
Rating |
---|---|---|---|---|---|---|
( 2120 ) | C | Serge and Dining Room | PROGRAMMING | binary search data structures graph matchings greedy implementation math trees | 2400 |
B"Serge came to the school dining room and discovered that there is a big queue here. There are m pupils in the queue. He's not sure now if he wants to wait until the queue will clear, so he wants to know which dish he will receive if he does. As Serge is very tired, he asks you to compute it instead of him. Initially there are n dishes with costs a_1, a_2, ldots, a_n . As you already know, there are the queue of m pupils who have b_1, ldots, b_m togrogs respectively (pupils are enumerated by queue order, i.e the first pupil in the queue has b_1 togrogs and the last one has b_m togrogs) Pupils think that the most expensive dish is the most delicious one, so every pupil just buys the most expensive dish for which he has money (every dish has a single copy, so when a pupil has bought it nobody can buy it later), and if a pupil doesn't have money for any dish, he just leaves the queue (so brutal capitalism...) But money isn't a problem at all for Serge, so Serge is buying the most expensive dish if there is at least one remaining. Moreover, Serge's school has a very unstable economic situation and the costs of some dishes or number of togrogs of some pupils can change. More formally, you must process q queries: Nobody leaves the queue during those queries because a saleswoman is late. After every query, you must tell Serge price of the dish which he will buy if he has waited until the queue is clear, or -1 if there are no dishes at this point, according to rules described above. The first line contains integers n and m ( 1 <= q n, m <= q 300 000 ) -- number of dishes and pupils respectively. The second line contains n integers a_1, a_2, ldots, a_n ( 1 <= q a_i <= q 10^{6} ) -- elements of array a . The third line contains m integers b_1, b_2, ldots, b_{m} ( 1 <= q b_i <= q 10^{6} ) -- elements of array b . The fourth line conatins integer $$"... |
Editorial of Round #569 |
Submission Id |
Author(s) |
Index |
Submitted |
Verdict |
Language |
Test Set |
Tests Passed |
Time taken (ms) |
Memory Consumed (bytes) |
Tags |
Rating |
---|---|---|---|---|---|---|---|---|---|---|---|
55955653 | luogu_bot2 | C | June 23, 2019, 6:49 a.m. | OK | GNU C++11 | TESTS | 65 | 373 | 50483200 | 2400 | |
55892349 | stal_xy23z7b8 | C | June 21, 2019, 6:08 p.m. | OK | GNU C++11 | TESTS | 65 | 390 | 50483200 | 2400 | |
55954641 | Frame233 | C | June 23, 2019, 6:08 a.m. | OK | GNU C++11 | TESTS | 65 | 436 | 38297600 | 2400 | |
57709868 | py_ultron | C | July 24, 2019, 10:53 p.m. | OK | GNU C++11 | TESTS | 65 | 467 | 26316800 | 2400 | |
57865552 | lopare | C | July 27, 2019, 8:45 p.m. | OK | GNU C++11 | TESTS | 65 | 483 | 26316800 | 2400 | |
55905337 | 1919810 | C | June 21, 2019, 9:06 p.m. | OK | GNU C++11 | TESTS | 65 | 498 | 33484800 | 2400 | |
56966332 | Luvwgyx | C | July 13, 2019, 8:28 a.m. | OK | GNU C++11 | TESTS | 65 | 498 | 136089600 | 2400 | |
55910183 | mmmod_lqs | C | June 22, 2019, 1:06 a.m. | OK | GNU C++11 | TESTS | 65 | 499 | 19251200 | 2400 | |
55910176 | waaadreamer | C | June 22, 2019, 1:06 a.m. | OK | GNU C++11 | TESTS | 65 | 499 | 19251200 | 2400 | |
55902475 | nwi | C | June 21, 2019, 6:59 p.m. | OK | GNU C++11 | TESTS | 65 | 514 | 19046400 | 2400 | |
55932144 | cookiedoth | C | June 22, 2019, noon | OK | GNU C++14 | TESTS | 65 | 295 | 19251200 | 2400 | |
56251693 | tokitsukaze | C | June 29, 2019, 3:43 a.m. | OK | GNU C++14 | TESTS | 65 | 327 | 48230400 | 2400 | |
56545551 | RNS_CUS | C | July 5, 2019, 7:29 a.m. | OK | GNU C++14 | TESTS | 65 | 374 | 44236800 | 2400 | |
55965365 | vito1036 | C | June 23, 2019, 11:48 a.m. | OK | GNU C++14 | TESTS | 65 | 530 | 25292800 | 2400 | |
55958300 | SuperJ6 | C | June 23, 2019, 8:22 a.m. | OK | GNU C++14 | TESTS | 65 | 577 | 25190400 | 2400 | |
56483619 | icecuber | C | July 3, 2019, 5:17 p.m. | OK | GNU C++14 | TESTS | 65 | 592 | 19251200 | 2400 | |
55944035 | Lord_of_contests | C | June 22, 2019, 6:28 p.m. | OK | GNU C++14 | TESTS | 65 | 592 | 19251200 | 2400 | |
56012301 | Victory__519 | C | June 24, 2019, 6:47 p.m. | OK | GNU C++14 | TESTS | 65 | 592 | 26419200 | 2400 | |
55894188 | lezdzh | C | June 21, 2019, 6:17 p.m. | OK | GNU C++14 | TESTS | 65 | 592 | 26419200 | 2400 | |
57578075 | vjudge1 | C | July 23, 2019, 7:50 a.m. | OK | GNU C++14 | TESTS | 65 | 592 | 48947200 | 2400 | |
67552258 | user202729_ | C | Dec. 24, 2019, 4:16 p.m. | OK | GNU C++17 | TESTS | 65 | 233 | 18432000 | 2400 | |
67581210 | user202729_ | C | Dec. 25, 2019, 6:10 a.m. | OK | GNU C++17 | TESTS | 65 | 248 | 18432000 | 2400 | |
56414340 | jkchen | C | July 2, 2019, 3:17 a.m. | OK | GNU C++17 | TESTS | 65 | 374 | 38604800 | 2400 | |
56237927 | mohamedeltair | C | June 28, 2019, 5:04 p.m. | OK | GNU C++17 | TESTS | 65 | 467 | 42496000 | 2400 | |
55963701 | WNG | C | June 23, 2019, 10:53 a.m. | OK | GNU C++17 | TESTS | 65 | 483 | 23244800 | 2400 | |
55890178 | skrydg | C | June 21, 2019, 5:58 p.m. | OK | GNU C++17 | TESTS | 65 | 498 | 40038400 | 2400 | |
55911333 | whzzt | C | June 22, 2019, 2:17 a.m. | OK | GNU C++17 | TESTS | 65 | 499 | 44339200 | 2400 | |
57471953 | AlphaWA | C | July 21, 2019, 6:40 p.m. | OK | GNU C++17 | TESTS | 65 | 545 | 19148800 | 2400 | |
67549049 | user202729_ | C | Dec. 24, 2019, 4:02 p.m. | OK | GNU C++17 | TESTS | 65 | 546 | 18432000 | 2400 | |
61458015 | suchir | C | Sept. 29, 2019, 7:16 a.m. | OK | GNU C++17 | TESTS | 65 | 560 | 24780800 | 2400 | |
55888367 | Egor | C | June 21, 2019, 5:51 p.m. | OK | Java 8 | TESTS | 65 | 577 | 38502400 | 2400 | |
55942700 | 4mda4mda | C | June 22, 2019, 5:41 p.m. | OK | Java 8 | TESTS | 65 | 811 | 56832000 | 2400 | |
64748268 | dalt | C | Nov. 12, 2019, 2:18 p.m. | OK | Java 8 | TESTS | 65 | 841 | 138444800 | 2400 | |
55942810 | 4mda4mda | C | June 22, 2019, 5:46 p.m. | OK | Java 8 | TESTS | 65 | 873 | 121344000 | 2400 | |
55968728 | ZeyadKhattab | C | June 23, 2019, 1:32 p.m. | OK | Java 8 | TESTS | 65 | 1200 | 76083200 | 2400 | |
60512137 | beginner1010 | C | Sept. 14, 2019, 3:50 a.m. | OK | Java 8 | TESTS | 65 | 1216 | 95539200 | 2400 | |
60512105 | beginner1010 | C | Sept. 14, 2019, 3:49 a.m. | OK | Java 8 | TESTS | 65 | 1325 | 156160000 | 2400 | |
55886608 | uwi | C | June 21, 2019, 5:44 p.m. | OK | Java 8 | TESTS | 65 | 2043 | 8089600 | 2400 | |
69094193 | yakamoto | C | Jan. 19, 2020, 11:22 a.m. | OK | Kotlin | TESTS | 65 | 1232 | 41472000 | 2400 | |
69093613 | yakamoto | C | Jan. 19, 2020, 11:09 a.m. | OK | Kotlin | TESTS | 65 | 1965 | 41881600 | 2400 | |
55903169 | knightL | C | June 21, 2019, 7:02 p.m. | OK | Kotlin | TESTS | 65 | 3229 | 135372800 | 2400 | |
69080558 | yakamoto | C | Jan. 19, 2020, 6:11 a.m. | OK | Kotlin | TESTS | 65 | 3915 | 32358400 | 2400 | |
57582492 | vjudge4 | C | July 23, 2019, 9:21 a.m. | OK | MS C++ | TESTS | 65 | 811 | 34508800 | 2400 | |
55901929 | math957963 | C | June 21, 2019, 6:57 p.m. | OK | MS C++ | TESTS | 65 | 1325 | 39321600 | 2400 | |
55905361 | P___ | C | June 21, 2019, 9:06 p.m. | OK | MS C++ 2017 | TESTS | 65 | 1294 | 20070400 | 2400 | |
56055888 | mandinga | C | June 25, 2019, 11:31 p.m. | OK | MS C++ 2017 | TESTS | 65 | 1746 | 19251200 | 2400 | |
56079052 | Stepavly | C | June 26, 2019, 2:17 p.m. | OK | MS C++ 2017 | TESTS | 65 | 1793 | 34508800 | 2400 | |
56003140 | nik1998 | C | June 24, 2019, 2:02 p.m. | OK | MS C++ 2017 | TESTS | 65 | 1887 | 163942400 | 2400 | |
57772046 | vjudge1 | C | July 26, 2019, 1:26 a.m. | OK | MS C++ 2017 | TESTS | 65 | 2760 | 40140800 | 2400 | |
57728292 | vjudge3 | C | July 25, 2019, 7:50 a.m. | OK | MS C++ 2017 | TESTS | 65 | 2791 | 40140800 | 2400 | |
56173152 | Shimatsukaze | C | June 27, 2019, 5:39 p.m. | OK | Node.js | TESTS | 65 | 2027 | 156262400 | 2400 | |
55970578 | pajenegod | C | June 23, 2019, 2:33 p.m. | OK | PyPy 2 | TESTS | 65 | 1231 | 50892800 | 2400 | |
55965336 | c1729 | C | June 23, 2019, 11:47 a.m. | OK | PyPy 2 | TESTS | 65 | 1232 | 50892800 | 2400 | |
55964628 | c1729 | C | June 23, 2019, 11:23 a.m. | OK | PyPy 2 | TESTS | 65 | 1263 | 50585600 | 2400 | |
57541999 | Helli.code | C | July 22, 2019, 4:09 p.m. | OK | PyPy 2 | TESTS | 65 | 1325 | 50892800 | 2400 | |
55971357 | pajenegod | C | June 23, 2019, 2:59 p.m. | OK | PyPy 2 | TESTS | 65 | 1341 | 48025600 | 2400 | |
55964440 | c1729 | C | June 23, 2019, 11:17 a.m. | OK | PyPy 2 | TESTS | 65 | 1341 | 50688000 | 2400 | |
55968354 | c1729 | C | June 23, 2019, 1:21 p.m. | OK | PyPy 2 | TESTS | 65 | 1356 | 47820800 | 2400 | |
55970528 | pajenegod | C | June 23, 2019, 2:31 p.m. | OK | PyPy 2 | TESTS | 65 | 1388 | 48025600 | 2400 | |
55966218 | c1729 | C | June 23, 2019, 12:16 p.m. | OK | PyPy 2 | TESTS | 65 | 1403 | 50278400 | 2400 | |
55966018 | c1729 | C | June 23, 2019, 12:10 p.m. | OK | PyPy 2 | TESTS | 65 | 1403 | 50790400 | 2400 | |
56667354 | pineriver | C | July 7, 2019, 11:33 a.m. | OK | PyPy 3 | TESTS | 65 | 2136 | 88371200 | 2400 | |
55923175 | EbTech | C | June 22, 2019, 8:16 a.m. | OK | Rust | TESTS | 65 | 1154 | 39936000 | 2400 | |
55910023 | EbTech | C | June 22, 2019, 12:56 a.m. | OK | Rust | TESTS | 65 | 1216 | 39936000 | 2400 | |
55903641 | EbTech | C | June 21, 2019, 7:03 p.m. | OK | Rust | TESTS | 65 | 1310 | 39936000 | 2400 |
Back to search problems