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 173978699 May 14, 2019, 2:35 p.m.

Problems

Solved$
Index
Name
Type
Tags
Community Tag
Rating
( 1920 ) F1 Microtransactions (easy version) PROGRAMMING binary search greedy 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 <= 1000 ) -- 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 <= 1000 ), 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 1000 . 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) ( 1 <= d_j <= 1000"...

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
54428703 magdy.hasan F1 May 20, 2019, 8:24 p.m. OK Clang++17 Diagnostics TESTS 27 140 17510400 2400
54431672 Denor F1 May 21, 2019, 12:19 a.m. OK Delphi TESTS 27 31 8089600 2400
54280412 ruban F1 May 17, 2019, 1:07 p.m. OK Delphi TESTS 27 218 90931200 2400
63529474 chaorenhaha F1 Oct. 27, 2019, 6:18 a.m. OK FPC TESTS 27 31 7987200 2400
54319182 about F1 May 17, 2019, 7:55 p.m. OK GNU C11 TESTS 27 31 204800 2400
57574423 MRoy F1 July 23, 2019, 6:30 a.m. OK GNU C11 TESTS 27 31 3993600 2400
54316868 hashlib F1 May 17, 2019, 6:47 p.m. OK GNU C++11 TESTS 27 30 102400 2400
59860622 vjudge3 F1 Sept. 1, 2019, 3:10 p.m. OK GNU C++11 TESTS 27 30 409600 2400
57456778 vjudge5 F1 July 21, 2019, 11:57 a.m. OK GNU C++11 TESTS 27 30 3788800 2400
54371739 llbra9z F1 May 19, 2019, 6:52 a.m. OK GNU C++11 TESTS 27 30 6451200 2400
55708119 vjudge3 F1 June 18, 2019, 8:47 a.m. OK GNU C++11 TESTS 27 30 8089600 2400
56524158 lightinbrain F1 July 4, 2019, 4:21 p.m. OK GNU C++11 TESTS 27 31 0 2400
54883363 html_11 F1 May 31, 2019, 3:42 p.m. OK GNU C++11 TESTS 27 31 0 2400
54786251 Sherlock_Tang F1 May 29, 2019, 4:09 a.m. OK GNU C++11 TESTS 27 31 0 2400
58380464 ThoseBygones F1 Aug. 6, 2019, 9:45 a.m. OK GNU C++11 TESTS 27 31 0 2400
57917226 Tsushima_ F1 July 29, 2019, 2:16 a.m. OK GNU C++11 TESTS 27 31 0 2400
54323833 rj_coder F1 May 18, 2019, 12:37 a.m. OK GNU C++14 TESTS 27 15 0 2400
54283163 landcold7 F1 May 17, 2019, 2:29 p.m. OK GNU C++14 TESTS 27 15 204800 2400
54556247 nguyenguyen753 F1 May 24, 2019, 11:46 a.m. OK GNU C++14 TESTS 27 15 204800 2400
55188244 frost_ F1 June 6, 2019, 4:57 a.m. OK GNU C++14 TESTS 27 15 204800 2400
54733150 chocorusk F1 May 28, 2019, 2:37 a.m. OK GNU C++14 TESTS 27 15 3993600 2400
54492668 pr3pony F1 May 22, 2019, 4:10 p.m. OK GNU C++14 TESTS 27 15 3993600 2400
54371702 Anterior F1 May 19, 2019, 6:52 a.m. OK GNU C++14 TESTS 27 15 4812800 2400
57835390 vjudge3 F1 July 27, 2019, 7:23 a.m. OK GNU C++14 TESTS 27 30 204800 2400
58112885 NDKhoa F1 Aug. 1, 2019, 7:52 a.m. OK GNU C++14 TESTS 27 30 204800 2400
61092264 pootis F1 Sept. 22, 2019, 10:41 p.m. OK GNU C++14 TESTS 27 30 204800 2400
58834313 _baba_yaga F1 Aug. 14, 2019, 7:41 p.m. OK GNU C++17 TESTS 27 15 0 2400
54579101 cjnwq F1 May 25, 2019, 3:04 a.m. OK GNU C++17 TESTS 27 15 0 2400
54909230 hltk F1 June 1, 2019, 10:17 a.m. OK GNU C++17 TESTS 27 15 204800 2400
54554386 Errichto F1 May 24, 2019, 10:54 a.m. OK GNU C++17 TESTS 27 15 204800 2400
54342214 knight-erraunt F1 May 18, 2019, 10:52 a.m. OK GNU C++17 TESTS 27 15 2560000 2400
54281805 ChenZ01 F1 May 17, 2019, 1:47 p.m. OK GNU C++17 TESTS 27 15 3174400 2400
54703733 WGree F1 May 27, 2019, 3:05 a.m. OK GNU C++17 TESTS 27 15 6553600 2400
56790652 yangzijun F1 July 10, 2019, 10:28 a.m. OK GNU C++17 TESTS 27 15 6553600 2400
54736265 dinosaurs F1 May 28, 2019, 5:10 a.m. OK GNU C++17 TESTS 27 30 0 2400
55735274 _PortgasD.Ace_ F1 June 19, 2019, 3:15 a.m. OK GNU C++17 TESTS 27 30 0 2400
60588578 beginner1010 F1 Sept. 14, 2019, 11:44 p.m. OK Java 8 TESTS 27 109 0 2400
54661136 CrazyFlower F1 May 26, 2019, 10:53 a.m. OK Java 8 TESTS 27 109 0 2400
58131779 dyhu083 F1 Aug. 1, 2019, 2:33 p.m. OK Java 8 TESTS 27 124 0 2400
54894048 Washoum F1 June 1, 2019, midnight OK Java 8 TESTS 27 124 0 2400
54282802 bhautik_77 F1 May 17, 2019, 2:16 p.m. OK Java 8 TESTS 27 124 0 2400
54478491 GreatWhite F1 May 22, 2019, 9:46 a.m. OK Java 8 TESTS 27 139 0 2400
54492136 Oopsimbad F1 May 22, 2019, 3:55 p.m. OK Java 8 TESTS 27 140 0 2400
54304955 NinjaDoggy F1 May 17, 2019, 4:30 p.m. OK Java 8 TESTS 27 155 0 2400
56720170 pandrei F1 July 8, 2019, 4:25 p.m. OK Java 8 TESTS 27 170 0 2400
54450498 kusomushi F1 May 21, 2019, 1:19 p.m. OK Java 8 TESTS 27 170 0 2400
63965680 Spheniscine F1 Nov. 1, 2019, 7:05 a.m. OK Kotlin TESTS 27 155 921600 2400
54588384 kiwikiwi F1 May 25, 2019, 7:45 a.m. OK Kotlin TESTS 27 218 18841600 2400
54391516 vjudge2 F1 May 19, 2019, 4:38 p.m. OK MS C++ TESTS 27 31 0 2400
58430753 vjudge2 F1 Aug. 7, 2019, 11:46 a.m. OK MS C++ TESTS 27 31 9625600 2400
61381191 MrLolthe1st F1 Sept. 27, 2019, 5:32 p.m. OK MS C++ 2017 TESTS 27 31 102400 2400
56995696 Charbel11 F1 July 13, 2019, 9:57 p.m. OK MS C++ 2017 TESTS 27 31 204800 2400
57157107 vjudge4 F1 July 16, 2019, 5:11 p.m. OK MS C++ 2017 TESTS 27 31 2457600 2400
54572614 CtrlAlt F1 May 24, 2019, 8:22 p.m. OK MS C++ 2017 TESTS 27 31 3276800 2400
64024178 GeKa F1 Nov. 1, 2019, 3:48 p.m. OK MS C++ 2017 TESTS 27 46 2252800 2400
54409563 Y_JARVIS F1 May 20, 2019, 8:52 a.m. OK MS C++ 2017 TESTS 27 46 9625600 2400
55837602 shehebe F1 June 20, 2019, 4:12 p.m. OK PyPy 2 TESTS 27 202 3276800 2400
57252617 vjudge5 F1 July 18, 2019, 12:38 a.m. OK PyPy 3 TESTS 27 186 2764800 2400
57218211 vjudge3 F1 July 17, 2019, 3:16 p.m. OK Python 2 TESTS 27 187 204800 2400
57064012 vjudge5 F1 July 14, 2019, 7:55 p.m. OK Python 3 TESTS 27 139 614400 2400
57063976 iriswxm F1 July 14, 2019, 7:54 p.m. OK Python 3 TESTS 27 140 614400 2400
66576804 sansen F1 Dec. 10, 2019, 7:42 a.m. OK Rust TESTS 27 46 0 2400

remove filters

Back to search problems