Codeforces Round 560 (Div. 3)

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
1165 Codeforces Round 560 (Div. 3) FINISHED False 7200 179335463 May 14, 2019, 2:35 p.m.

Problems

Solved$
Index
Name
Type
Tags
Community Tag
Rating
( 2238 ) F2 Microtransactions (hard version) PROGRAMMING binary search greedy implementation 2400

B"The only difference between easy and hard versions is constraints. Ivan plays a computer game that contains some microtransactions to make characters look cooler. Since Ivan wants his character to be really cool, he wants to use some of these microtransactions -- and he won't start playing until he gets all of them. Each day (during the morning) Ivan earns exactly one burle. There are n types of microtransactions in the game. Each microtransaction costs 2 burles usually and 1 burle if it is on sale. Ivan has to order exactly k_i microtransactions of the i -th type (he orders microtransactions during the evening). Ivan can order any (possibly zero) number of microtransactions of any types during any day (of course, if he has enough money to do it). If the microtransaction he wants to order is on sale then he can buy it for 1 burle and otherwise he can buy it for 2 burles. There are also m special offers in the game shop. The j -th offer (d_j, t_j) means that microtransactions of the t_j -th type are on sale during the d_j -th day. Ivan wants to order all microtransactions as soon as possible. Your task is to calculate the minimum day when he can buy all microtransactions he want and actually start playing. The first line of the input contains two integers n and m ( 1 <= n, m <= 2 cdot 10^5 ) -- the number of types of microtransactions and the number of special offers in the game shop. The second line of the input contains n integers k_1, k_2, ... , k_n ( 0 <= k_i <= 2 cdot 10^5 ), where k_i is the number of copies of microtransaction of the i -th type Ivan has to order. It is guaranteed that sum of all k_i is not less than 1 and not greater than 2 cdot 10^5 . The next m lines contain special offers. The j -th of these lines contains the j -th special offer. It is given as a pair of integers (d_j, t_j)$$"...

Tutorials

Codeforces Round #560 (Div. 3) Editorial

Submissions

Submission Id
Author(s)
Index
Submitted
Verdict
Language
Test Set
Tests Passed
Time taken (ms)
Memory Consumed (bytes)
Tags
Rating
54431662 Denor F2 May 21, 2019, 12:18 a.m. OK Delphi TESTS 54 139 8089600 2400
54280373 ruban F2 May 17, 2019, 1:06 p.m. OK Delphi TESTS 54 498 90931200 2400
57574582 MRoy F2 July 23, 2019, 6:33 a.m. OK GNU C11 TESTS 54 109 3993600 2400
57574642 MRoy F2 July 23, 2019, 6:34 a.m. OK GNU C11 TESTS 54 124 3993600 2400
57574443 MRoy F2 July 23, 2019, 6:31 a.m. OK GNU C11 TESTS 54 124 4812800 2400
54319176 about F2 May 17, 2019, 7:55 p.m. OK GNU C11 TESTS 54 218 6758400 2400
64517135 Herry_NY F2 Nov. 8, 2019, 11:08 a.m. OK GNU C++11 TESTS 54 62 6451200 2400
55180385 DQS F2 June 5, 2019, 9:37 p.m. OK GNU C++11 TESTS 54 62 16076800 2400
55610869 ReaLNero1 F2 June 16, 2019, 5:38 a.m. OK GNU C++11 TESTS 54 77 16076800 2400
64517136 OuOu F2 Nov. 8, 2019, 11:08 a.m. OK GNU C++11 TESTS 54 78 6451200 2400
64510299 luogu_bot2 F2 Nov. 8, 2019, 8:34 a.m. OK GNU C++11 TESTS 54 78 6451200 2400
64564653 rack_ny F2 Nov. 9, 2019, 7:16 a.m. OK GNU C++11 TESTS 54 78 7987200 2400
64572921 asd369 F2 Nov. 9, 2019, 9:48 a.m. OK GNU C++11 TESTS 54 93 6246400 2400
58528181 chenyewei_1234 F2 Aug. 10, 2019, 8:10 a.m. OK GNU C++11 TESTS 54 93 9932800 2400
55396255 DimmyT F2 June 10, 2019, 11:54 a.m. OK GNU C++11 TESTS 54 93 14745600 2400
56056911 wannaAC F2 June 26, 2019, 1:06 a.m. OK GNU C++11 TESTS 54 93 22323200 2400
69498940 vjudge1 F2 Jan. 25, 2020, 5:43 a.m. OK GNU C++14 TESTS 54 155 3993600 2400
54960943 zarathu F2 June 2, 2019, 3:41 a.m. OK GNU C++14 TESTS 54 156 3174400 2400
59982597 do_not_think_that F2 Sept. 4, 2019, 9:07 a.m. OK GNU C++14 TESTS 54 156 3174400 2400
59534142 vito1036 F2 Aug. 26, 2019, 4:13 p.m. OK GNU C++14 TESTS 54 156 3174400 2400
67295949 cheissmart F2 Dec. 20, 2019, 4:57 p.m. OK GNU C++14 TESTS 54 171 4812800 2400
55121434 RNS_MHB F2 June 5, 2019, 10:53 a.m. OK GNU C++14 TESTS 54 171 19968000 2400
55506407 gampu F2 June 12, 2019, 6:10 p.m. OK GNU C++14 TESTS 54 186 3174400 2400
65545350 armking F2 Nov. 22, 2019, 4:58 p.m. OK GNU C++14 TESTS 54 186 4812800 2400
57791017 Ajit. F2 July 26, 2019, 9:27 a.m. OK GNU C++14 TESTS 54 186 5017600 2400
55506703 gampu F2 June 12, 2019, 6:21 p.m. OK GNU C++14 TESTS 54 187 3174400 2400
60147349 jiangly F2 Sept. 6, 2019, 1:17 a.m. OK GNU C++17 TESTS 54 77 19456000 2400
54390078 kidddddddddddddddddddddd F2 May 19, 2019, 3:40 p.m. OK GNU C++17 TESTS 54 156 3174400 2400
60064370 A_root_A F2 Sept. 5, 2019, 8:28 a.m. OK GNU C++17 TESTS 54 156 4198400 2400
65753558 mikuz F2 Nov. 26, 2019, 2:03 p.m. OK GNU C++17 TESTS 54 171 3174400 2400
59664298 UESTC_Forsaken F2 Aug. 29, 2019, 1:39 p.m. OK GNU C++17 TESTS 54 171 3174400 2400
54468370 98kaiii F2 May 22, 2019, 2:48 a.m. OK GNU C++17 TESTS 54 171 3993600 2400
66377872 Ali.Kh F2 Dec. 6, 2019, 4:06 a.m. OK GNU C++17 TESTS 54 171 4812800 2400
58839125 BugsBunny F2 Aug. 15, 2019, 12:28 a.m. OK GNU C++17 TESTS 54 171 8806400 2400
54539260 ivan100sic F2 May 23, 2019, 10:52 p.m. OK GNU C++17 TESTS 54 171 9011200 2400
54784472 errorgorn F2 May 29, 2019, 2:30 a.m. OK GNU C++17 TESTS 54 186 4812800 2400
54661103 CrazyFlower F2 May 26, 2019, 10:52 a.m. OK Java 8 TESTS 54 248 0 2400
54305123 NinjaDoggy F2 May 17, 2019, 4:31 p.m. OK Java 8 TESTS 54 405 5427200 2400
54282744 xodiac F2 May 17, 2019, 2:15 p.m. OK Java 8 TESTS 54 436 23040000 2400
67183415 dalt F2 Dec. 19, 2019, 2:20 a.m. OK Java 8 TESTS 54 482 47718400 2400
54450452 kusomushi F2 May 21, 2019, 1:18 p.m. OK Java 8 TESTS 54 545 3379200 2400
54280066 Nutella3000 F2 May 17, 2019, 12:57 p.m. OK Java 8 TESTS 54 592 5324800 2400
56356680 seo F2 June 30, 2019, 5:19 p.m. OK Java 8 TESTS 54 592 43724800 2400
60588566 beginner1010 F2 Sept. 14, 2019, 11:43 p.m. OK Java 8 TESTS 54 670 13414400 2400
56992762 NMouad21 F2 July 13, 2019, 7:24 p.m. OK Java 8 TESTS 54 670 28979200 2400
54492119 Oopsimbad F2 May 22, 2019, 3:55 p.m. OK Java 8 TESTS 54 685 22937600 2400
63965408 Spheniscine F2 Nov. 1, 2019, 6:59 a.m. OK Kotlin TESTS 54 1559 20070400 2400
54588348 kiwikiwi F2 May 25, 2019, 7:44 a.m. OK Kotlin TESTS 54 1777 53145600 2400
69221045 vjudge5 F2 Jan. 21, 2020, 4:40 a.m. OK MS C++ TESTS 54 186 19865600 2400
69177607 vjudge1 F2 Jan. 20, 2020, 8:43 a.m. OK MS C++ TESTS 54 187 4812800 2400
58430821 vjudge5 F2 Aug. 7, 2019, 11:47 a.m. OK MS C++ TESTS 54 187 11878400 2400
69175955 vjudge1 F2 Jan. 20, 2020, 8:06 a.m. OK MS C++ TESTS 54 280 11980800 2400
54433132 vjudge1 F2 May 21, 2019, 2:26 a.m. OK MS C++ TESTS 54 405 3993600 2400
54409552 Y_JARVIS F2 May 20, 2019, 8:52 a.m. OK MS C++ 2017 TESTS 54 296 11878400 2400
64025242 GeKa F2 Nov. 1, 2019, 3:52 p.m. OK MS C++ 2017 TESTS 54 498 5427200 2400
57157197 vjudge3 F2 July 16, 2019, 5:13 p.m. OK MS C++ 2017 TESTS 54 561 8601600 2400
54572616 CtrlAlt F2 May 24, 2019, 8:22 p.m. OK MS C++ 2017 TESTS 54 639 8396800 2400
61381212 MrLolthe1st F2 Sept. 27, 2019, 5:32 p.m. OK MS C++ 2017 TESTS 54 1372 20172800 2400
61384151 MrLolthe1st F2 Sept. 27, 2019, 6:26 p.m. OK MS C++ 2017 TESTS 54 1388 17612800 2400
57252639 vjudge2 F2 July 18, 2019, 12:39 a.m. OK PyPy 3 TESTS 54 2667 52531200 2400
66576790 sansen F2 Dec. 10, 2019, 7:41 a.m. OK Rust TESTS 54 78 7372800 2400

remove filters

Back to search problems