Codeforces Round 834 (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
1759 Codeforces Round 834 (Div. 3) FINISHED False 8100 68484263 Nov. 18, 2022, 2:35 p.m.

Problems

Solved$
Index
Name
Type
Tags
Community Tag
Rating
( 11186 ) E The Humanoid PROGRAMMING brute force dp sortings

B'There are n astronauts working on some space station. An astronaut with the number i ( 1 <= i <= n ) has power a_i . An evil humanoid has made his way to this space station. The power of this humanoid is equal to h . Also, the humanoid took with him two green serums and one blue serum. In one second , a humanoid can do any of three actions: When an astronaut with power a_i is absorbed, this astronaut disappears, and power of the humanoid increases by lfloor frac{a_i}{2} rfloor , that is, an integer part of frac{a_i}{2} . For example, if a humanoid absorbs an astronaut with power 4 , its power increases by 2 , and if a humanoid absorbs an astronaut with power 7 , its power increases by 3 . After using the green serum, this serum disappears, and the power of the humanoid doubles, so it increases by 2 times. After using the blue serum, this serum disappears, and the power of the humanoid triples, so it increases by 3 times. The humanoid is wondering what the maximum number of astronauts he will be able to absorb if he acts optimally. The first line of each test contains an integer t ( 1 <= t <= 10^4 ) -- number of test cases. The first line of each test case contains integers n ( 1 <= n <= 2 cdot 10^5 ) -- number of astronauts and h ( 1 <= h <= 10^6 ) -- the initial power of the humanoid. The second line of each test case contains n integers a_i ( 1 <= a_i <= 10^8 ) -- powers of astronauts. It is guaranteed that the sum of n for all test cases does not exceed 2 cdot 10^5 . For each test case, in a separate line, print the maximum number of astronauts that a humanoid can absorb. In the first case, you can proceed as follows: '...

Tutorials

109254

Submissions

Submission Id
Author(s)
Index
Submitted
Verdict
Language
Test Set
Tests Passed
Time taken (ms)
Memory Consumed (bytes)
Tags
Rating
181559094 chrisfcoder E Nov. 19, 2022, 4:38 a.m. OK C# 10 TESTS 22 109 16179200
181524990 doublethinker E Nov. 18, 2022, 5:55 p.m. OK C# 10 TESTS 15 171 21504000
181552342 The_New_Kid E Nov. 19, 2022, 2:36 a.m. OK Clang++20 Diagnostics TESTS 22 1013 4198400
181526023 ssvb E Nov. 18, 2022, 6:05 p.m. OK D TESTS 15 93 16793600
181562318 Huyy_0521 E Nov. 19, 2022, 5:24 a.m. OK GNU C++14 TESTS 22 62 819200
181554066 zwh2008 E Nov. 19, 2022, 3:09 a.m. OK GNU C++14 TESTS 22 62 819200
181549404 yayi E Nov. 19, 2022, 1:28 a.m. OK GNU C++14 TESTS 22 62 819200
181521717 Masalmah E Nov. 18, 2022, 5:28 p.m. OK GNU C++14 TESTS 14 62 819200
181519083 ReimuHakurei E Nov. 18, 2022, 5:12 p.m. OK GNU C++14 TESTS 14 62 819200
181515730 keatszhu E Nov. 18, 2022, 4:55 p.m. OK GNU C++14 TESTS 14 62 819200
181512563 Masalmah E Nov. 18, 2022, 4:47 p.m. OK GNU C++14 TESTS 14 62 819200
181553903 nguyenlak1404 E Nov. 19, 2022, 3:05 a.m. OK GNU C++14 TESTS 22 62 921600
181549006 RNGriri E Nov. 19, 2022, 1:17 a.m. OK GNU C++14 TESTS 22 62 3993600
181554717 Cycyes E Nov. 19, 2022, 3:23 a.m. OK GNU C++14 TESTS 22 77 819200
181530361 ChenYanyv E Nov. 18, 2022, 6:50 p.m. OK GNU C++17 TESTS 15 46 819200
181564982 zweix E Nov. 19, 2022, 5:56 a.m. OK GNU C++17 TESTS 22 62 819200
181561553 Z-B-L E Nov. 19, 2022, 5:14 a.m. OK GNU C++17 TESTS 22 62 819200
181549772 kagathal_mmg E Nov. 19, 2022, 1:38 a.m. OK GNU C++17 TESTS 22 62 819200
181537578 medeshi.kristian E Nov. 18, 2022, 8:14 p.m. OK GNU C++17 TESTS 22 62 819200
181520696 beot E Nov. 18, 2022, 5:22 p.m. OK GNU C++17 TESTS 14 62 819200
181553245 mumuxinfei E Nov. 19, 2022, 2:53 a.m. OK GNU C++17 TESTS 22 77 819200
181540700 wellbowledash E Nov. 18, 2022, 9:05 p.m. OK GNU C++17 TESTS 22 77 819200
181540147 xtk_ E Nov. 18, 2022, 8:56 p.m. OK GNU C++17 TESTS 22 77 819200
181534429 L_O_S_E_R E Nov. 18, 2022, 7:34 p.m. OK GNU C++17 TESTS 15 77 819200
181563056 cwxcai E Nov. 19, 2022, 5:33 a.m. OK GNU C++17 (64) TESTS 22 46 819200
181559389 prashar32 E Nov. 19, 2022, 4:42 a.m. OK GNU C++17 (64) TESTS 22 46 819200
181546557 MaGnsi0 E Nov. 18, 2022, 11:49 p.m. OK GNU C++17 (64) TESTS 22 46 819200
181523098 freehandle E Nov. 18, 2022, 5:39 p.m. OK GNU C++17 (64) TESTS 14 46 819200
181526508 omarabdo2003 E Nov. 18, 2022, 6:09 p.m. OK GNU C++17 (64) TESTS 15 46 1228800
181551468 ......77 E Nov. 19, 2022, 2:16 a.m. OK GNU C++17 (64) TESTS 22 46 1638400
181548755 ZrjaK E Nov. 19, 2022, 1:09 a.m. OK GNU C++17 (64) TESTS 22 46 1638400
181533974 XBuriza E Nov. 18, 2022, 7:30 p.m. OK GNU C++17 (64) TESTS 15 46 1638400
181528047 whatisthis132 E Nov. 18, 2022, 6:25 p.m. OK GNU C++17 (64) TESTS 15 46 1638400
181526233 v_s_111 E Nov. 18, 2022, 6:07 p.m. OK GNU C++17 (64) TESTS 15 46 1638400
181521995 AbduSaber E Nov. 18, 2022, 5:30 p.m. OK GNU C++20 (64) TESTS 14 31 819200
181562730 zero.xzp E Nov. 19, 2022, 5:29 a.m. OK GNU C++20 (64) TESTS 22 46 819200
181555984 imoonkin E Nov. 19, 2022, 3:44 a.m. OK GNU C++20 (64) TESTS 22 46 819200
181555286 kitsune E Nov. 19, 2022, 3:32 a.m. OK GNU C++20 (64) TESTS 22 46 819200
181551703 Sevendeis E Nov. 19, 2022, 2:22 a.m. OK GNU C++20 (64) TESTS 22 46 819200
181549778 multipass E Nov. 19, 2022, 1:39 a.m. OK GNU C++20 (64) TESTS 22 46 819200
181549487 fishcathu. E Nov. 19, 2022, 1:31 a.m. OK GNU C++20 (64) TESTS 22 46 819200
181549163 becaido E Nov. 19, 2022, 1:21 a.m. OK GNU C++20 (64) TESTS 22 46 819200
181547935 TGH_yang_xiao E Nov. 19, 2022, 12:43 a.m. OK GNU C++20 (64) TESTS 22 46 819200
181547861 TGH_yang_xiao E Nov. 19, 2022, 12:41 a.m. OK GNU C++20 (64) TESTS 22 46 819200
181551398 minibin E Nov. 19, 2022, 2:15 a.m. OK Java 11 TESTS 22 202 0
181554395 minibin E Nov. 19, 2022, 3:17 a.m. OK Java 11 TESTS 22 249 0
181516776 chenxiaoming E Nov. 18, 2022, 5 p.m. OK Java 11 TESTS 14 249 0
181521669 wat2 E Nov. 18, 2022, 5:28 p.m. OK Java 11 TESTS 14 264 0
181513334 chenxiaoming E Nov. 18, 2022, 4:48 p.m. OK Java 11 TESTS 14 264 0
181559373 x21svage E Nov. 19, 2022, 4:42 a.m. OK Java 11 TESTS 22 280 3276800
181560622 dhruv_07 E Nov. 19, 2022, 5 a.m. OK Java 11 TESTS 22 296 819200
181554129 minibin E Nov. 19, 2022, 3:10 a.m. OK Java 11 TESTS 22 296 3788800
181534077 peiyeliu E Nov. 18, 2022, 7:31 p.m. OK Java 11 TESTS 15 296 7168000
181557788 __Serendipity E Nov. 19, 2022, 4:15 a.m. OK Java 11 TESTS 22 327 26214400
181554887 tbs-jyy E Nov. 19, 2022, 3:26 a.m. OK Java 17 TESTS 22 248 819200
181543505 Mamimi E Nov. 18, 2022, 10:08 p.m. OK Java 17 TESTS 22 280 921600
181518359 Sri__j E Nov. 18, 2022, 5:08 p.m. OK Java 17 TESTS 14 358 54067200
181558664 dbtalaviya E Nov. 19, 2022, 4:31 a.m. OK Java 17 TESTS 22 499 1126400
181555535 tbs-jyy E Nov. 19, 2022, 3:37 a.m. OK Java 17 TESTS 22 530 1228800
181557640 TJNTsb E Nov. 19, 2022, 4:13 a.m. OK Java 17 TESTS 22 545 921600
181557661 mumuxinfei E Nov. 19, 2022, 4:14 a.m. OK Java 17 TESTS 22 545 1024000
181539357 souzajack15 E Nov. 18, 2022, 8:42 p.m. OK Java 17 TESTS 22 561 921600
181539409 souzajack15 E Nov. 18, 2022, 8:43 p.m. OK Java 17 TESTS 22 577 3481600
181520641 Abhinavrajhans E Nov. 18, 2022, 5:21 p.m. OK Java 17 TESTS 14 592 6144000
181530922 kanumba E Nov. 18, 2022, 6:57 p.m. OK Java 8 TESTS 15 124 0
181537883 Mohamed_A7med E Nov. 18, 2022, 8:19 p.m. OK Java 8 TESTS 22 202 18841600
181521400 Koka E Nov. 18, 2022, 5:26 p.m. OK Java 8 TESTS 14 217 18841600
181551557 kewosihuzuobudao E Nov. 19, 2022, 2:18 a.m. OK Java 8 TESTS 22 218 2867200
181551453 kewosihuzuobudao E Nov. 19, 2022, 2:16 a.m. OK Java 8 TESTS 22 233 4812800
181558688 duyipeng E Nov. 19, 2022, 4:31 a.m. OK Java 8 TESTS 22 249 3993600
181556421 ikillmyself E Nov. 19, 2022, 3:52 a.m. OK Java 8 TESTS 22 249 6348800
181519837 vaibhav_1710 E Nov. 18, 2022, 5:16 p.m. OK Java 8 TESTS 14 249 11776000
181538136 Ahmad_Hoseiny E Nov. 18, 2022, 8:23 p.m. OK Java 8 TESTS 22 264 4915200
181537348 Kaldaruly E Nov. 18, 2022, 8:11 p.m. OK Java 8 TESTS 22 265 166707200
181523052 hotkey E Nov. 18, 2022, 5:38 p.m. OK Kotlin 1.6 TESTS 14 592 17817600
181522497 hotkey E Nov. 18, 2022, 5:34 p.m. OK Kotlin 1.6 TESTS 14 1044 36966400
181511406 ashkan_d13 E Nov. 18, 2022, 4:44 p.m. OK MS C++ 2017 TESTS 14 218 819200
181510184 kirill146 E Nov. 18, 2022, 4:42 p.m. OK MS C++ 2017 TESTS 14 218 1638400
181512932 kaskelot E Nov. 18, 2022, 4:47 p.m. OK MS C++ 2017 TESTS 14 420 44953600
181565367 mohfasalih E Nov. 19, 2022, 6 a.m. OK PyPy 3 TESTS 22 296 17817600
181536983 hash1023 E Nov. 18, 2022, 8:06 p.m. OK PyPy 3 TESTS 15 296 21913600
181517618 ishaanshri95 E Nov. 18, 2022, 5:04 p.m. OK PyPy 3 TESTS 14 592 19353600
181543831 Lammert0907 E Nov. 18, 2022, 10:16 p.m. OK PyPy 3 TESTS 22 811 18329600
181516435 raushnn E Nov. 18, 2022, 4:58 p.m. OK PyPy 3-64 TESTS 14 155 27340800
181551941 MistaAsh E Nov. 19, 2022, 2:27 a.m. OK PyPy 3-64 TESTS 22 155 31436800
181513022 ehdgus6931 E Nov. 18, 2022, 4:47 p.m. OK PyPy 3-64 TESTS 14 170 27955200
181517059 biglunchdude E Nov. 18, 2022, 5:01 p.m. OK PyPy 3-64 TESTS 14 171 29798400
181542043 generalPurpose E Nov. 18, 2022, 9:34 p.m. OK PyPy 3-64 TESTS 22 187 29184000
181516827 gesuta E Nov. 18, 2022, 5 p.m. OK PyPy 3-64 TESTS 14 187 29798400
181524744 FrozenKandy E Nov. 18, 2022, 5:53 p.m. OK PyPy 3-64 TESTS 15 202 27648000
181514830 sangram03 E Nov. 18, 2022, 4:52 p.m. OK PyPy 3-64 TESTS 14 218 23449600
181511356 m0tbka E Nov. 18, 2022, 4:44 p.m. OK PyPy 3-64 TESTS 14 233 27648000
181523298 crapcode E Nov. 18, 2022, 5:40 p.m. OK PyPy 3-64 TESTS 14 249 27340800
181523417 bekeygul E Nov. 18, 2022, 5:41 p.m. OK Python 3 TESTS 14 296 15462400
181515198 debashishmahanta1 E Nov. 18, 2022, 4:53 p.m. OK Python 3 TESTS 14 296 15462400
181559186 meohenbk E Nov. 19, 2022, 4:39 a.m. OK Python 3 TESTS 22 342 16179200
181518862 hith_am E Nov. 18, 2022, 5:11 p.m. OK Python 3 TESTS 14 420 15462400
181534518 a2bailey E Nov. 18, 2022, 7:35 p.m. OK Python 3 TESTS 15 436 15052800
181545719 Alyalsayed E Nov. 18, 2022, 11:16 p.m. OK Python 3 TESTS 22 436 15462400
181512848 SuperStas0 E Nov. 18, 2022, 4:47 p.m. OK Python 3 TESTS 14 529 15462400
181524265 helen_strakhal E Nov. 18, 2022, 5:49 p.m. OK Python 3 TESTS 15 592 13209600
181510624 AhmadElRuby E Nov. 18, 2022, 4:43 p.m. OK Ruby 3 TESTS 14 545 21708800
181556140 Spheniscine E Nov. 19, 2022, 3:47 a.m. OK Rust 2021 TESTS 22 31 2457600
181544748 liut E Nov. 18, 2022, 10:43 p.m. OK Rust 2021 TESTS 22 46 2457600

remove filters

Back to search problems