Codeforces Round 901 (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
1875 Codeforces Round 901 (Div. 2) FINISHED False 10800 41095463 Sept. 30, 2023, 2:35 p.m.

Problems

Solved$
Index
Name
Type
Tags
Community Tag
Rating
( 27833 ) A Jellyfish and Undertale PROGRAMMING greedy

B"Flowey has planted a bomb in Snowdin! The bomb has a timer that is initially set to b . Every second, the timer will decrease by 1 . When the timer reaches 0 , the bomb will explode! To give the residents of Snowdin enough time to evacuate, you will need to delay the bomb from exploding for as long as possible. You have n tools. Each tool can only be used at most once. If you use the i -th tool, the timer will increase by x_i . However, if the timer is changed to an integer larger than a , the timer will be set to a due to a bug. More specifically, the following events will happen every second in the following order: Jellyfish now wants to know the maximum time in seconds until the bomb explodes if the tools are used optimally. Each test contains multiple test cases. The first line contains the number of test cases t ( 1 <= q t <= q 2000 ). The description of the test cases follows. The first line of each test case contains three integers a , b and n ( 1 <= q b <= q a <= q 10^9 , 1 <= q n <= q 100 ) -- the maximum value of the bomb's timer, the initial value of the timer of the bomb and the number of tools. The second line of each test contains n integers x_1, x_2, ... , x_n ( 1 <= q x_i <= q 10^9 ) -- the number the timer can increase by using the i -th tool. Note that the sum of n over all test cases is not bounded. For each test case, output a single integer -- the maximum time in seconds until the bomb explodes. Let c denote the value of the bomb's timer. In the first test case: It can be proved that there is no way to use the tools such that the bomb explodes after more than 9 seconds. "...

Tutorials

Codeforces Round 901 (Div. 1, Div. 2) Editorial

Submissions

Submission Id
Author(s)
Index
Submitted
Verdict
Language
Test Set
Tests Passed
Time taken (ms)
Memory Consumed (bytes)
Tags
Rating
226078302 solohunter A Sept. 30, 2023, 7:53 p.m. OK C# 10 TESTS 10 108 3276800
226104455 CCMu04 A Oct. 1, 2023, 4:07 a.m. OK Clang++20 Diagnostics TESTS 10 920 0
226054909 paridhi1612 A Sept. 30, 2023, 5:15 p.m. OK GNU C11 TESTS 10 46 0
226090519 pratikr21 A Sept. 30, 2023, 11:33 p.m. OK GNU C11 TESTS 10 46 0
226054412 archi04 A Sept. 30, 2023, 5:13 p.m. OK GNU C11 TESTS 10 46 0
226054112 ig.gautam A Sept. 30, 2023, 5:12 p.m. OK GNU C11 TESTS 10 46 0
226062387 Gov1507 A Sept. 30, 2023, 5:33 p.m. OK GNU C11 TESTS 10 61 0
226113509 gargi_shroff A Oct. 1, 2023, 5:58 a.m. OK GNU C11 TESTS 10 62 0
226080621 jhahidulzahid A Sept. 30, 2023, 8:19 p.m. OK GNU C11 TESTS 10 62 0
226093732 jmawa1163 A Oct. 1, 2023, 1:07 a.m. OK GNU C11 TESTS 10 62 0
226108709 albatross12 A Oct. 1, 2023, 5:04 a.m. OK GNU C11 TESTS 10 62 0
226110132 GVSaiPraneeth A Oct. 1, 2023, 5:21 a.m. OK GNU C11 TESTS 10 62 0
226093973 zyxawa A Oct. 1, 2023, 1:13 a.m. OK GNU C++14 TESTS 10 46 0
226079422 sharonvijay A Sept. 30, 2023, 8:06 p.m. OK GNU C++14 TESTS 10 46 0
226070384 mmated A Sept. 30, 2023, 6:42 p.m. OK GNU C++14 TESTS 10 61 0
226096720 sacave A Oct. 1, 2023, 2:08 a.m. OK GNU C++14 TESTS 10 61 7987200
226109709 naveeee A Oct. 1, 2023, 5:16 a.m. OK GNU C++14 TESTS 10 62 0
226110323 PawanSinghKoranga A Oct. 1, 2023, 5:23 a.m. OK GNU C++14 TESTS 10 62 0
226109321 halehu A Oct. 1, 2023, 5:12 a.m. OK GNU C++14 TESTS 10 62 0
226108923 zai_juan_zi_sha A Oct. 1, 2023, 5:07 a.m. OK GNU C++14 TESTS 10 62 0
226108749 lazysapien A Oct. 1, 2023, 5:05 a.m. OK GNU C++14 TESTS 10 62 0
226107975 zyxawa A Oct. 1, 2023, 4:55 a.m. OK GNU C++14 TESTS 10 62 0
226092961 e_l_a_h_i A Oct. 1, 2023, 12:48 a.m. OK GNU C++17 TESTS 10 46 102400
226077980 MohammedAyadAlhajji A Sept. 30, 2023, 7:50 p.m. OK GNU C++17 TESTS 10 61 0
226083424 mas2alt_wa2t A Sept. 30, 2023, 8:57 p.m. OK GNU C++17 TESTS 10 61 0
226086549 SpartyXD A Sept. 30, 2023, 9:54 p.m. OK GNU C++17 TESTS 10 61 0
226067134 _callmegupta A Sept. 30, 2023, 6:24 p.m. OK GNU C++17 TESTS 10 61 0
226099296 Starry516 A Oct. 1, 2023, 2:51 a.m. OK GNU C++17 TESTS 10 61 0
226107655 milkybyte A Oct. 1, 2023, 4:51 a.m. OK GNU C++17 TESTS 10 61 0
226088649 Abdohefny A Sept. 30, 2023, 10:40 p.m. OK GNU C++17 TESTS 10 61 0
226107739 EzuRohit A Oct. 1, 2023, 4:52 a.m. OK GNU C++17 TESTS 10 61 102400
226084085 shashank74022 A Sept. 30, 2023, 9:08 p.m. OK GNU C++17 TESTS 10 61 102400
226074738 abood03 A Sept. 30, 2023, 7:16 p.m. OK GNU C++17 (64) TESTS 10 31 0
226109515 mennakhalid288 A Oct. 1, 2023, 5:14 a.m. OK GNU C++17 (64) TESTS 10 31 0
226099236 mostafasazid A Oct. 1, 2023, 2:50 a.m. OK GNU C++17 (64) TESTS 10 31 0
226083463 nyoguta A Sept. 30, 2023, 8:58 p.m. OK GNU C++17 (64) TESTS 10 31 0
226103688 suryam35 A Oct. 1, 2023, 3:56 a.m. OK GNU C++17 (64) TESTS 10 46 0
226109716 Ackhava A Oct. 1, 2023, 5:17 a.m. OK GNU C++17 (64) TESTS 10 46 0
226108774 XH_v A Oct. 1, 2023, 5:05 a.m. OK GNU C++17 (64) TESTS 10 46 0
226108604 Followall A Oct. 1, 2023, 5:03 a.m. OK GNU C++17 (64) TESTS 10 46 0
226104954 fairy_land A Oct. 1, 2023, 4:14 a.m. OK GNU C++17 (64) TESTS 10 46 0
226104466 battlefly A Oct. 1, 2023, 4:07 a.m. OK GNU C++17 (64) TESTS 10 46 0
226095793 N_z__ A Oct. 1, 2023, 1:51 a.m. OK GNU C++20 (64) TESTS 10 15 102400
226113117 _andyli A Oct. 1, 2023, 5:54 a.m. OK GNU C++20 (64) TESTS 10 15 2048000
226112733 Taurus388 A Oct. 1, 2023, 5:50 a.m. OK GNU C++20 (64) TESTS 10 31 0
226113971 XiaoTie A Oct. 1, 2023, 6:02 a.m. OK GNU C++20 (64) TESTS 10 31 0
226113751 sanjayprajapati A Oct. 1, 2023, 6 a.m. OK GNU C++20 (64) TESTS 10 31 0
226113741 rakshith21mohan A Oct. 1, 2023, 6 a.m. OK GNU C++20 (64) TESTS 10 31 0
226113385 theprst A Oct. 1, 2023, 5:57 a.m. OK GNU C++20 (64) TESTS 10 31 0
226113247 kamal_akbari_13 A Oct. 1, 2023, 5:55 a.m. OK GNU C++20 (64) TESTS 10 31 0
226112751 Githm A Oct. 1, 2023, 5:50 a.m. OK GNU C++20 (64) TESTS 10 31 0
226112453 kar2003 A Oct. 1, 2023, 5:47 a.m. OK GNU C++20 (64) TESTS 10 31 0
226112624 thakur6393 A Oct. 1, 2023, 5:49 a.m. OK Java 11 TESTS 10 218 0
226109125 Panther369 A Oct. 1, 2023, 5:09 a.m. OK Java 11 TESTS 10 218 0
226105568 naruto65 A Oct. 1, 2023, 4:23 a.m. OK Java 11 TESTS 10 467 0
226079913 Ajay_Shelke A Sept. 30, 2023, 8:12 p.m. OK Java 11 TESTS 10 467 0
226067879 dilip_2512 A Sept. 30, 2023, 6:27 p.m. OK Java 11 TESTS 10 498 0
226077240 ashinagaur11 A Sept. 30, 2023, 7:42 p.m. OK Java 11 TESTS 10 499 0
226095083 Siddharth_78 A Oct. 1, 2023, 1:37 a.m. OK Java 11 TESTS 10 529 0
226074111 mena-rizkalla A Sept. 30, 2023, 7:11 p.m. OK Java 17 TESTS 10 233 409600
226109476 ikun111 A Oct. 1, 2023, 5:14 a.m. OK Java 17 TESTS 10 248 512000
226072522 AKhacks A Sept. 30, 2023, 6:58 p.m. OK Java 17 TESTS 10 249 512000
226068596 mpanyavin A Sept. 30, 2023, 6:31 p.m. OK Java 17 TESTS 10 249 512000
226074552 Harwinvanak A Sept. 30, 2023, 7:15 p.m. OK Java 17 TESTS 10 280 204800
226071478 ashutoshchahar1250 A Sept. 30, 2023, 6:50 p.m. OK Java 17 TESTS 10 296 614400
226073009 imprakharzz A Sept. 30, 2023, 7:02 p.m. OK Java 17 TESTS 10 311 614400
226108983 suyog_73 A Oct. 1, 2023, 5:08 a.m. OK Java 17 TESTS 10 498 819200
226111232 reg64 A Oct. 1, 2023, 5:33 a.m. OK Java 17 TESTS 10 499 1126400
226088789 dawn_raja A Sept. 30, 2023, 10:44 p.m. OK Java 17 TESTS 10 514 819200
226085633 AyazMost A Sept. 30, 2023, 9:37 p.m. OK Java 21 TESTS 10 265 0
226094517 goalboy A Oct. 1, 2023, 1:25 a.m. OK Java 21 TESTS 10 607 0
226094340 Capa A Oct. 1, 2023, 1:22 a.m. OK Java 21 TESTS 10 607 0
226070023 Sumitsingh7 A Sept. 30, 2023, 6:40 p.m. OK Java 8 TESTS 10 124 6144000
226055299 faresbadr316 A Sept. 30, 2023, 5:16 p.m. OK Java 8 TESTS 10 140 0
226110444 rahulsaw_23 A Oct. 1, 2023, 5:25 a.m. OK Java 8 TESTS 10 155 0
226076797 ZakiKurdya A Sept. 30, 2023, 7:38 p.m. OK Java 8 TESTS 10 155 0
226100678 HarshBoghani A Oct. 1, 2023, 3:12 a.m. OK Java 8 TESTS 10 374 0
226110313 vino.goog A Oct. 1, 2023, 5:23 a.m. OK Java 8 TESTS 10 389 0
226070697 Toosid A Sept. 30, 2023, 6:44 p.m. OK Java 8 TESTS 10 389 0
226067424 yadavDipesh A Sept. 30, 2023, 6:25 p.m. OK Java 8 TESTS 10 390 0
226110178 marthapavan2002 A Oct. 1, 2023, 5:22 a.m. OK Java 8 TESTS 10 404 0
226103845 saransh0607 A Oct. 1, 2023, 3:58 a.m. OK Java 8 TESTS 10 405 0
226107307 y4n9b0 A Oct. 1, 2023, 4:46 a.m. OK Kotlin 1.7 TESTS 10 638 62054400
226097774 magician_Y A Oct. 1, 2023, 2:26 a.m. OK MS C++ 2017 TESTS 10 187 0
226094973 Ice-CreamH_ A Oct. 1, 2023, 1:35 a.m. OK MS C++ 2017 TESTS 10 187 0
226102898 CHL5567 A Oct. 1, 2023, 3:44 a.m. OK MS C++ 2017 TESTS 10 202 0
226073444 Hyoketsu_Senpai A Sept. 30, 2023, 7:05 p.m. OK MS C++ 2017 TESTS 10 202 1740800
226105229 ndt280504 A Oct. 1, 2023, 4:18 a.m. OK MS C++ 2017 TESTS 10 218 0
226077154 n.n.n.kz A Sept. 30, 2023, 7:41 p.m. OK PHP TESTS 10 78 0
226092276 DRDIV A Oct. 1, 2023, 12:27 a.m. OK PyPy 3 TESTS 10 264 7680000
226078226 jvatsal0709 A Sept. 30, 2023, 7:53 p.m. OK PyPy 3 TESTS 10 358 9728000
226081928 niketagarwal653 A Sept. 30, 2023, 8:35 p.m. OK PyPy 3 TESTS 10 373 9830400
226112033 kunal_9 A Oct. 1, 2023, 5:42 a.m. OK PyPy 3 TESTS 10 373 9932800
226070372 armfield A Sept. 30, 2023, 6:42 p.m. OK PyPy 3 TESTS 10 374 9728000
226111063 Wanderbrok A Oct. 1, 2023, 5:32 a.m. OK PyPy 3 TESTS 10 374 9830400
226098748 benji_dunn A Oct. 1, 2023, 2:41 a.m. OK PyPy 3 TESTS 10 389 9932800
226103559 ProCoder12 A Oct. 1, 2023, 3:54 a.m. OK PyPy 3-64 TESTS 10 93 5734400
226079097 rmr A Sept. 30, 2023, 8:02 p.m. OK PyPy 3-64 TESTS 10 93 5836800
226079330 milia11 A Sept. 30, 2023, 8:05 p.m. OK PyPy 3-64 TESTS 10 93 6553600
226111828 I_Am_That A Oct. 1, 2023, 5:40 a.m. OK PyPy 3-64 TESTS 10 108 5836800
226111722 I_Am_That A Oct. 1, 2023, 5:39 a.m. OK PyPy 3-64 TESTS 10 108 5836800
226107996 cdg0228 A Oct. 1, 2023, 4:56 a.m. OK PyPy 3-64 TESTS 10 109 6041600
226080521 Kladrr A Sept. 30, 2023, 8:18 p.m. OK PyPy 3-64 TESTS 10 109 8704000
226067763 Kding4noledge A Sept. 30, 2023, 6:27 p.m. OK PyPy 3-64 TESTS 10 124 6041600
226106305 gardengnome A Oct. 1, 2023, 4:33 a.m. OK PyPy 3-64 TESTS 10 124 7168000
226068233 Quick-One A Sept. 30, 2023, 6:29 p.m. OK PyPy 3-64 TESTS 10 124 7168000
226056439 Mapyax A Sept. 30, 2023, 5:19 p.m. OK Python 2 TESTS 10 186 204800
226060713 sanjanapatel238 A Sept. 30, 2023, 5:30 p.m. OK Python 3 TESTS 10 93 409600
226107273 howzz_the_josh A Oct. 1, 2023, 4:46 a.m. OK Python 3 TESTS 10 108 204800
226082581 sinrost A Sept. 30, 2023, 8:44 p.m. OK Python 3 TESTS 10 108 409600
226077222 Ratery A Sept. 30, 2023, 7:42 p.m. OK Python 3 TESTS 10 109 204800
226082614 sinrost A Sept. 30, 2023, 8:45 p.m. OK Python 3 TESTS 10 109 409600
226071393 Shashi_kumar_Vemula A Sept. 30, 2023, 6:49 p.m. OK Python 3 TESTS 10 109 409600
226078539 xfp_17 A Sept. 30, 2023, 7:56 p.m. OK Python 3 TESTS 10 109 512000
226073414 4rn4vg A Sept. 30, 2023, 7:05 p.m. OK Python 3 TESTS 10 109 512000
226054896 magikarp23 A Sept. 30, 2023, 5:14 p.m. OK Python 3 TESTS 10 109 716800
226080511 milia11 A Sept. 30, 2023, 8:18 p.m. OK Python 3 TESTS 10 109 1843200
226071605 0x81 A Sept. 30, 2023, 6:51 p.m. OK Ruby 3 TESTS 10 421 1024000
226069651 0npata A Sept. 30, 2023, 6:37 p.m. OK Rust 2021 TESTS 10 31 4198400

remove filters

Back to search problems