Educational Codeforces Round 162 (Rated for 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
1923 Educational Codeforces Round 162 (Rated for Div. 2) FINISHED False 7200 28481063 Feb. 23, 2024, 2:35 p.m.

Problems

Solved$
Index
Name
Type
Tags
Community Tag
Rating
( 18165 ) B Monsters Attack! PROGRAMMING dp greedy implementation

B'You are playing a computer game. The current level of this game can be modeled as a straight line. Your character is in point 0 of this line. There are n monsters trying to kill your character; the i -th monster has health equal to a_i and is initially in the point x_i . Every second, the following happens: Can you survive and kill all n monsters without letting any of them reach your character? The first line of the input contains one integer t ( 1 <= t <= 3 cdot 10^4 ) -- the number of test cases. Each test case consists of three lines: Additional constraint on the input: the sum of n over all test cases does not exceed 3 cdot 10^5 . For each test case, print YES if you can kill all n monsters before they reach your character, or NO otherwise. You can output each letter of the answer in any case (upper or lower). For example, the strings yEs, yes, Yes, and YES will all be recognized as positive responses. In the first example, you can act as follows: In the second example, you can fire only 1 bullet, so you can kill only one of the two monsters during the 1 -st second. Then, the remaining monster moves closer and kills your character. '...

Tutorials

Educational Codeforces Round 162 Editorial

Submissions

Submission Id
Author(s)
Index
Submitted
Verdict
Language
Test Set
Tests Passed
Time taken (ms)
Memory Consumed (bytes)
Tags
Rating
247992963 7h3 B Feb. 23, 2024, 5:47 p.m. OK Clang++17 Diagnostics TESTS 4 295 7987200
247986216 horse1 B Feb. 23, 2024, 5:05 p.m. OK GNU C11 TESTS 4 140 4505600
247992395 7h3 B Feb. 23, 2024, 5:43 p.m. OK GNU C11 TESTS 4 156 2457600
247991521 7h3 B Feb. 23, 2024, 5:38 p.m. OK GNU C11 TESTS 4 156 2457600
248032172 ashab.tanim B Feb. 24, 2024, 1:44 a.m. OK GNU C11 TESTS 4 171 2355200
247996038 Labib_Rafid B Feb. 23, 2024, 6:07 p.m. OK GNU C++17 TESTS 4 139 2355200
248025569 Skt_Kun B Feb. 23, 2024, 11:11 p.m. OK GNU C++17 TESTS 4 139 3584000
248032445 md_afique B Feb. 24, 2024, 1:50 a.m. OK GNU C++17 TESTS 4 140 3584000
247987240 code520_ B Feb. 23, 2024, 5:11 p.m. OK GNU C++17 TESTS 4 140 3584000
248037772 Fozsalors B Feb. 24, 2024, 3:29 a.m. OK GNU C++17 TESTS 4 140 3584000
247982842 rajatgupta05 B Feb. 23, 2024, 4:49 p.m. OK GNU C++17 TESTS 4 155 3584000
248003227 Actium B Feb. 23, 2024, 6:57 p.m. OK GNU C++17 TESTS 4 155 3584000
247997698 Ebrafat B Feb. 23, 2024, 6:19 p.m. OK GNU C++17 TESTS 4 155 4812800
248035408 bqlp B Feb. 24, 2024, 2:52 a.m. OK GNU C++17 TESTS 4 155 4812800
248029541 xhgua B Feb. 24, 2024, 12:38 a.m. OK GNU C++17 TESTS 4 155 4812800
248039287 Md_Minhaj B Feb. 24, 2024, 3:53 a.m. OK GNU C++17 (64) TESTS 4 77 4812800
248029299 6T_T6 B Feb. 24, 2024, 12:34 a.m. OK GNU C++17 (64) TESTS 4 78 7168000
248005172 Ephraim_Youssef_K B Feb. 23, 2024, 7:12 p.m. OK GNU C++17 (64) TESTS 4 93 3584000
248033038 Arrogant_sword B Feb. 24, 2024, 2:02 a.m. OK GNU C++17 (64) TESTS 4 93 4812800
248036750 Belief_yfly B Feb. 24, 2024, 3:13 a.m. OK GNU C++17 (64) TESTS 4 93 7168000
248049763 apricity B Feb. 24, 2024, 5:58 a.m. OK GNU C++17 (64) TESTS 4 93 7270400
247999227 Aayush_Ryan B Feb. 23, 2024, 6:29 p.m. OK GNU C++17 (64) TESTS 4 93 13926400
247982343 li_hui B Feb. 23, 2024, 4:47 p.m. OK GNU C++17 (64) TESTS 4 93 24064000
248038406 ASC87_- B Feb. 24, 2024, 3:40 a.m. OK GNU C++17 (64) TESTS 4 108 2355200
248035879 jalya B Feb. 24, 2024, 3 a.m. OK GNU C++17 (64) TESTS 4 108 2355200
247997740 Ferrriccc B Feb. 23, 2024, 6:19 p.m. OK GNU C++20 (64) TESTS 4 31 7475200
247987803 Kirigakure_Saizo B Feb. 23, 2024, 5:14 p.m. OK GNU C++20 (64) TESTS 4 46 2457600
248003269 Lu_Kai B Feb. 23, 2024, 6:58 p.m. OK GNU C++20 (64) TESTS 4 61 2355200
248000901 TheRunuwayDino B Feb. 23, 2024, 6:41 p.m. OK GNU C++20 (64) TESTS 4 62 3584000
247979017 RutvikYourDad B Feb. 23, 2024, 4:36 p.m. OK GNU C++20 (64) TESTS 4 62 3584000
247998533 valolagena B Feb. 23, 2024, 6:24 p.m. OK GNU C++20 (64) TESTS 4 62 4812800
247999037 Lu_Kai B Feb. 23, 2024, 6:28 p.m. OK GNU C++20 (64) TESTS 4 77 2355200
248001510 Lu_Kai B Feb. 23, 2024, 6:45 p.m. OK GNU C++20 (64) TESTS 4 77 2355200
248030414 7oodaaa B Feb. 24, 2024, 1 a.m. OK GNU C++20 (64) TESTS 4 77 2355200
248018530 PyAlpha B Feb. 23, 2024, 9:20 p.m. OK GNU C++20 (64) TESTS 4 77 3584000
247984775 JOKEmakeR B Feb. 23, 2024, 4:58 p.m. OK Go TESTS 4 249 11264000
247990087 leeeezp B Feb. 23, 2024, 5:28 p.m. OK Go TESTS 4 295 11468800
247979901 ajayg3059 B Feb. 23, 2024, 4:38 p.m. OK Go TESTS 4 311 9728000
247987701 leeeezp B Feb. 23, 2024, 5:13 p.m. OK Go TESTS 4 312 9728000
248008304 AkshatSaxena_05 B Feb. 23, 2024, 7:37 p.m. OK Java 21 TESTS 4 264 0
248048488 amit_roy B Feb. 24, 2024, 5:46 a.m. OK Java 21 TESTS 4 312 16588800
247991802 999ms_Clutch B Feb. 23, 2024, 5:39 p.m. OK Java 21 TESTS 4 327 42291200
247978237 terra_sapien B Feb. 23, 2024, 4:34 p.m. OK Java 21 TESTS 4 374 8704000
247980467 4ALL B Feb. 23, 2024, 4:40 p.m. OK Java 21 TESTS 4 374 11980800
248032345 kbliu B Feb. 24, 2024, 1:47 a.m. OK Java 21 TESTS 4 389 16588800
248001022 shaili17 B Feb. 23, 2024, 6:42 p.m. OK Java 21 TESTS 4 389 27238400
247994208 DriveLilah B Feb. 23, 2024, 5:55 p.m. OK Java 21 TESTS 4 405 17612800
248042062 dear_earth B Feb. 24, 2024, 4:33 a.m. OK Java 21 TESTS 4 421 18739200
248012580 dineshchandran311 B Feb. 23, 2024, 8:16 p.m. OK Java 21 TESTS 4 436 27340800
248014097 Sumitsingh7 B Feb. 23, 2024, 8:30 p.m. OK Java 8 TESTS 4 280 19968000
247994213 Yousef_Badr B Feb. 23, 2024, 5:55 p.m. OK Java 8 TESTS 4 280 24064000
247995865 prakhar_30 B Feb. 23, 2024, 6:06 p.m. OK Java 8 TESTS 4 327 25600000
248047484 abhayrajnegi0416 B Feb. 24, 2024, 5:36 a.m. OK Java 8 TESTS 4 373 27340800
248046645 Vaibhav1610 B Feb. 24, 2024, 5:28 a.m. OK Java 8 TESTS 4 748 0
247978700 saurabhdaju B Feb. 23, 2024, 4:34 p.m. OK Java 8 TESTS 4 811 0
247986202 vishesh9096 B Feb. 23, 2024, 5:05 p.m. OK Java 8 TESTS 4 904 10240000
248012844 ankitgupta92368892 B Feb. 23, 2024, 8:18 p.m. OK Java 8 TESTS 4 966 36761600
247985762 harshitha_77 B Feb. 23, 2024, 5:03 p.m. OK Java 8 TESTS 4 1044 17203200
247984965 vishesh9096 B Feb. 23, 2024, 4:59 p.m. OK Java 8 TESTS 4 1045 56524800
248011356 Crazy67 B Feb. 23, 2024, 8:04 p.m. OK Kotlin 1.9 TESTS 4 482 47411200
248042889 anuragpandey87187 B Feb. 24, 2024, 4:45 a.m. OK Kotlin 1.9 TESTS 4 608 38604800
247983650 Neko_Vollerei B Feb. 23, 2024, 4:53 p.m. OK Kotlin 1.9 TESTS 4 701 38297600
247986865 Abhay_Sharma B Feb. 23, 2024, 5:08 p.m. OK MS C++ 2017 TESTS 4 421 7065600
248022167 kaaamKaaaam B Feb. 23, 2024, 10:10 p.m. OK MS C++ 2017 TESTS 4 483 7168000
248041577 aluckyboy B Feb. 24, 2024, 4:27 a.m. OK MS C++ 2017 TESTS 4 1855 2457600
248033308 yertugan06 B Feb. 24, 2024, 2:08 a.m. OK PyPy 3-64 TESTS 4 202 46694400
248008794 NitroSpear B Feb. 23, 2024, 7:41 p.m. OK PyPy 3-64 TESTS 4 202 47513600
248009019 NitroSpear B Feb. 23, 2024, 7:43 p.m. OK PyPy 3-64 TESTS 4 202 47718400
247988886 gardengnome B Feb. 23, 2024, 5:20 p.m. OK PyPy 3-64 TESTS 4 202 54579200
247982800 RobinFromTheHood B Feb. 23, 2024, 4:49 p.m. OK PyPy 3-64 TESTS 4 218 54579200
247993406 yertugan06 B Feb. 23, 2024, 5:50 p.m. OK PyPy 3-64 TESTS 4 249 47308800
248032266 shash4321 B Feb. 24, 2024, 1:46 a.m. OK PyPy 3-64 TESTS 4 280 182784000
248019806 DarkTemplarDrop B Feb. 23, 2024, 9:36 p.m. OK PyPy 3-64 TESTS 4 295 38912000
247978655 kumatelila26 B Feb. 23, 2024, 4:34 p.m. OK PyPy 3-64 TESTS 4 296 63078400
247980897 AAE B Feb. 23, 2024, 4:42 p.m. OK PyPy 3-64 TESTS 4 327 50995200
248026960 OLOGY B Feb. 23, 2024, 11:41 p.m. OK Python 2 TESTS 4 483 26828800
247983255 sandeepreddy2205 B Feb. 23, 2024, 4:51 p.m. OK Python 3 TESTS 4 374 50688000
248035042 Merazul-Islam B Feb. 24, 2024, 2:45 a.m. OK Python 3 TESTS 4 374 52019200
247991449 tariq05 B Feb. 23, 2024, 5:37 p.m. OK Python 3 TESTS 4 374 52019200
247978640 wehniwheniwnheiwhnie B Feb. 23, 2024, 4:34 p.m. OK Python 3 TESTS 4 374 52019200
248003873 voldemort__baba B Feb. 23, 2024, 7:02 p.m. OK Python 3 TESTS 4 389 52019200
248001762 mythicalrocket B Feb. 23, 2024, 6:47 p.m. OK Python 3 TESTS 4 389 52121600
247987031 saigumma B Feb. 23, 2024, 5:09 p.m. OK Python 3 TESTS 4 390 52121600
247992343 sunkasupriya123 B Feb. 23, 2024, 5:43 p.m. OK Python 3 TESTS 4 390 56217600
247994626 husseainshalaby6 B Feb. 23, 2024, 5:58 p.m. OK Python 3 TESTS 4 405 49868800
247986197 coder.sy B Feb. 23, 2024, 5:05 p.m. OK Python 3 TESTS 4 405 52121600
247989172 0x81 B Feb. 23, 2024, 5:22 p.m. OK Ruby 3 TESTS 4 1029 63897600
247994471 Hyrulia B Feb. 23, 2024, 5:57 p.m. OK Rust 2021 TESTS 4 15 13721600
248001544 vstiff B Feb. 23, 2024, 6:45 p.m. OK Rust 2021 TESTS 4 61 22630400
247991600 KasodaniKyouko B Feb. 23, 2024, 5:38 p.m. OK Rust 2021 TESTS 4 77 44032000
248015448 DreadedHippy B Feb. 23, 2024, 8:45 p.m. OK Rust 2021 TESTS 4 171 9318400
248014126 DreadedHippy B Feb. 23, 2024, 8:31 p.m. OK Rust 2021 TESTS 4 171 9318400
248011286 DreadedHippy B Feb. 23, 2024, 8:03 p.m. OK Rust 2021 TESTS 4 202 9318400
248011011 DreadedHippy B Feb. 23, 2024, 8:01 p.m. OK Rust 2021 TESTS 4 249 9318400
248009465 DreadedHippy B Feb. 23, 2024, 7:47 p.m. OK Rust 2021 TESTS 4 265 9318400
248013864 DreadedHippy B Feb. 23, 2024, 8:28 p.m. OK Rust 2021 TESTS 4 343 9318400

remove filters

Back to search problems