Codeforces Round 610 (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
1282 Codeforces Round 610 (Div. 2) FINISHED False 7200 154625099 Dec. 24, 2019, 2:35 p.m.

Problems

Solved$
Index
Name
Type
Tags
Community Tag
Rating
( 4332 ) C Petya and Exam PROGRAMMING greedy sortings two pointers 1800

B'Petya has come to the math exam and wants to solve as many problems as possible. He prepared and carefully studied the rules by which the exam passes. The exam consists of n problems that can be solved in T minutes. Thus, the exam begins at time 0 and ends at time T . Petya can leave the exam at any integer time from 0 to T , inclusive. All problems are divided into two types: Thus, if Petya starts solving an easy problem at time x , then it will be solved at time x+a . Similarly, if at a time x Petya starts to solve a hard problem, then it will be solved at time x+b . For every problem, Petya knows if it is easy or hard. Also, for each problem is determined time t_i ( 0 <= t_i <= T ) at which it will become mandatory (required). If Petya leaves the exam at time s and there is such a problem i that t_i <= s and he didn 't solve it, then he will receive 0 points for the whole exam. Otherwise (i.e if he has solved all such problems for which t_i <= s ) he will receive a number of points equal to the number of solved problems. Note that leaving at time s Petya can have both "mandatory" and "non-mandatory" problems solved. For example, if n=2 , T=5 , a=2 , b=3 , the first problem is hard and t_1=3 and the second problem is easy and t_2=2 . Then: Thus, the answer to this test is 2 . Help Petya to determine the maximal number of points that he can receive, before leaving the exam. The first line contains the integer m ( 1 <= m <= 10^4 ) -- the number of test cases in the test. The next lines contain a description of m test cases. The first line of each test case contains four integers n, T, a, b ( 2 <= n <= 2 cdot10^5 , 1 <= T <= 10^9 , 1 <= a < b <= 10^9 ) -- the number of problems, minutes given for the exam and the time to solve an easy and hard problem, respectively. The s'...

Tutorials

72461

Submissions

Submission Id
Author(s)
Index
Submitted
Verdict
Language
Test Set
Tests Passed
Time taken (ms)
Memory Consumed (bytes)
Tags
Rating
67560783 crazy__1234 C Dec. 24, 2019, 5:30 p.m. OK Clang++17 Diagnostics TESTS 20 1996 43008000 1800
67547517 avm C Dec. 24, 2019, 3:55 p.m. OK D TESTS 20 108 25292800 1800
67534161 iica C Dec. 24, 2019, 3:02 p.m. OK D TESTS 20 171 11673600 1800
67613463 ruban C Dec. 25, 2019, 4:16 p.m. OK Delphi TESTS 20 171 110592000 1800
67629112 kaiboy C Dec. 26, 2019, 1:49 a.m. OK GNU C11 TESTS 20 109 2457600 1800
68097110 QuisVenator C Jan. 2, 2020, 9:43 p.m. OK GNU C11 TESTS 20 109 3174400 1800
67625457 kaiboy C Dec. 25, 2019, 9:21 p.m. OK GNU C11 TESTS 20 124 2457600 1800
67545920 rainboy C Dec. 24, 2019, 3:48 p.m. OK GNU C11 TESTS 20 139 2457600 1800
67554944 FE40536 C Dec. 24, 2019, 4:28 p.m. OK GNU C11 TESTS 20 155 4812800 1800
67963159 JoaoFelix7 C Dec. 30, 2019, 12:22 p.m. OK GNU C++11 TESTS 20 46 2457600 1800
67963193 luogu_bot4 C Dec. 30, 2019, 12:23 p.m. OK GNU C++11 TESTS 20 46 2457600 1800
67574350 xyjw C Dec. 25, 2019, 12:04 a.m. OK GNU C++11 TESTS 20 46 3072000 1800
67542606 z7z_Eta C Dec. 24, 2019, 3:34 p.m. OK GNU C++11 TESTS 20 46 3072000 1800
67545130 yqaty C Dec. 24, 2019, 3:44 p.m. OK GNU C++11 TESTS 20 46 6451200 1800
67539838 24680esz C Dec. 24, 2019, 3:23 p.m. OK GNU C++11 TESTS 20 61 3072000 1800
67550099 zhumingyang C Dec. 24, 2019, 4:06 p.m. OK GNU C++11 TESTS 20 62 1638400 1800
67580009 MrJoker C Dec. 25, 2019, 5:29 a.m. OK GNU C++11 TESTS 20 62 2457600 1800
67575819 yuzhechuan C Dec. 25, 2019, 2:03 a.m. OK GNU C++11 TESTS 20 62 4812800 1800
67948560 yuzhechuan C Dec. 30, 2019, 6:38 a.m. OK GNU C++11 TESTS 20 62 4812800 1800
67536568 hyhtsdy C Dec. 24, 2019, 3:10 p.m. OK GNU C++14 TESTS 20 62 9011200 1800
67533742 Egor C Dec. 24, 2019, 3 p.m. OK GNU C++14 TESTS 20 77 3174400 1800
68231497 tjd229 C Jan. 5, 2020, 9:21 a.m. OK GNU C++14 TESTS 20 93 1536000 1800
68027192 chw0501 C Jan. 1, 2020, 6:43 a.m. OK GNU C++14 TESTS 20 108 7372800 1800
67650525 Ice_Cream C Dec. 26, 2019, 11:57 a.m. OK GNU C++14 TESTS 20 109 1638400 1800
67561221 kmjp C Dec. 24, 2019, 5:38 p.m. OK GNU C++14 TESTS 20 109 1638400 1800
67632249 Shikari10 C Dec. 26, 2019, 4:49 a.m. OK GNU C++14 TESTS 20 109 1638400 1800
67655489 alvinvaja C Dec. 26, 2019, 1:45 p.m. OK GNU C++14 TESTS 20 109 2457600 1800
67556569 ydk1104 C Dec. 24, 2019, 4:33 p.m. OK GNU C++14 TESTS 20 109 3174400 1800
68027170 chw0501 C Jan. 1, 2020, 6:42 a.m. OK GNU C++14 TESTS 20 109 7372800 1800
67603564 angrysqrt3 C Dec. 25, 2019, 12:47 p.m. OK GNU C++17 TESTS 20 93 1536000 1800
67765935 lavin C Dec. 28, 2019, 3:45 a.m. OK GNU C++17 TESTS 20 109 1536000 1800
67584879 scnucjh C Dec. 25, 2019, 7:52 a.m. OK GNU C++17 TESTS 20 109 1638400 1800
68046737 rich_and_yuong C Jan. 1, 2020, 4:48 p.m. OK GNU C++17 TESTS 20 109 1638400 1800
67622393 prateekrai C Dec. 25, 2019, 7:29 p.m. OK GNU C++17 TESTS 20 109 1638400 1800
68691025 BrokenDreACM C Jan. 13, 2020, 6:07 a.m. OK GNU C++17 TESTS 20 109 6451200 1800
67664430 customer101 C Dec. 26, 2019, 5:12 p.m. OK GNU C++17 TESTS 20 109 16076800 1800
67545853 Nijigasaki_MaedaKaori C Dec. 24, 2019, 3:47 p.m. OK GNU C++17 TESTS 20 124 1536000 1800
67554994 C20180602 C Dec. 24, 2019, 4:28 p.m. OK GNU C++17 TESTS 20 124 1536000 1800
69455798 Thewill C Jan. 24, 2020, 8:34 a.m. OK GNU C++17 TESTS 20 124 1638400 1800
67543834 caidodo0_0 C Dec. 24, 2019, 3:39 p.m. OK Go TESTS 20 311 4505600 1800
67570197 bleh0.5 C Dec. 24, 2019, 9:34 p.m. OK Java 11 TESTS 20 311 9523200 1800
67534362 Lewin C Dec. 24, 2019, 3:02 p.m. OK Java 11 TESTS 20 327 3481600 1800
67580018 potatmen C Dec. 25, 2019, 5:29 a.m. OK Java 11 TESTS 20 327 4198400 1800
69386094 Kimo_Fathy C Jan. 22, 2020, 10:39 p.m. OK Java 11 TESTS 20 327 7987200 1800
67548950 lightseba C Dec. 24, 2019, 4:01 p.m. OK Java 11 TESTS 20 343 9523200 1800
67555746 machhra C Dec. 24, 2019, 4:31 p.m. OK Java 11 TESTS 20 390 3584000 1800
67575700 sb233 C Dec. 25, 2019, 1:55 a.m. OK Java 11 TESTS 20 670 0 1800
67565988 Dukkha C Dec. 24, 2019, 7:20 p.m. OK Java 11 TESTS 20 670 0 1800
67618388 liebert C Dec. 25, 2019, 5:43 p.m. OK Java 11 TESTS 20 717 7270400 1800
67541823 BaZ_ C Dec. 24, 2019, 3:31 p.m. OK Java 8 TESTS 20 202 0 1800
67569274 RootTwoOverTwelve C Dec. 24, 2019, 8:56 p.m. OK Java 8 TESTS 20 218 0 1800
67679798 bluesky111 C Dec. 27, 2019, 5:37 a.m. OK Java 8 TESTS 20 218 2252800 1800
67961484 luchy0120 C Dec. 30, 2019, 11:44 a.m. OK Java 8 TESTS 20 218 4915200 1800
67626015 MubtasimShahriar C Dec. 25, 2019, 9:52 p.m. OK Java 8 TESTS 20 233 3891200 1800
67672531 rahsutamrev C Dec. 26, 2019, 9:35 p.m. OK Java 8 TESTS 20 233 4403200 1800
67560800 KharYusuf C Dec. 24, 2019, 5:31 p.m. OK Java 8 TESTS 20 233 4915200 1800
67599534 niteshgowda C Dec. 25, 2019, 11:24 a.m. OK Java 8 TESTS 20 233 8499200 1800
67565925 courtesy C Dec. 24, 2019, 7:18 p.m. OK Java 8 TESTS 20 249 0 1800
67549274 aditya_arj C Dec. 24, 2019, 4:03 p.m. OK Java 8 TESTS 20 249 0 1800
68968781 Spheniscine C Jan. 17, 2020, 6:12 a.m. OK Kotlin TESTS 20 295 11673600 1800
68968657 Spheniscine C Jan. 17, 2020, 6:09 a.m. OK Kotlin TESTS 20 311 11673600 1800
68969118 Spheniscine C Jan. 17, 2020, 6:19 a.m. OK Kotlin TESTS 20 311 11673600 1800
67676053 slemus C Dec. 27, 2019, 1:54 a.m. OK Kotlin TESTS 20 576 23040000 1800
67546652 old_boo C Dec. 24, 2019, 3:51 p.m. OK Kotlin TESTS 20 717 21811200 1800
67550342 AsuraPro C Dec. 24, 2019, 4:07 p.m. OK Kotlin TESTS 20 1123 71987200 1800
67537968 camypaper C Dec. 24, 2019, 3:16 p.m. OK Mono C# TESTS 20 155 8294400 1800
67684116 artworks C Dec. 27, 2019, 8:01 a.m. OK Mono C# TESTS 20 187 31539200 1800
68098679 SpinDOS C Jan. 2, 2020, 11:35 p.m. OK Mono C# TESTS 20 233 38707200 1800
68098948 SpinDOS C Jan. 3, 2020, midnight OK Mono C# TESTS 20 248 38707200 1800
69528190 tomomo2b2 C Jan. 25, 2020, 3:57 p.m. OK Mono C# TESTS 20 249 39628800 1800
68433694 keymoon C Jan. 9, 2020, 8:03 a.m. OK Mono C# TESTS 20 249 52940800 1800
69438520 nastya1199 C Jan. 23, 2020, 8:07 p.m. OK Mono C# TESTS 20 296 32768000 1800
67559525 plasma-effect C Dec. 24, 2019, 5:13 p.m. OK Mono C# TESTS 20 451 44236800 1800
67547826 Yupiteru C Dec. 24, 2019, 3:56 p.m. OK Mono C# TESTS 20 624 220672000 1800
68341780 vjudge2 C Jan. 7, 2020, 4:20 a.m. OK MS C++ TESTS 20 109 6451200 1800
68591500 vjudge1 C Jan. 11, 2020, 12:47 p.m. OK MS C++ TESTS 20 109 6451200 1800
68613566 vjudge1 C Jan. 11, 2020, 4:37 p.m. OK MS C++ TESTS 20 1060 7270400 1800
68612823 vjudge1 C Jan. 11, 2020, 4:21 p.m. OK MS C++ TESTS 20 1091 7270400 1800
67555618 P___ C Dec. 24, 2019, 4:30 p.m. OK MS C++ 2017 TESTS 20 140 1638400 1800
67548512 youx C Dec. 24, 2019, 3:59 p.m. OK MS C++ 2017 TESTS 20 156 13721600 1800
67543695 nukeykt C Dec. 24, 2019, 3:38 p.m. OK MS C++ 2017 TESTS 20 171 1740800 1800
67956477 jasminehe C Dec. 30, 2019, 9:51 a.m. OK MS C++ 2017 TESTS 20 202 11161600 1800
67850211 vjudge4 C Dec. 29, 2019, 2:15 a.m. OK MS C++ 2017 TESTS 20 327 1638400 1800
67584561 Dmitrenko C Dec. 25, 2019, 7:44 a.m. OK MS C++ 2017 TESTS 20 327 3174400 1800
67610646 omerb.zeybek C Dec. 25, 2019, 3:15 p.m. OK MS C++ 2017 TESTS 20 342 1843200 1800
67850226 Fire_ass C Dec. 29, 2019, 2:16 a.m. OK MS C++ 2017 TESTS 20 343 1638400 1800
68058255 AlexanderL C Jan. 2, 2020, 12:12 a.m. OK MS C++ 2017 TESTS 20 343 1638400 1800
67552460 kurs C Dec. 24, 2019, 4:17 p.m. OK MS C++ 2017 TESTS 20 343 1843200 1800
67540616 bcollet C Dec. 24, 2019, 3:26 p.m. OK PyPy 2 TESTS 20 420 19660800 1800
67608752 soumyasarkar1998 C Dec. 25, 2019, 2:33 p.m. OK PyPy 2 TESTS 20 811 19660800 1800
68140160 SoSooding C Jan. 3, 2020, 9:36 p.m. OK PyPy 2 TESTS 20 826 19251200 1800
67560068 Horse-kun C Dec. 24, 2019, 5:20 p.m. OK PyPy 2 TESTS 20 857 20377600 1800
67613760 raj1307 C Dec. 25, 2019, 4:23 p.m. OK PyPy 2 TESTS 20 857 26624000 1800
67574691 aaa_bbb_ccc C Dec. 25, 2019, 12:31 a.m. OK PyPy 2 TESTS 20 920 20582400 1800
67574480 aaa_bbb_ccc C Dec. 25, 2019, 12:13 a.m. OK PyPy 2 TESTS 20 920 20889600 1800
67959556 vjudge5 C Dec. 30, 2019, 11:01 a.m. OK PyPy 2 TESTS 20 935 19968000 1800
67949098 MVP C Dec. 30, 2019, 6:51 a.m. OK PyPy 2 TESTS 20 997 19865600 1800
67553915 Pyar.Mahobat.Dhoka.Hai C Dec. 24, 2019, 4:24 p.m. OK PyPy 2 TESTS 20 1076 35737600 1800
67541190 titia C Dec. 24, 2019, 3:28 p.m. OK PyPy 3 TESTS 20 499 23961600 1800
67548676 sdhd C Dec. 24, 2019, 4 p.m. OK PyPy 3 TESTS 20 560 45875200 1800
69484367 xiema C Jan. 24, 2020, 6:55 p.m. OK PyPy 3 TESTS 20 592 20582400 1800
67547442 cftt C Dec. 24, 2019, 3:55 p.m. OK PyPy 3 TESTS 20 592 41984000 1800
68346796 shanu_im C Jan. 7, 2020, 7:42 a.m. OK PyPy 3 TESTS 20 639 37888000 1800
68220620 950104 C Jan. 5, 2020, 4:26 a.m. OK PyPy 3 TESTS 20 670 25292800 1800
67554973 ulyss C Dec. 24, 2019, 4:28 p.m. OK PyPy 3 TESTS 20 670 27238400 1800
67555105 Sushant00 C Dec. 24, 2019, 4:29 p.m. OK PyPy 3 TESTS 20 701 26828800 1800
68109741 artifexbm C Jan. 3, 2020, 9:01 a.m. OK PyPy 3 TESTS 20 717 38809600 1800
67985207 aliansari C Dec. 30, 2019, 9:59 p.m. OK PyPy 3 TESTS 20 733 26214400 1800
67541641 nwi C Dec. 24, 2019, 3:30 p.m. OK Python 2 TESTS 20 732 15462400 1800
67547750 anonymous0314 C Dec. 24, 2019, 3:56 p.m. OK Python 2 TESTS 20 951 20992000 1800
67691030 mahir01 C Dec. 27, 2019, 11:07 a.m. OK Python 3 TESTS 20 857 29388800 1800
67542846 r57shell C Dec. 24, 2019, 3:35 p.m. OK Python 3 TESTS 20 873 27033600 1800
67541603 hiphip C Dec. 24, 2019, 3:30 p.m. OK Python 3 TESTS 20 888 16691200 1800
67546329 vmos1999 C Dec. 24, 2019, 3:49 p.m. OK Python 3 TESTS 20 935 16691200 1800
68046632 III_Wolverine_III C Jan. 1, 2020, 4:45 p.m. OK Python 3 TESTS 20 982 16691200 1800
67538701 ostroumov C Dec. 24, 2019, 3:19 p.m. OK Python 3 TESTS 20 1107 16588800 1800
67673142 PEPElotas C Dec. 26, 2019, 10:06 p.m. OK Python 3 TESTS 20 1356 22425600 1800
67673051 PEPElotas C Dec. 26, 2019, 10:01 p.m. OK Python 3 TESTS 20 1372 22425600 1800
67672959 PEPElotas C Dec. 26, 2019, 9:56 p.m. OK Python 3 TESTS 20 1684 30822400 1800
67552498 denny_sem C Dec. 24, 2019, 4:18 p.m. OK Python 3 TESTS 20 1762 94208000 1800
68954012 sansen C Jan. 16, 2020, 7:12 p.m. OK Rust TESTS 20 93 14336000 1800
67542076 tuna_salad C Dec. 24, 2019, 3:32 p.m. OK Rust TESTS 20 124 14643200 1800
67547021 yakamoto C Dec. 24, 2019, 3:53 p.m. OK Scala TESTS 20 889 15974400 1800

remove filters

Back to search problems