Codeforces Round 578 (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
1200 Codeforces Round 578 (Div. 2) FINISHED False 7200 166296299 Aug. 11, 2019, 12:35 p.m.

Problems

Solved$
Index
Name
Type
Tags
Community Tag
Rating
( 14013 ) B Block Adventure PROGRAMMING dp greedy 1300

B'Gildong is playing a video game called Block Adventure. In Block Adventure, there are n columns of blocks in a row, and the columns are numbered from 1 to n . All blocks have equal heights. The height of the i -th column is represented as h_i , which is the number of blocks stacked in the i -th column. Gildong plays the game as a character that can stand only on the top of the columns. At the beginning, the character is standing on the top of the 1 -st column. The goal of the game is to move the character to the top of the n -th column. The character also has a bag that can hold infinitely many blocks. When the character is on the top of the i -th column, Gildong can take one of the following three actions as many times as he wants: In actions of the first two types the character remains in the i -th column, and the value h_i changes. The character initially has m blocks in the bag. Gildong wants to know if it is possible to win the game. Help Gildong find the answer to his question. Each test contains one or more test cases. The first line contains the number of test cases t ( 1 <= t <= 1000 ). Description of the test cases follows. The first line of each test case contains three integers n , m , and k ( 1 <= n <= 100 , 0 <= m <= 10^6 , 0 <= k <= 10^6 ) -- the number of columns in the game, the number of blocks in the character 's bag at the beginning, and the non-negative integer k described in the statement. The second line of each test case contains n integers. The i -th integer is h_i ( 0 <= h_i <= 10^6 ), the initial height of the i -th column. For each test case, print "YES" if it is possible to win the game. Otherwise, print "NO". You can print each letter in any case (upper or lower). In the first case, Gildong can take one block from the 1 -st column, move to the 2 -nd column, put the block o'...

Tutorials

Codeforces Round #578 (Div. 2) Editorial

Submissions

Submission Id
Author(s)
Index
Submitted
Verdict
Language
Test Set
Tests Passed
Time taken (ms)
Memory Consumed (bytes)
Tags
Rating
58588527 daut-dlang B Aug. 11, 2019, 1:01 p.m. OK D TESTS 47 46 0 1300
58582413 rr_ B Aug. 11, 2019, 12:49 p.m. OK D TESTS 47 46 0 1300
58590815 iica B Aug. 11, 2019, 1:06 p.m. OK D TESTS 47 46 102400 1300
58600821 ruban B Aug. 11, 2019, 1:32 p.m. OK Delphi TESTS 47 46 80179200 1300
58599708 Craspedacusta B Aug. 11, 2019, 1:29 p.m. OK FPC TESTS 47 46 0 1300
58590562 LaSWeeG B Aug. 11, 2019, 1:06 p.m. OK FPC TESTS 47 46 0 1300
58593384 naranja011223 B Aug. 11, 2019, 1:12 p.m. OK FPC TESTS 47 46 409600 1300
58594671 dblark B Aug. 11, 2019, 1:15 p.m. OK FPC TESTS 47 61 0 1300
58598620 TokarinRika B Aug. 11, 2019, 1:26 p.m. OK FPC TESTS 47 61 0 1300
58606573 PAG B Aug. 11, 2019, 1:51 p.m. OK FPC TESTS 47 62 0 1300
58602360 hengxin11111jy B Aug. 11, 2019, 1:37 p.m. OK FPC TESTS 47 62 0 1300
58596171 bao-gpmn B Aug. 11, 2019, 1:19 p.m. OK FPC TESTS 47 62 0 1300
58591606 vanda B Aug. 11, 2019, 1:08 p.m. OK GNU C11 TESTS 47 46 0 1300
58591901 coderbd B Aug. 11, 2019, 1:09 p.m. OK GNU C11 TESTS 47 46 0 1300
58598339 ted071024 B Aug. 11, 2019, 1:25 p.m. OK GNU C11 TESTS 47 46 0 1300
58601308 BD_MCMai B Aug. 11, 2019, 1:34 p.m. OK GNU C11 TESTS 47 46 0 1300
58605236 ubc_123 B Aug. 11, 2019, 1:46 p.m. OK GNU C11 TESTS 47 46 0 1300
58606113 thuzerland B Aug. 11, 2019, 1:49 p.m. OK GNU C11 TESTS 47 46 0 1300
58606506 Y5Yash B Aug. 11, 2019, 1:50 p.m. OK GNU C11 TESTS 47 46 0 1300
58608810 zzy0625 B Aug. 11, 2019, 1:59 p.m. OK GNU C11 TESTS 47 46 0 1300
58618124 Lukman03 B Aug. 11, 2019, 2:34 p.m. OK GNU C11 TESTS 47 46 0 1300
58586613 pengin_2000 B Aug. 11, 2019, 12:58 p.m. OK GNU C11 TESTS 47 46 0 1300
58600931 qwq_zero B Aug. 11, 2019, 1:32 p.m. OK GNU C++11 TESTS 47 31 0 1300
58604396 fwfyou B Aug. 11, 2019, 1:44 p.m. OK GNU C++11 TESTS 47 31 0 1300
58605641 lightmain B Aug. 11, 2019, 1:48 p.m. OK GNU C++11 TESTS 47 31 0 1300
58605650 kejunyu B Aug. 11, 2019, 1:48 p.m. OK GNU C++11 TESTS 47 31 0 1300
58605675 xiaoyuanxun B Aug. 11, 2019, 1:48 p.m. OK GNU C++11 TESTS 47 31 0 1300
58606195 Andrew821 B Aug. 11, 2019, 1:49 p.m. OK GNU C++11 TESTS 47 31 0 1300
58609089 Daniel_yuan B Aug. 11, 2019, 2 p.m. OK GNU C++11 TESTS 47 31 0 1300
58611284 Doubleen233 B Aug. 11, 2019, 2:08 p.m. OK GNU C++11 TESTS 47 31 0 1300
58611607 Inctry B Aug. 11, 2019, 2:09 p.m. OK GNU C++11 TESTS 47 31 0 1300
58617685 Naive_Cat B Aug. 11, 2019, 2:32 p.m. OK GNU C++11 TESTS 47 31 0 1300
58587783 yuruhiya B Aug. 11, 2019, 1 p.m. OK GNU C++14 TESTS 47 31 102400 1300
58612931 coderharshit2510 B Aug. 11, 2019, 2:15 p.m. OK GNU C++14 TESTS 47 46 0 1300
58617261 iamrakeshri28 B Aug. 11, 2019, 2:31 p.m. OK GNU C++14 TESTS 47 46 0 1300
58616660 Nemo B Aug. 11, 2019, 2:29 p.m. OK GNU C++14 TESTS 47 46 0 1300
58616123 DragonDragneel B Aug. 11, 2019, 2:28 p.m. OK GNU C++14 TESTS 47 46 0 1300
58615973 linkneverquit B Aug. 11, 2019, 2:27 p.m. OK GNU C++14 TESTS 47 46 0 1300
58615339 K_DogS B Aug. 11, 2019, 2:24 p.m. OK GNU C++14 TESTS 47 46 0 1300
58613721 smtcoder B Aug. 11, 2019, 2:18 p.m. OK GNU C++14 TESTS 47 46 0 1300
58613634 mahaveer2407 B Aug. 11, 2019, 2:18 p.m. OK GNU C++14 TESTS 47 46 0 1300
58612879 aditi2899 B Aug. 11, 2019, 2:15 p.m. OK GNU C++14 TESTS 47 46 0 1300
58612011 Self_patroit B Aug. 11, 2019, 2:11 p.m. OK GNU C++17 TESTS 47 46 0 1300
58612057 Ghjattu B Aug. 11, 2019, 2:11 p.m. OK GNU C++17 TESTS 47 46 0 1300
58612088 Yoo_booy B Aug. 11, 2019, 2:12 p.m. OK GNU C++17 TESTS 47 46 0 1300
58612806 LauKihnPang B Aug. 11, 2019, 2:14 p.m. OK GNU C++17 TESTS 47 46 0 1300
58614446 Isabela_CR B Aug. 11, 2019, 2:21 p.m. OK GNU C++17 TESTS 47 46 0 1300
58614558 YANGRUZHAO B Aug. 11, 2019, 2:22 p.m. OK GNU C++17 TESTS 47 46 0 1300
58611563 old_school B Aug. 11, 2019, 2:09 p.m. OK GNU C++17 TESTS 47 46 0 1300
58615452 codeblockser B Aug. 11, 2019, 2:25 p.m. OK GNU C++17 TESTS 47 46 0 1300
58615854 TANGIAMIN B Aug. 11, 2019, 2:27 p.m. OK GNU C++17 TESTS 47 46 0 1300
58617548 daniel071292 B Aug. 11, 2019, 2:32 p.m. OK GNU C++17 TESTS 47 46 0 1300
58612670 hypo B Aug. 11, 2019, 2:14 p.m. OK Go TESTS 47 109 0 1300
58610745 zwwhdls B Aug. 11, 2019, 2:06 p.m. OK Go TESTS 47 109 0 1300
58591708 torus711 B Aug. 11, 2019, 1:08 p.m. OK Haskell TESTS 47 46 102400 1300
58582352 spar5h B Aug. 11, 2019, 12:49 p.m. OK Java 8 TESTS 47 124 0 1300
58599592 pj21 B Aug. 11, 2019, 1:28 p.m. OK Java 8 TESTS 47 124 0 1300
58592478 tk555 B Aug. 11, 2019, 1:10 p.m. OK Java 8 TESTS 47 124 0 1300
58591220 saptarshim B Aug. 11, 2019, 1:07 p.m. OK Java 8 TESTS 47 124 0 1300
58587043 Foxyy B Aug. 11, 2019, 12:58 p.m. OK Java 8 TESTS 47 124 0 1300
58586263 programbhavan B Aug. 11, 2019, 12:57 p.m. OK Java 8 TESTS 47 124 0 1300
58583923 dhaval.lila97 B Aug. 11, 2019, 12:52 p.m. OK Java 8 TESTS 47 124 0 1300
58607300 Knecht B Aug. 11, 2019, 1:53 p.m. OK Java 8 TESTS 47 139 0 1300
58593795 bhautik_77 B Aug. 11, 2019, 1:13 p.m. OK Java 8 TESTS 47 139 0 1300
58585375 xodiac B Aug. 11, 2019, 12:55 p.m. OK Java 8 TESTS 47 139 0 1300
58585486 mongolrgata B Aug. 11, 2019, 12:55 p.m. OK JavaScript TESTS 47 77 1638400 1300
58588278 amirrr B Aug. 11, 2019, 1:01 p.m. OK Kotlin TESTS 47 171 0 1300
58617624 crlg90 B Aug. 11, 2019, 2:32 p.m. OK Kotlin TESTS 47 186 0 1300
58581484 Spheniscine B Aug. 11, 2019, 12:47 p.m. OK Kotlin TESTS 47 264 204800 1300
58601395 wbars B Aug. 11, 2019, 1:34 p.m. OK Kotlin TESTS 47 327 512000 1300
58603210 LimpSlim B Aug. 11, 2019, 1:40 p.m. OK Mono C# TESTS 47 77 3072000 1300
58584737 eki B Aug. 11, 2019, 12:54 p.m. OK Mono C# TESTS 47 77 3072000 1300
58615166 _DKS_ B Aug. 11, 2019, 2:24 p.m. OK Mono C# TESTS 47 78 3993600 1300
58612281 amit1509kumar B Aug. 11, 2019, 2:12 p.m. OK Mono C# TESTS 47 93 3072000 1300
58594834 Giangvp B Aug. 11, 2019, 1:16 p.m. OK Mono C# TESTS 47 93 3072000 1300
58587393 kuuso B Aug. 11, 2019, 12:59 p.m. OK Mono C# TESTS 47 93 3072000 1300
58583687 omikad B Aug. 11, 2019, 12:52 p.m. OK Mono C# TESTS 47 93 3072000 1300
58581149 keymoon B Aug. 11, 2019, 12:47 p.m. OK Mono C# TESTS 47 93 6758400 1300
58589178 kichi2004 B Aug. 11, 2019, 1:03 p.m. OK Mono C# TESTS 47 93 6758400 1300
58593261 hibatibati B Aug. 11, 2019, 1:12 p.m. OK Mono C# TESTS 47 93 6758400 1300
58601480 The-RedArrow B Aug. 11, 2019, 1:34 p.m. OK MS C++ TESTS 47 46 0 1300
58613071 kwok B Aug. 11, 2019, 2:15 p.m. OK MS C++ TESTS 47 46 0 1300
58600345 coword B Aug. 11, 2019, 1:31 p.m. OK MS C++ TESTS 47 46 0 1300
58591285 w616561153 B Aug. 11, 2019, 1:07 p.m. OK MS C++ TESTS 47 46 0 1300
58588900 lsroi B Aug. 11, 2019, 1:02 p.m. OK MS C++ TESTS 47 46 0 1300
58588890 kevin19984 B Aug. 11, 2019, 1:02 p.m. OK MS C++ TESTS 47 46 0 1300
58584241 2017212212283 B Aug. 11, 2019, 12:53 p.m. OK MS C++ TESTS 47 46 0 1300
58589381 wawahaha B Aug. 11, 2019, 1:03 p.m. OK MS C++ TESTS 47 93 0 1300
58593710 CalCuUuS B Aug. 11, 2019, 1:13 p.m. OK MS C++ TESTS 47 93 0 1300
58601449 boa B Aug. 11, 2019, 1:34 p.m. OK MS C++ TESTS 47 108 0 1300
58590441 RANCAFE B Aug. 11, 2019, 1:05 p.m. OK MS C++ 2017 TESTS 47 46 0 1300
58590848 21181522 B Aug. 11, 2019, 1:06 p.m. OK MS C++ 2017 TESTS 47 46 0 1300
58591302 querry B Aug. 11, 2019, 1:07 p.m. OK MS C++ 2017 TESTS 47 46 0 1300
58600150 persisdent B Aug. 11, 2019, 1:30 p.m. OK MS C++ 2017 TESTS 47 61 0 1300
58584185 vpike B Aug. 11, 2019, 12:53 p.m. OK MS C++ 2017 TESTS 47 61 0 1300
58590984 j2v B Aug. 11, 2019, 1:07 p.m. OK MS C++ 2017 TESTS 47 61 0 1300
58598808 printfok B Aug. 11, 2019, 1:26 p.m. OK MS C++ 2017 TESTS 47 61 0 1300
58617643 suancaiyu B Aug. 11, 2019, 2:32 p.m. OK MS C++ 2017 TESTS 47 62 0 1300
58605619 ZSTU-2018329621261 B Aug. 11, 2019, 1:47 p.m. OK MS C++ 2017 TESTS 47 62 0 1300
58607217 2018030402032 B Aug. 11, 2019, 1:53 p.m. OK MS C++ 2017 TESTS 47 62 0 1300
58610016 pop-corn B Aug. 11, 2019, 2:03 p.m. OK Node.js TESTS 47 202 5529600 1300
58599437 erbolat0311 B Aug. 11, 2019, 1:28 p.m. OK PHP TESTS 47 62 409600 1300
58587226 Mukundan314 B Aug. 11, 2019, 12:59 p.m. OK PyPy 2 TESTS 47 171 3584000 1300
58585670 c1729 B Aug. 11, 2019, 12:56 p.m. OK PyPy 2 TESTS 47 187 3584000 1300
58609689 frostD B Aug. 11, 2019, 2:02 p.m. OK PyPy 2 TESTS 47 218 3686400 1300
58589214 Soul_Silver B Aug. 11, 2019, 1:03 p.m. OK PyPy 2 TESTS 47 218 4403200 1300
58582707 bcollet B Aug. 11, 2019, 12:50 p.m. OK PyPy 2 TESTS 47 233 2252800 1300
58610072 MVP B Aug. 11, 2019, 2:04 p.m. OK PyPy 2 TESTS 47 234 3993600 1300
58580718 dukati8 B Aug. 11, 2019, 12:46 p.m. OK PyPy 2 TESTS 47 249 3788800 1300
58614519 Yocho B Aug. 11, 2019, 2:21 p.m. OK PyPy 2 TESTS 47 249 4812800 1300
58608508 ssk497 B Aug. 11, 2019, 1:58 p.m. OK PyPy 2 TESTS 47 327 8908800 1300
58583462 H4Wk3ye B Aug. 11, 2019, 12:51 p.m. OK PyPy 3 TESTS 47 218 5222400 1300
58608051 cirpis B Aug. 11, 2019, 1:56 p.m. OK PyPy 3 TESTS 47 249 4710400 1300
58611316 ajpiano B Aug. 11, 2019, 2:08 p.m. OK PyPy 3 TESTS 47 249 4915200 1300
58609411 sqrtminusone B Aug. 11, 2019, 2:01 p.m. OK PyPy 3 TESTS 47 249 5836800 1300
58583559 macleChen B Aug. 11, 2019, 12:52 p.m. OK PyPy 3 TESTS 47 249 5836800 1300
58589710 koptev B Aug. 11, 2019, 1:04 p.m. OK PyPy 3 TESTS 47 249 6246400 1300
58598200 plourde27 B Aug. 11, 2019, 1:25 p.m. OK PyPy 3 TESTS 47 264 6451200 1300
58613546 sh19910711 B Aug. 11, 2019, 2:17 p.m. OK PyPy 3 TESTS 47 265 4812800 1300
58597204 sprkgoyal B Aug. 11, 2019, 1:22 p.m. OK PyPy 3 TESTS 47 265 5529600 1300
58583102 rikein12 B Aug. 11, 2019, 12:51 p.m. OK PyPy 3 TESTS 47 265 5939200 1300
58594197 jrobsonjr B Aug. 11, 2019, 1:14 p.m. OK Python 2 TESTS 47 264 204800 1300
58604841 daniel.carlos B Aug. 11, 2019, 1:45 p.m. OK Python 2 TESTS 47 295 102400 1300
58592411 shubhankarsharma00 B Aug. 11, 2019, 1:10 p.m. OK Python 2 TESTS 47 296 204800 1300
58598104 obich B Aug. 11, 2019, 1:24 p.m. OK Python 3 TESTS 47 171 921600 1300
58587352 yaroslavspid2 B Aug. 11, 2019, 12:59 p.m. OK Python 3 TESTS 47 187 614400 1300
58595655 JakeOnestone B Aug. 11, 2019, 1:18 p.m. OK Python 3 TESTS 47 187 921600 1300
58581956 SergeantLolicon B Aug. 11, 2019, 12:48 p.m. OK Python 3 TESTS 47 187 921600 1300
58614775 yunxingl B Aug. 11, 2019, 2:22 p.m. OK Python 3 TESTS 47 202 614400 1300
58605232 anushkaaa B Aug. 11, 2019, 1:46 p.m. OK Python 3 TESTS 47 202 614400 1300
58600093 essi B Aug. 11, 2019, 1:30 p.m. OK Python 3 TESTS 47 202 614400 1300
58596657 EA5 B Aug. 11, 2019, 1:21 p.m. OK Python 3 TESTS 47 202 614400 1300
58596627 ZiJohnCena B Aug. 11, 2019, 1:20 p.m. OK Python 3 TESTS 47 202 614400 1300
58595501 tagun1202 B Aug. 11, 2019, 1:17 p.m. OK Python 3 TESTS 47 202 614400 1300
58602334 Kaidora B Aug. 11, 2019, 1:37 p.m. OK Ruby TESTS 47 140 409600 1300
58586624 macho_uno B Aug. 11, 2019, 12:58 p.m. OK Rust TESTS 47 46 102400 1300
58593313 manta1130 B Aug. 11, 2019, 1:12 p.m. OK Rust TESTS 47 61 102400 1300
58614045 BetBit B Aug. 11, 2019, 2:20 p.m. OK Rust TESTS 47 61 204800 1300
58589998 yoshrc B Aug. 11, 2019, 1:04 p.m. OK Rust TESTS 47 62 204800 1300
58597026 terraformer B Aug. 11, 2019, 1:21 p.m. OK Rust TESTS 47 62 1331200 1300
58583119 limed B Aug. 11, 2019, 12:51 p.m. OK Scala TESTS 47 561 0 1300
58607706 smas B Aug. 11, 2019, 1:55 p.m. OK Scala TESTS 47 608 0 1300

remove filters

Back to search problems