Codeforces Round 617 (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
1296 Codeforces Round 617 (Div. 3) FINISHED False 7200 156525911 Feb. 4, 2020, 2:35 p.m.

Problems

Solved$
Index
Name
Type
Tags
Community Tag
Rating
( 14480 ) D Fight with Monsters PROGRAMMING greedy sortings 1500

B"There are n monsters standing in a row numbered from 1 to n . The i -th monster has h_i health points (hp). You have your attack power equal to a hp and your opponent has his attack power equal to b hp. You and your opponent are fighting these monsters. Firstly, you and your opponent go to the first monster and fight it till his death, then you and your opponent go the second monster and fight it till his death, and so on. A monster is considered dead if its hp is less than or equal to 0 . The fight with a monster happens in turns. You have some secret technique to force your opponent to skip his turn. You can use this technique at most k times in total (for example, if there are two monsters and k=4 , then you can use the technique 2 times on the first monster and 1 time on the second monster, but not 2 times on the first monster and 3 times on the second monster). Your task is to determine the maximum number of points you can gain if you use the secret technique optimally. The first line of the input contains four integers n, a, b and k ( 1 <= n <= 2 cdot 10^5, 1 <= a, b, k <= 10^9 ) -- the number of monsters, your attack power, the opponent's attack power and the number of times you can use the secret technique. The second line of the input contains n integers h_1, h_2, ... , h_n ( 1 <= h_i <= 10^9 ), where h_i is the health points of the i -th monster. Print one integer -- the maximum number of points you can gain if you use the secret technique optimally. "...

Tutorials

Codeforces Round #617 (Div. 3) Editorial

Submissions

Submission Id
Author(s)
Index
Submitted
Verdict
Language
Test Set
Tests Passed
Time taken (ms)
Memory Consumed (bytes)
Tags
Rating
70310580 sushkov.pv D Feb. 4, 2020, 7:06 p.m. OK Clang++17 Diagnostics TESTS 66 233 1024000 1500
70383834 ftiasch D Feb. 5, 2020, 5:44 p.m. OK D TESTS 66 93 11571200 1500
70299842 1_l D Feb. 4, 2020, 4:46 p.m. OK GNU C11 TESTS 66 62 819200 1500
70312004 kaiboy D Feb. 4, 2020, 7:30 p.m. OK GNU C11 TESTS 66 78 819200 1500
70732320 tsaikiran D Feb. 10, 2020, 1:39 p.m. OK GNU C11 TESTS 66 78 1638400 1500
70593287 JuliusCaesar D Feb. 8, 2020, 9:40 p.m. OK GNU C11 TESTS 66 78 1638400 1500
70383519 2020FEB D Feb. 5, 2020, 5:40 p.m. OK GNU C11 TESTS 66 78 1638400 1500
70320640 luogu_bot2 D Feb. 5, 2020, midnight OK GNU C++11 TESTS 66 46 614400 1500
70298051 cjtsear D Feb. 4, 2020, 4:34 p.m. OK GNU C++11 TESTS 66 46 614400 1500
70659033 lonely_person D Feb. 9, 2020, 3:02 p.m. OK GNU C++11 TESTS 66 46 614400 1500
70338159 Hanakiko D Feb. 5, 2020, 7:45 a.m. OK GNU C++11 TESTS 66 46 614400 1500
70337365 luogu_bot3 D Feb. 5, 2020, 7:34 a.m. OK GNU C++11 TESTS 66 46 614400 1500
70561178 luogu_bot3 D Feb. 8, 2020, 11:55 a.m. OK GNU C++11 TESTS 66 46 819200 1500
70478577 yuzhechuan D Feb. 7, 2020, 5:03 a.m. OK GNU C++11 TESTS 66 46 819200 1500
70494411 urchin-c D Feb. 7, 2020, 10:05 a.m. OK GNU C++11 TESTS 66 46 819200 1500
70560951 luogu_bot1 D Feb. 8, 2020, 11:51 a.m. OK GNU C++11 TESTS 66 46 819200 1500
70561187 Xposed D Feb. 8, 2020, 11:55 a.m. OK GNU C++11 TESTS 66 46 819200 1500
70310394 AWfulsome D Feb. 4, 2020, 7:02 p.m. OK GNU C++14 TESTS 66 46 1740800 1500
70456238 vishnu_m D Feb. 6, 2020, 5:33 p.m. OK GNU C++14 TESTS 66 46 2457600 1500
70356225 abbyankit D Feb. 5, 2020, 12:16 p.m. OK GNU C++14 TESTS 66 62 819200 1500
70436406 YangKun. D Feb. 6, 2020, 12:59 p.m. OK GNU C++14 TESTS 66 62 1638400 1500
70325385 TruongMinhTri D Feb. 5, 2020, 3:09 a.m. OK GNU C++14 TESTS 66 77 819200 1500
70301309 _muzi D Feb. 4, 2020, 4:58 p.m. OK GNU C++14 TESTS 66 77 819200 1500
70536088 tac D Feb. 8, 2020, 3:13 a.m. OK GNU C++14 TESTS 66 77 819200 1500
70826898 vjudge3 D Feb. 12, 2020, 6:46 a.m. OK GNU C++14 TESTS 66 77 819200 1500
70830904 dump_fly D Feb. 12, 2020, 8:23 a.m. OK GNU C++14 TESTS 66 77 1228800 1500
70998042 Misaka_Mikoto____ D Feb. 13, 2020, 4:04 p.m. OK GNU C++14 TESTS 66 77 1638400 1500
70572275 .tx D Feb. 8, 2020, 2:41 p.m. OK GNU C++17 TESTS 66 46 819200 1500
70537067 heshuo. D Feb. 8, 2020, 3:53 a.m. OK GNU C++17 TESTS 66 62 819200 1500
70294971 IceyWang D Feb. 4, 2020, 4:28 p.m. OK GNU C++17 TESTS 66 62 1843200 1500
70726262 vjudge2 D Feb. 10, 2020, 11:57 a.m. OK GNU C++17 TESTS 66 62 1843200 1500
70292677 trnbf D Feb. 4, 2020, 4:21 p.m. OK GNU C++17 TESTS 66 77 819200 1500
70535110 2017212212083 D Feb. 8, 2020, 2:28 a.m. OK GNU C++17 TESTS 66 77 819200 1500
70531857 vp-asp D Feb. 7, 2020, 11:19 p.m. OK GNU C++17 TESTS 66 77 819200 1500
70463904 -CoderM- D Feb. 6, 2020, 7:40 p.m. OK GNU C++17 TESTS 66 77 819200 1500
70339144 jiangly D Feb. 5, 2020, 7:59 a.m. OK GNU C++17 TESTS 66 77 819200 1500
70324209 HeliumLN D Feb. 5, 2020, 2:31 a.m. OK GNU C++17 TESTS 66 77 819200 1500
70423485 naipia D Feb. 6, 2020, 9:25 a.m. OK Go TESTS 66 78 4505600 1500
70554196 rehack D Feb. 8, 2020, 9:53 a.m. OK Go TESTS 66 93 4505600 1500
70310983 ontake D Feb. 4, 2020, 7:12 p.m. OK Go TESTS 66 202 4505600 1500
70418449 devesh08 D Feb. 6, 2020, 7:54 a.m. OK Java 11 TESTS 66 218 0 1500
70370029 Anonymous D Feb. 5, 2020, 3:02 p.m. OK Java 11 TESTS 66 218 0 1500
70363680 alankritanand001 D Feb. 5, 2020, 1:46 p.m. OK Java 11 TESTS 66 233 0 1500
70363443 DreamInfinite D Feb. 5, 2020, 1:43 p.m. OK Java 11 TESTS 66 233 0 1500
70300559 abhi123valani D Feb. 4, 2020, 4:52 p.m. OK Java 11 TESTS 66 233 204800 1500
70441950 i_am_noob1999 D Feb. 6, 2020, 2:16 p.m. OK Java 11 TESTS 66 234 0 1500
70310844 bleh0.5 D Feb. 4, 2020, 7:10 p.m. OK Java 11 TESTS 66 234 0 1500
70311077 namandeept_00 D Feb. 4, 2020, 7:14 p.m. OK Java 11 TESTS 66 249 0 1500
70292587 aswals8991 D Feb. 4, 2020, 4:21 p.m. OK Java 11 TESTS 66 249 0 1500
70303579 LahsunNamkeen D Feb. 4, 2020, 5:21 p.m. OK Java 11 TESTS 66 264 0 1500
70377479 In_The_Name_Of_Love D Feb. 5, 2020, 4:41 p.m. OK Java 8 TESTS 66 124 0 1500
70299742 rite_sharma D Feb. 4, 2020, 4:45 p.m. OK Java 8 TESTS 66 124 0 1500
70470793 bluesky111 D Feb. 6, 2020, 11:43 p.m. OK Java 8 TESTS 66 140 0 1500
70393260 Nirav412000 D Feb. 5, 2020, 7:54 p.m. OK Java 8 TESTS 66 140 0 1500
70383721 johnny16 D Feb. 5, 2020, 5:43 p.m. OK Java 8 TESTS 66 140 0 1500
70353127 shashwat07 D Feb. 5, 2020, 11:31 a.m. OK Java 8 TESTS 66 140 0 1500
70317724 ritesharma D Feb. 4, 2020, 9:45 p.m. OK Java 8 TESTS 66 140 0 1500
70304270 CecilioG D Feb. 4, 2020, 5:29 p.m. OK Java 8 TESTS 66 140 0 1500
70760891 dyhu083 D Feb. 11, 2020, 1:20 a.m. OK Java 8 TESTS 66 155 0 1500
70418232 laxit_y D Feb. 6, 2020, 7:49 a.m. OK Java 8 TESTS 66 155 0 1500
71087170 jhonber D Feb. 14, 2020, 10:02 p.m. OK JavaScript TESTS 66 295 42393600 1500
70800700 badcw D Feb. 11, 2020, 4:50 p.m. OK Kotlin TESTS 66 171 4608000 1500
70333541 Spheniscine D Feb. 5, 2020, 6:37 a.m. OK Kotlin TESTS 66 202 6041600 1500
70333304 Spheniscine D Feb. 5, 2020, 6:33 a.m. OK Kotlin TESTS 66 218 6041600 1500
70349705 SlavaG D Feb. 5, 2020, 10:33 a.m. OK Kotlin TESTS 66 249 6860800 1500
70368660 cjtoribio D Feb. 5, 2020, 2:43 p.m. OK Kotlin TESTS 66 436 18432000 1500
70362898 cmplx-xyttmt D Feb. 5, 2020, 1:37 p.m. OK Kotlin TESTS 66 436 18432000 1500
70662999 hamtory D Feb. 9, 2020, 3:14 p.m. OK Kotlin TESTS 66 499 20992000 1500
70513322 htspur D Feb. 7, 2020, 3:29 p.m. OK Mono C# TESTS 66 78 1536000 1500
70618994 voledyhil D Feb. 9, 2020, 10:54 a.m. OK Mono C# TESTS 66 124 9932800 1500
70615203 TrinidadTobago D Feb. 9, 2020, 9:45 a.m. OK Mono C# TESTS 66 155 20582400 1500
70362683 mban259 D Feb. 5, 2020, 1:35 p.m. OK Mono C# TESTS 66 155 27238400 1500
70490028 TRR D Feb. 7, 2020, 8:41 a.m. OK Mono C# TESTS 66 171 20480000 1500
70441601 sakapon D Feb. 6, 2020, 2:11 p.m. OK Mono C# TESTS 66 187 30208000 1500
70537261 vjudge2 D Feb. 8, 2020, 4 a.m. OK MS C++ TESTS 66 62 1638400 1500
70556866 ltnotfty D Feb. 8, 2020, 10:42 a.m. OK MS C++ TESTS 66 77 819200 1500
70451135 vjudge1 D Feb. 6, 2020, 4:23 p.m. OK MS C++ TESTS 66 77 819200 1500
70295349 wangziyue111 D Feb. 4, 2020, 4:29 p.m. OK MS C++ TESTS 66 77 819200 1500
70302685 samnever D Feb. 4, 2020, 5:11 p.m. OK MS C++ TESTS 66 108 819200 1500
70337704 vjudge3 D Feb. 5, 2020, 7:38 a.m. OK MS C++ TESTS 66 187 1433600 1500
70828156 Anamitrad D Feb. 12, 2020, 7:18 a.m. OK MS C++ TESTS 66 202 819200 1500
70351122 dsesok D Feb. 5, 2020, 10:58 a.m. OK MS C++ TESTS 66 202 2252800 1500
70344038 vjudge5 D Feb. 5, 2020, 9:10 a.m. OK MS C++ TESTS 66 202 3174400 1500
70297352 proability D Feb. 4, 2020, 4:33 p.m. OK MS C++ TESTS 66 202 5427200 1500
70784511 hwangganzi D Feb. 11, 2020, 11:54 a.m. OK MS C++ 2017 TESTS 66 78 2560000 1500
70507579 EatingMelonPublic D Feb. 7, 2020, 1:58 p.m. OK MS C++ 2017 TESTS 66 93 819200 1500
70295035 Laaahu_ D Feb. 4, 2020, 4:28 p.m. OK MS C++ 2017 TESTS 66 93 819200 1500
70310281 sushkov.pv D Feb. 4, 2020, 7 p.m. OK MS C++ 2017 TESTS 66 93 1024000 1500
70297973 yanghuimin D Feb. 4, 2020, 4:34 p.m. OK MS C++ 2017 TESTS 66 93 1638400 1500
70359045 vjudge1 D Feb. 5, 2020, 12:53 p.m. OK MS C++ 2017 TESTS 66 93 1638400 1500
70703042 succ1815406055 D Feb. 10, 2020, 3:48 a.m. OK MS C++ 2017 TESTS 66 93 1638400 1500
70294923 systemcalled D Feb. 4, 2020, 4:28 p.m. OK MS C++ 2017 TESTS 66 93 1740800 1500
70338617 paradoxhzy D Feb. 5, 2020, 7:52 a.m. OK MS C++ 2017 TESTS 66 93 1843200 1500
70327008 O_Ol D Feb. 5, 2020, 3:58 a.m. OK MS C++ 2017 TESTS 66 202 819200 1500
70500155 reyad D Feb. 7, 2020, 11:52 a.m. OK PHP TESTS 66 171 28979200 1500
70490667 mayakin D Feb. 7, 2020, 8:54 a.m. OK PHP TESTS 66 217 28979200 1500
70294052 snape_here D Feb. 4, 2020, 4:25 p.m. OK PyPy 2 TESTS 66 217 19968000 1500
70293995 jolt.tks D Feb. 4, 2020, 4:25 p.m. OK PyPy 2 TESTS 66 451 16281600 1500
70344019 ZeroooIQ D Feb. 5, 2020, 9:10 a.m. OK PyPy 3 TESTS 66 312 19046400 1500
70586761 Ahmed_Araby D Feb. 8, 2020, 6:51 p.m. OK PyPy 3 TESTS 66 326 17817600 1500
70565475 chkdmin D Feb. 8, 2020, 1:04 p.m. OK PyPy 3 TESTS 66 327 16281600 1500
70533607 gaidash D Feb. 8, 2020, 1:06 a.m. OK PyPy 3 TESTS 66 327 19046400 1500
70409773 nocreative1 D Feb. 6, 2020, 4:35 a.m. OK PyPy 3 TESTS 66 327 19046400 1500
70510824 indiewar D Feb. 7, 2020, 2:48 p.m. OK PyPy 3 TESTS 66 327 19148800 1500
70476611 FahimSifnatul D Feb. 7, 2020, 4:05 a.m. OK PyPy 3 TESTS 66 342 15667200 1500
70297150 sureshsinghspd D Feb. 4, 2020, 4:33 p.m. OK PyPy 3 TESTS 66 342 15769600 1500
70392762 megabluejay D Feb. 5, 2020, 7:44 p.m. OK PyPy 3 TESTS 66 342 18329600 1500
70493597 brthyyjp D Feb. 7, 2020, 9:50 a.m. OK PyPy 3 TESTS 66 342 18944000 1500
70848201 soumyasarkar1998 D Feb. 12, 2020, 2:05 p.m. OK Python 2 TESTS 66 405 11468800 1500
70493061 zdrosb D Feb. 7, 2020, 9:40 a.m. OK Python 2 TESTS 66 451 11468800 1500
70869528 ashashwat D Feb. 12, 2020, 3:11 p.m. OK Python 2 TESTS 66 482 13721600 1500
70862271 ashashwat D Feb. 12, 2020, 2:56 p.m. OK Python 2 TESTS 66 498 13926400 1500
70866001 ashashwat D Feb. 12, 2020, 3:03 p.m. OK Python 2 TESTS 66 499 13721600 1500
70379441 mastersurv_hunt D Feb. 5, 2020, 5:07 p.m. OK Python 3 TESTS 66 311 16691200 1500
70387241 Parag_AP D Feb. 5, 2020, 6:07 p.m. OK Python 3 TESTS 66 326 17100800 1500
70748101 Kiran342 D Feb. 10, 2020, 6 p.m. OK Python 3 TESTS 66 327 16588800 1500
70373213 jvti D Feb. 5, 2020, 3:44 p.m. OK Python 3 TESTS 66 342 16588800 1500
70788623 O___K D Feb. 11, 2020, 1:05 p.m. OK Python 3 TESTS 66 342 16691200 1500
70343926 hasmochi D Feb. 5, 2020, 9:08 a.m. OK Python 3 TESTS 66 342 16691200 1500
70532511 guiferviz D Feb. 8, 2020, midnight OK Python 3 TESTS 66 343 16281600 1500
70358598 Player001 D Feb. 5, 2020, 12:47 p.m. OK Python 3 TESTS 66 343 16691200 1500
70293775 enjoingac D Feb. 4, 2020, 4:25 p.m. OK Python 3 TESTS 66 343 16691200 1500
70791508 goyal.amanrocks D Feb. 11, 2020, 2:12 p.m. OK Python 3 TESTS 66 358 15872000 1500
70573334 terraformer D Feb. 8, 2020, 2:57 p.m. OK Rust TESTS 66 93 6041600 1500

remove filters

Back to search problems