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 |
---|---|---|---|---|---|---|
1618 | Codeforces Round 760 (Div. 3) | FINISHED | False | 8100 | 92330699 | Dec. 14, 2021, 2:35 p.m. |
Solved$ |
Index |
Name |
Type |
Tags |
Community Tag |
Rating |
---|---|---|---|---|---|---|
( 1611 ) | G | Trader Problem | PROGRAMMING | binary search data structures ds greedy math sortings |
B"Monocarp plays a computer game (yet again!). This game has a unique trading mechanics. To trade with a character, Monocarp has to choose one of the items he possesses and trade it for some item the other character possesses. Each item has an integer price. If Monocarp's chosen item has price x , then he can trade it for any item (exactly one item) with price not greater than x+k . Monocarp initially has n items, the price of the i -th item he has is a_i . The character Monocarp is trading with has m items, the price of the i -th item they have is b_i . Monocarp can trade with this character as many times as he wants (possibly even zero times), each time exchanging one of his items with one of the other character's items according to the aforementioned constraints. Note that if Monocarp gets some item during an exchange, he can trade it for another item (since now the item belongs to him), and vice versa: if Monocarp trades one of his items for another item, he can get his item back by trading something for it. You have to answer q queries. Each query consists of one integer, which is the value of k , and asks you to calculate the maximum possible total cost of items Monocarp can have after some sequence of trades, assuming that he can trade an item of cost x for an item of cost not greater than x+k during each trade. Note that the queries are independent: the trades do not actually occur, Monocarp only wants to calculate the maximum total cost he can get. The first line contains three integers n , m and q ( 1 <= n, m, q <= 2 cdot 10^5 ). The second line contains n integers a_1, a_2, ... , a_n ( 1 <= a_i <= 10^9 ) -- the prices of the items Monocarp has. The third line contains m integers b_1, b_2, ... , b_m ( 1 <= b_i <= 10^9 ) -- the prices of the items the other character has. The fourth line contains q integers, where th"... |
Codeforces Round #760 (Div. 3) Editorial |
Submission Id |
Author(s) |
Index |
Submitted |
Verdict |
Language |
Test Set |
Tests Passed |
Time taken (ms) |
Memory Consumed (bytes) |
Tags |
Rating |
---|---|---|---|---|---|---|---|---|---|---|---|
139311582 | YuYouzhi | G | Dec. 14, 2021, 4:57 p.m. | OK | GNU C++14 | TESTS | 177 | 187 | 104652800 | ||
139311443 | mehrzad_minaie | G | Dec. 14, 2021, 4:56 p.m. | OK | GNU C++14 | TESTS | 177 | 374 | 24473600 | ||
139344777 | QuitCP | G | Dec. 15, 2021, 2:09 a.m. | OK | GNU C++14 | TESTS | 177 | 390 | 23347200 | ||
139329703 | Yazan_Alattar | G | Dec. 14, 2021, 8:25 p.m. | OK | GNU C++14 | TESTS | 177 | 405 | 29696000 | ||
139349335 | divya15 | G | Dec. 15, 2021, 4:03 a.m. | OK | GNU C++14 | TESTS | 177 | 420 | 37171200 | ||
139321571 | kikis_297 | G | Dec. 14, 2021, 6:25 p.m. | OK | GNU C++14 | TESTS | 177 | 420 | 37171200 | ||
139351953 | anixai | G | Dec. 15, 2021, 4:49 a.m. | OK | GNU C++14 | TESTS | 177 | 436 | 27238400 | ||
139323907 | anubhavdhar | G | Dec. 14, 2021, 6:55 p.m. | OK | GNU C++14 | TESTS | 177 | 436 | 30412800 | ||
139310350 | Doremon | G | Dec. 14, 2021, 4:52 p.m. | OK | GNU C++14 | TESTS | 177 | 436 | 41472000 | ||
139315536 | Derrick_Rose | G | Dec. 14, 2021, 5:22 p.m. | OK | GNU C++14 | TESTS | 177 | 452 | 21811200 | ||
139350750 | Kirito | G | Dec. 15, 2021, 4:29 a.m. | OK | GNU C++17 | TESTS | 177 | 327 | 30515200 | ||
139311857 | Ruki | G | Dec. 14, 2021, 4:58 p.m. | OK | GNU C++17 | TESTS | 177 | 343 | 24576000 | ||
139350277 | hieu_2004 | G | Dec. 15, 2021, 4:19 a.m. | OK | GNU C++17 | TESTS | 177 | 374 | 80179200 | ||
139326252 | qwerty190 | G | Dec. 14, 2021, 7:29 p.m. | OK | GNU C++17 | TESTS | 177 | 389 | 35737600 | ||
139339428 | qingyun_1 | G | Dec. 15, 2021, 1:38 a.m. | OK | GNU C++17 | TESTS | 177 | 405 | 17612800 | ||
139339395 | qingyun_1 | G | Dec. 15, 2021, 1:37 a.m. | OK | GNU C++17 | TESTS | 177 | 405 | 17612800 | ||
139336625 | Old_man_with_Piggy | G | Dec. 14, 2021, 11:41 p.m. | OK | GNU C++17 | TESTS | 177 | 405 | 24576000 | ||
139309440 | dreamoon_love_AA | G | Dec. 14, 2021, 4:49 p.m. | OK | GNU C++17 | TESTS | 177 | 405 | 48332800 | ||
139339339 | qingyun_1 | G | Dec. 15, 2021, 1:35 a.m. | OK | GNU C++17 | TESTS | 177 | 420 | 17612800 | ||
139325375 | altynai | G | Dec. 14, 2021, 7:17 p.m. | OK | GNU C++17 | TESTS | 177 | 420 | 27136000 | ||
139315889 | kal013 | G | Dec. 14, 2021, 5:25 p.m. | OK | GNU C++17 (64) | TESTS | 177 | 312 | 31334400 | ||
139313330 | SherMad | G | Dec. 14, 2021, 5:06 p.m. | OK | GNU C++17 (64) | TESTS | 177 | 312 | 39628800 | ||
139354282 | Temmie | G | Dec. 15, 2021, 5:24 a.m. | OK | GNU C++17 (64) | TESTS | 177 | 327 | 22835200 | ||
139306673 | SherMad | G | Dec. 14, 2021, 4:46 p.m. | OK | GNU C++17 (64) | TESTS | 177 | 327 | 39936000 | ||
139320286 | palsoumyadeep | G | Dec. 14, 2021, 6:10 p.m. | OK | GNU C++17 (64) | TESTS | 177 | 343 | 36147200 | ||
139306610 | BaluconisTima | G | Dec. 14, 2021, 4:46 p.m. | OK | GNU C++17 (64) | TESTS | 177 | 343 | 54886400 | ||
139338717 | lucifer1004 | G | Dec. 15, 2021, 1:12 a.m. | OK | GNU C++17 (64) | TESTS | 177 | 436 | 21606400 | ||
139338581 | lucifer1004 | G | Dec. 15, 2021, 1:07 a.m. | OK | GNU C++17 (64) | TESTS | 177 | 452 | 21913600 | ||
139353412 | korokseeds | G | Dec. 15, 2021, 5:12 a.m. | OK | GNU C++17 (64) | TESTS | 177 | 545 | 64307200 | ||
139312864 | Hermit__OvO | G | Dec. 14, 2021, 5:04 p.m. | OK | GNU C++17 (64) | TESTS | 177 | 577 | 50892800 | ||
139352048 | LCMjuruo | G | Dec. 15, 2021, 4:50 a.m. | OK | GNU C++20 (64) | TESTS | 177 | 155 | 50176000 | ||
139349642 | BaoJiaoPisu | G | Dec. 15, 2021, 4:08 a.m. | OK | GNU C++20 (64) | TESTS | 177 | 202 | 24064000 | ||
139323381 | ARINOOR | G | Dec. 14, 2021, 6:48 p.m. | OK | GNU C++20 (64) | TESTS | 177 | 218 | 19251200 | ||
139312371 | dutinmeow | G | Dec. 14, 2021, 5:01 p.m. | OK | GNU C++20 (64) | TESTS | 177 | 233 | 22425600 | ||
139306160 | Makcum888 | G | Dec. 14, 2021, 4:45 p.m. | OK | GNU C++20 (64) | TESTS | 177 | 249 | 16588800 | ||
139325171 | KULIKOLD | G | Dec. 14, 2021, 7:14 p.m. | OK | GNU C++20 (64) | TESTS | 177 | 249 | 25702400 | ||
139339964 | TimeToUpdateTestData | G | Dec. 15, 2021, 1:55 a.m. | OK | GNU C++20 (64) | TESTS | 177 | 249 | 38297600 | ||
139325086 | KULIKOLD | G | Dec. 14, 2021, 7:13 p.m. | OK | GNU C++20 (64) | TESTS | 177 | 265 | 19251200 | ||
139350684 | M0riarty | G | Dec. 15, 2021, 4:27 a.m. | OK | GNU C++20 (64) | TESTS | 177 | 265 | 28160000 | ||
139305154 | SaiAryan | G | Dec. 14, 2021, 4:43 p.m. | OK | GNU C++20 (64) | TESTS | 177 | 280 | 28057600 | ||
139322519 | Dukkha | G | Dec. 14, 2021, 6:37 p.m. | OK | Java 11 | TESTS | 177 | 1482 | 29491200 | ||
139339264 | dzhi | G | Dec. 15, 2021, 1:33 a.m. | OK | Java 11 | TESTS | 177 | 1591 | 68096000 | ||
139338741 | dzhi | G | Dec. 15, 2021, 1:13 a.m. | OK | Java 11 | TESTS | 177 | 1637 | 44236800 | ||
139338623 | dzhi | G | Dec. 15, 2021, 1:09 a.m. | OK | Java 11 | TESTS | 177 | 1716 | 44236800 | ||
139315608 | kamranm | G | Dec. 14, 2021, 5:23 p.m. | OK | Java 8 | TESTS | 177 | 873 | 41984000 | ||
139306212 | manish.17 | G | Dec. 14, 2021, 4:45 p.m. | OK | PyPy 2 | TESTS | 177 | 3837 | 126668800 | ||
139331736 | hxu10 | G | Dec. 14, 2021, 9:07 p.m. | OK | PyPy 3 | TESTS | 177 | 1965 | 111411200 | ||
139333514 | xuhao95 | G | Dec. 14, 2021, 9:51 p.m. | OK | PyPy 3 | TESTS | 177 | 2012 | 111206400 | ||
139333384 | xuhao95 | G | Dec. 14, 2021, 9:47 p.m. | OK | PyPy 3 | TESTS | 177 | 2152 | 119910400 | ||
139331456 | hxu10 | G | Dec. 14, 2021, 9 p.m. | OK | PyPy 3 | TESTS | 177 | 2370 | 164864000 | ||
139318279 | xuhao95 | G | Dec. 14, 2021, 5:48 p.m. | OK | PyPy 3 | TESTS | 177 | 2605 | 123187200 | ||
139330875 | hxu10 | G | Dec. 14, 2021, 8:48 p.m. | OK | PyPy 3 | TESTS | 177 | 2761 | 121446400 | ||
139317635 | xuhao95 | G | Dec. 14, 2021, 5:41 p.m. | OK | PyPy 3 | TESTS | 177 | 2854 | 123289600 | ||
139332631 | xuhao95 | G | Dec. 14, 2021, 9:27 p.m. | OK | PyPy 3 | TESTS | 177 | 2854 | 145100800 | ||
139318491 | megurine | G | Dec. 14, 2021, 5:50 p.m. | OK | PyPy 3 | TESTS | 177 | 2917 | 118681600 | ||
139318097 | xuhao95 | G | Dec. 14, 2021, 5:46 p.m. | OK | PyPy 3 | TESTS | 177 | 3229 | 177561600 | ||
139331818 | hxu10 | G | Dec. 14, 2021, 9:08 p.m. | OK | PyPy 3-64 | TESTS | 177 | 1528 | 111513600 | ||
139333533 | xuhao95 | G | Dec. 14, 2021, 9:51 p.m. | OK | PyPy 3-64 | TESTS | 177 | 1731 | 111411200 | ||
139307210 | titia | G | Dec. 14, 2021, 4:47 p.m. | OK | PyPy 3-64 | TESTS | 177 | 2292 | 108544000 | ||
139306629 | manish.17 | G | Dec. 14, 2021, 4:46 p.m. | OK | PyPy 3-64 | TESTS | 177 | 3275 | 123596800 | ||
139318300 | xuhao95 | G | Dec. 14, 2021, 5:48 p.m. | OK | PyPy 3-64 | TESTS | 177 | 3431 | 133632000 | ||
139308532 | manish.17 | G | Dec. 14, 2021, 4:48 p.m. | OK | PyPy 3-64 | TESTS | 177 | 3462 | 121958400 | ||
139311565 | misorin | G | Dec. 14, 2021, 4:57 p.m. | OK | PyPy 3-64 | TESTS | 177 | 3650 | 182681600 | ||
139347768 | coolstreaming | G | Dec. 15, 2021, 3:28 a.m. | OK | PyPy 3-64 | TESTS | 177 | 3899 | 131788800 | ||
139305675 | SPD_9X2 | G | Dec. 14, 2021, 4:44 p.m. | OK | PyPy 3-64 | TESTS | 177 | 3915 | 103321600 | ||
139306496 | SPD_9X2 | G | Dec. 14, 2021, 4:45 p.m. | OK | PyPy 3-64 | TESTS | 177 | 4180 | 107315200 | ||
139333489 | xuhao95 | G | Dec. 14, 2021, 9:50 p.m. | OK | Python 3 | TESTS | 177 | 3463 | 87142400 |
Back to search problems