Educational Codeforces Round 118 (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
1613 Educational Codeforces Round 118 (Rated for Div. 2) FINISHED False 7200 98897063 Dec. 1, 2021, 2:35 p.m.

Problems

Solved$
Index
Name
Type
Tags
Community Tag
Rating
( 25405 ) C Poisoned Dagger PROGRAMMING binary search

B'Monocarp is playing yet another computer game. In this game, his character has to kill a dragon. The battle with the dragon lasts 100^{500} seconds, during which Monocarp attacks the dragon with a poisoned dagger. The i -th attack is performed at the beginning of the a_i -th second from the battle start. The dagger itself does not deal damage, but it applies a poison effect on the dragon, which deals 1 damage during each of the next k seconds (starting with the same second when the dragon was stabbed by the dagger). However, if the dragon has already been poisoned, then the dagger updates the poison effect (i.e. cancels the current poison effect and applies a new one). For example, suppose k = 4 , and Monocarp stabs the dragon during the seconds 2 , 4 and 10 . Then the poison effect is applied at the start of the 2 -nd second and deals 1 damage during the 2 -nd and 3 -rd seconds; then, at the beginning of the 4 -th second, the poison effect is reapplied, so it deals exactly 1 damage during the seconds 4 , 5 , 6 and 7 ; then, during the 10 -th second, the poison effect is applied again, and it deals 1 damage during the seconds 10 , 11 , 12 and 13 . In total, the dragon receives 10 damage. Monocarp knows that the dragon has h hit points, and if he deals at least h damage to the dragon during the battle -- he slays the dragon. Monocarp has not decided on the strength of the poison he will use during the battle, so he wants to find the minimum possible value of k (the number of seconds the poison effect lasts) that is enough to deal at least h damage to the dragon. The first line contains a single integer t ( 1 <= t <= 1000 ) -- the number of test cases. The first line of the test case contains two integers n and h ( 1 <= n <= 100; 1 <= h <= 10^{18} ) -- the numb'...

Tutorials

97467

Submissions

Submission Id
Author(s)
Index
Submitted
Verdict
Language
Test Set
Tests Passed
Time taken (ms)
Memory Consumed (bytes)
Tags
Rating
137736934 Mrgglock C Dec. 2, 2021, 2:05 a.m. OK GNU C11 TESTS 20 31 0
137728442 rahulshukla_12 C Dec. 1, 2021, 9:06 p.m. OK GNU C11 TESTS 12 46 0
137702941 deepak_2403 C Dec. 1, 2021, 4:31 p.m. OK GNU C++14 TESTS 12 31 204800
137708722 sarath1405 C Dec. 1, 2021, 4:52 p.m. OK GNU C++14 TESTS 12 31 204800
137747695 kiyoya_21 C Dec. 2, 2021, 5:44 a.m. OK GNU C++14 TESTS 20 46 0
137746568 rahul_reddy7 C Dec. 2, 2021, 5:28 a.m. OK GNU C++14 TESTS 20 46 0
137746135 shengrang C Dec. 2, 2021, 5:22 a.m. OK GNU C++14 TESTS 20 46 0
137745954 HighOnC C Dec. 2, 2021, 5:19 a.m. OK GNU C++14 TESTS 20 46 0
137745629 WUT_CS_SJQ C Dec. 2, 2021, 5:13 a.m. OK GNU C++14 TESTS 20 46 0
137745610 AdityaPandey C Dec. 2, 2021, 5:13 a.m. OK GNU C++14 TESTS 20 46 0
137745031 Cupids_Bow C Dec. 2, 2021, 5:04 a.m. OK GNU C++14 TESTS 20 46 0
137748973 cs20b1018 C Dec. 2, 2021, 6:01 a.m. OK GNU C++14 TESTS 20 46 0
137733868 Lao_Nan_Ren C Dec. 2, 2021, 12:28 a.m. OK GNU C++17 TESTS 20 31 0
137706436 Not_Human C Dec. 1, 2021, 4:39 p.m. OK GNU C++17 TESTS 12 31 102400
137701133 singhdhroov C Dec. 1, 2021, 4:27 p.m. OK GNU C++17 TESTS 12 31 102400
137708938 alsocoastaldemigod C Dec. 1, 2021, 4:53 p.m. OK GNU C++17 TESTS 12 31 102400
137703689 vaidic24 C Dec. 1, 2021, 4:32 p.m. OK GNU C++17 TESTS 12 31 204800
137718242 Anandj123 C Dec. 1, 2021, 6:19 p.m. OK GNU C++17 TESTS 12 31 204800
137710197 DvX5 C Dec. 1, 2021, 5:01 p.m. OK GNU C++17 TESTS 12 31 204800
137729788 d0ct0r.3v1l.k5h1t1j C Dec. 1, 2021, 9:40 p.m. OK GNU C++17 TESTS 12 31 204800
137703249 vg2802 C Dec. 1, 2021, 4:31 p.m. OK GNU C++17 TESTS 12 31 204800
137744016 rahul08xx17 C Dec. 2, 2021, 4:46 a.m. OK GNU C++17 TESTS 20 31 204800
137710592 NO-COMPETITION C Dec. 1, 2021, 5:04 p.m. OK GNU C++17 (64) TESTS 12 15 0
137737644 LacLic C Dec. 2, 2021, 2:26 a.m. OK GNU C++17 (64) TESTS 20 30 102400
137710162 JohnSmith0081 C Dec. 1, 2021, 5:01 p.m. OK GNU C++17 (64) TESTS 12 30 3788800
137716823 Jobaidul C Dec. 1, 2021, 6:02 p.m. OK GNU C++17 (64) TESTS 12 30 8396800
137738281 TAoz1 C Dec. 2, 2021, 2:42 a.m. OK GNU C++17 (64) TESTS 20 31 0
137736869 dblark C Dec. 2, 2021, 2:02 a.m. OK GNU C++17 (64) TESTS 20 31 0
137723319 perfect_coder61 C Dec. 1, 2021, 7:27 p.m. OK GNU C++17 (64) TESTS 12 31 0
137723200 rebel_roar C Dec. 1, 2021, 7:26 p.m. OK GNU C++17 (64) TESTS 12 31 0
137743999 dibyanshu47 C Dec. 2, 2021, 4:46 a.m. OK GNU C++17 (64) TESTS 20 31 0
137743888 umitsaha C Dec. 2, 2021, 4:44 a.m. OK GNU C++17 (64) TESTS 20 31 0
137717254 VladimirZwezdin C Dec. 1, 2021, 6:07 p.m. OK GNU C++20 (64) TESTS 12 15 102400
137719077 SashaT9 C Dec. 1, 2021, 6:29 p.m. OK GNU C++20 (64) TESTS 12 15 7987200
137702235 lopl C Dec. 1, 2021, 4:29 p.m. OK GNU C++20 (64) TESTS 12 30 0
137741049 AC_Mikoto C Dec. 2, 2021, 3:48 a.m. OK GNU C++20 (64) TESTS 20 30 0
137719868 coderdhanraj C Dec. 1, 2021, 6:39 p.m. OK GNU C++20 (64) TESTS 12 30 102400
137704870 Aman_01 C Dec. 1, 2021, 4:34 p.m. OK GNU C++20 (64) TESTS 12 30 307200
137747049 zstu20liuzhe C Dec. 2, 2021, 5:35 a.m. OK GNU C++20 (64) TESTS 20 31 0
137746876 CQTshadow C Dec. 2, 2021, 5:33 a.m. OK GNU C++20 (64) TESTS 20 31 0
137744849 Soumya1 C Dec. 2, 2021, 5 a.m. OK GNU C++20 (64) TESTS 20 31 0
137747849 znb-jfrian C Dec. 2, 2021, 5:46 a.m. OK GNU C++20 (64) TESTS 20 31 0
137703306 singh.yuvraj1047 C Dec. 1, 2021, 4:31 p.m. OK Java 11 TESTS 12 202 0
137714255 henrychenOutlook C Dec. 1, 2021, 5:36 p.m. OK Java 11 TESTS 12 202 0
137704254 cocatishay C Dec. 1, 2021, 4:33 p.m. OK Java 11 TESTS 12 202 0
137713918 hemantmh C Dec. 1, 2021, 5:32 p.m. OK Java 11 TESTS 12 218 0
137739239 Sandy_coder2001 C Dec. 2, 2021, 3:05 a.m. OK Java 11 TESTS 20 218 0
137724308 moto_18 C Dec. 1, 2021, 7:43 p.m. OK Java 11 TESTS 12 218 0
137719783 vinam C Dec. 1, 2021, 6:38 p.m. OK Java 11 TESTS 12 218 0
137718911 Harsh-123 C Dec. 1, 2021, 6:27 p.m. OK Java 11 TESTS 12 218 0
137717888 wizwilzo C Dec. 1, 2021, 6:14 p.m. OK Java 11 TESTS 12 218 0
137712718 vivek_kumar_gupta C Dec. 1, 2021, 5:22 p.m. OK Java 11 TESTS 12 218 0
137707780 akhilesh_2410 C Dec. 1, 2021, 4:46 p.m. OK Java 8 TESTS 12 140 0
137746805 tanishq044 C Dec. 2, 2021, 5:31 a.m. OK Java 8 TESTS 20 140 0
137711400 Hasib_Ullah C Dec. 1, 2021, 5:11 p.m. OK Java 8 TESTS 12 140 0
137711229 gssakash C Dec. 1, 2021, 5:09 p.m. OK Java 8 TESTS 12 155 0
137704720 akshit09 C Dec. 1, 2021, 4:34 p.m. OK Java 8 TESTS 12 155 0
137701805 12345-67890 C Dec. 1, 2021, 4:28 p.m. OK Java 8 TESTS 12 155 0
137701327 Vinay_Goel_ C Dec. 1, 2021, 4:27 p.m. OK Java 8 TESTS 12 155 0
137746716 alibaba C Dec. 2, 2021, 5:30 a.m. OK Java 8 TESTS 20 155 0
137717232 omar_mohammed C Dec. 1, 2021, 6:07 p.m. OK Java 8 TESTS 12 155 0
137711568 gssakash C Dec. 1, 2021, 5:12 p.m. OK Java 8 TESTS 12 156 0
137702735 dextron99 C Dec. 1, 2021, 4:30 p.m. OK Kotlin 1.4 TESTS 12 155 0
137710565 asan_AAA C Dec. 1, 2021, 5:04 p.m. OK MS C++ 2017 TESTS 12 46 0
137706528 DRUN9 C Dec. 1, 2021, 4:40 p.m. OK MS C++ 2017 TESTS 12 124 0
137714611 russian_proger C Dec. 1, 2021, 5:39 p.m. OK MS C++ 2017 TESTS 12 124 0
137712148 Galina_Basalova C Dec. 1, 2021, 5:17 p.m. OK MS C++ 2017 TESTS 12 124 819200
137747528 ACkf C Dec. 2, 2021, 5:42 a.m. OK .NET Core C# TESTS 20 124 3686400
137720827 Parag_AP C Dec. 1, 2021, 6:51 p.m. OK PyPy 3 TESTS 12 155 5836800
137720310 Jobaidul C Dec. 1, 2021, 6:45 p.m. OK PyPy 3 TESTS 12 171 5836800
137735393 hxu10 C Dec. 2, 2021, 1:19 a.m. OK PyPy 3 TESTS 20 202 5427200
137716136 Sachin_Sain C Dec. 1, 2021, 5:55 p.m. OK PyPy 3 TESTS 12 296 7987200
137702862 adus C Dec. 1, 2021, 4:30 p.m. OK PyPy 3 TESTS 12 311 9932800
137705083 ubermensch123 C Dec. 1, 2021, 4:34 p.m. OK PyPy 3 TESTS 12 327 9420800
137728141 whatshisbucket C Dec. 1, 2021, 8:59 p.m. OK PyPy 3 TESTS 12 405 9113600
137746414 aman_xoxo C Dec. 2, 2021, 5:26 a.m. OK PyPy 3 TESTS 20 436 9728000
137725865 KanishkGoel C Dec. 1, 2021, 8:11 p.m. OK PyPy 3 TESTS 12 545 6451200
137708233 abineth C Dec. 1, 2021, 4:49 p.m. OK PyPy 3 TESTS 12 607 8601600
137716051 pedastrian57 C Dec. 1, 2021, 5:54 p.m. OK PyPy 3-64 TESTS 12 186 139878400
137721946 AmericanPyPy C Dec. 1, 2021, 7:06 p.m. OK PyPy 3-64 TESTS 12 187 9830400
137745385 vishesh312 C Dec. 2, 2021, 5:10 a.m. OK PyPy 3-64 TESTS 20 249 10342400
137713480 chiakimio C Dec. 1, 2021, 5:28 p.m. OK PyPy 3-64 TESTS 12 249 11264000
137723322 Up_there C Dec. 1, 2021, 7:27 p.m. OK PyPy 3-64 TESTS 12 265 11264000
137708691 Chobshaw C Dec. 1, 2021, 4:51 p.m. OK PyPy 3-64 TESTS 12 280 10444800
137707447 bodorbolo C Dec. 1, 2021, 4:44 p.m. OK PyPy 3-64 TESTS 12 296 11059200
137710001 tyzzi C Dec. 1, 2021, 5 p.m. OK PyPy 3-64 TESTS 12 311 11571200
137738885 dingovina_off C Dec. 2, 2021, 2:57 a.m. OK PyPy 3-64 TESTS 20 327 10752000
137707089 seraph14 C Dec. 1, 2021, 4:42 p.m. OK PyPy 3-64 TESTS 12 389 10854400
137710687 OLOGY C Dec. 1, 2021, 5:05 p.m. OK Python 2 TESTS 12 1466 2150400
137701276 MIRE C Dec. 1, 2021, 4:27 p.m. OK Python 3 TESTS 12 109 512000
137701146 miruts C Dec. 1, 2021, 4:27 p.m. OK Python 3 TESTS 12 109 512000
137715371 eugalt C Dec. 1, 2021, 5:46 p.m. OK Python 3 TESTS 12 124 204800
137744287 gouravtiwari237 C Dec. 2, 2021, 4:51 a.m. OK Python 3 TESTS 20 171 512000
137719889 jeeveat C Dec. 1, 2021, 6:39 p.m. OK Python 3 TESTS 12 171 512000
137702217 srujan0614 C Dec. 1, 2021, 4:29 p.m. OK Python 3 TESTS 12 186 0
137726115 bansaldeven9 C Dec. 1, 2021, 8:15 p.m. OK Python 3 TESTS 12 186 512000
137738742 NS3081992 C Dec. 2, 2021, 2:54 a.m. OK Python 3 TESTS 20 1325 4096000
137716890 matislu C Dec. 1, 2021, 6:03 p.m. OK Python 3 TESTS 12 1356 512000
137738640 NS3081992 C Dec. 2, 2021, 2:51 a.m. OK Python 3 TESTS 20 1403 4096000
137727457 noogler C Dec. 1, 2021, 8:43 p.m. OK Rust TESTS 12 31 204800
137719273 sansen C Dec. 1, 2021, 6:32 p.m. OK Rust 2021 TESTS 12 30 2150400
137716822 Avanta C Dec. 1, 2021, 6:02 p.m. OK Rust 2021 TESTS 12 62 102400

remove filters

Back to search problems