Educational Codeforces Round 117 (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
1612 Educational Codeforces Round 117 (Rated for Div. 2) FINISHED False 7200 99606263 Nov. 22, 2021, 9:35 a.m.

Problems

Solved$
Index
Name
Type
Tags
Community Tag
Rating
( 18444 ) C Chat Ban PROGRAMMING binary search math

B"You are a usual chat user on the most famous streaming platform. Of course, there are some moments when you just want to chill and spam something. More precisely, you want to spam the emote triangle of size k . It consists of 2k-1 messages. The first message consists of one emote, the second one -- of two emotes, ..., the k -th one -- of k emotes, the k+1 -th one -- of k-1 emotes, ..., and the last one -- of one emote. For example, the emote triangle for k=3 consists of 5 messages: Of course, most of the channels have auto moderation. Auto moderator of the current chat will ban you right after you spam at least x emotes in succession (you can assume you are the only user in the chat). Now you are interested -- how many messages will you write before getting banned? Or maybe you will not get banned at all (i.e. will write all 2k-1 messages and complete your emote triangle successfully)? Note that if you get banned as a result of writing a message, this message is also counted. You have to answer t independent test cases. The first line of the input contains one integer t ( 1 <= t <= 10^4 ) -- the number of test cases. The next t lines describe test cases. The only line of the test case contains integers k and x ( 1 <= k <= 10^9; 1 <= x <= 10^{18} ). For each test case, print the number of messages you will write before getting banned for the corresponding values k and x . Let's analyze the test cases of the example. "...

Tutorials

97164

Submissions

Submission Id
Author(s)
Index
Submitted
Verdict
Language
Test Set
Tests Passed
Time taken (ms)
Memory Consumed (bytes)
Tags
Rating
136538971 ruban C Nov. 22, 2021, 4:59 p.m. OK FPC TESTS 3 31 0
136536609 Mrgglock C Nov. 22, 2021, 4:28 p.m. OK GNU C11 TESTS 3 15 0
136535679 RobotWizard420 C Nov. 22, 2021, 4:16 p.m. OK GNU C11 TESTS 3 46 0
136485086 1435730 C Nov. 22, 2021, 12:46 p.m. OK GNU C11 TESTS 3 46 0
136484483 dianzikejidaxue C Nov. 22, 2021, 12:41 p.m. OK GNU C11 TESTS 3 46 0
136465970 Pizzaroot C Nov. 22, 2021, 11:22 a.m. OK GNU C11 TESTS 3 61 0
136481543 LittleNewb C Nov. 22, 2021, 12:13 p.m. OK GNU C11 TESTS 3 62 0
136540828 sinister_787 C Nov. 22, 2021, 5:25 p.m. OK GNU C++14 TESTS 3 0 0
136525119 minsiqi C Nov. 22, 2021, 2:15 p.m. OK GNU C++14 TESTS 3 0 0
136494166 Aaditya90 C Nov. 22, 2021, 1:05 p.m. OK GNU C++14 TESTS 3 0 0
136481590 rajsrivastava C Nov. 22, 2021, 12:13 p.m. OK GNU C++14 TESTS 3 0 0
136481356 zhuzhirui2005 C Nov. 22, 2021, 12:11 p.m. OK GNU C++14 TESTS 3 0 0
136478811 zxz__ C Nov. 22, 2021, 11:51 a.m. OK GNU C++14 TESTS 3 0 0
136477266 rezn0v C Nov. 22, 2021, 11:41 a.m. OK GNU C++14 TESTS 3 0 0
136565389 n1phuclq C Nov. 23, 2021, 3:53 a.m. OK GNU C++14 TESTS 3 0 0
136563252 anmit007 C Nov. 23, 2021, 3:02 a.m. OK GNU C++14 TESTS 3 0 0
136561241 Lunat C Nov. 23, 2021, 2:07 a.m. OK GNU C++14 TESTS 3 0 0
136551962 Noob_code_r_2020 C Nov. 22, 2021, 8:58 p.m. OK GNU C++17 TESTS 3 0 0
136542364 MewAtomic C Nov. 22, 2021, 5:48 p.m. OK GNU C++17 TESTS 3 0 0
136537456 M7md_Said C Nov. 22, 2021, 4:39 p.m. OK GNU C++17 TESTS 3 0 0
136536384 Mina_Eissa C Nov. 22, 2021, 4:25 p.m. OK GNU C++17 TESTS 3 0 0
136529564 MewAtomic C Nov. 22, 2021, 3:01 p.m. OK GNU C++17 TESTS 3 0 0
136562089 cainghienwibu C Nov. 23, 2021, 2:31 a.m. OK GNU C++17 TESTS 3 0 0
136564656 milan_s1 C Nov. 23, 2021, 3:35 a.m. OK GNU C++17 TESTS 3 0 0
136561277 Husanboy C Nov. 23, 2021, 2:08 a.m. OK GNU C++17 TESTS 3 0 0
136559713 Silence_ C Nov. 23, 2021, 1:11 a.m. OK GNU C++17 TESTS 3 0 0
136558076 wusimin C Nov. 23, 2021, midnight OK GNU C++17 TESTS 3 0 0
136550631 keijak C Nov. 22, 2021, 8:22 p.m. OK GNU C++17 (64) TESTS 3 0 0
136566228 203954 C Nov. 23, 2021, 4:13 a.m. OK GNU C++17 (64) TESTS 3 0 0
136565644 Niloy_Das_19 C Nov. 23, 2021, 3:59 a.m. OK GNU C++17 (64) TESTS 3 0 0
136562258 guo3125976202 C Nov. 23, 2021, 2:36 a.m. OK GNU C++17 (64) TESTS 3 0 0
136555483 antguz C Nov. 22, 2021, 9:58 p.m. OK GNU C++17 (64) TESTS 3 0 0
136552649 jenkinsser C Nov. 22, 2021, 9:20 p.m. OK GNU C++17 (64) TESTS 3 0 0
136540747 umitsaha C Nov. 22, 2021, 5:24 p.m. OK GNU C++17 (64) TESTS 3 0 0
136537889 ShadowLight C Nov. 22, 2021, 4:44 p.m. OK GNU C++17 (64) TESTS 3 0 0
136534383 zen147 C Nov. 22, 2021, 3:59 p.m. OK GNU C++17 (64) TESTS 3 0 0
136534315 wasfia-_- C Nov. 22, 2021, 3:59 p.m. OK GNU C++17 (64) TESTS 3 0 0
136551205 Zorag44 C Nov. 22, 2021, 8:37 p.m. OK GNU C++20 (64) TESTS 3 0 0
136549782 UpAndDown C Nov. 22, 2021, 8 p.m. OK GNU C++20 (64) TESTS 3 0 0
136545431 vikassnwl C Nov. 22, 2021, 6:34 p.m. OK GNU C++20 (64) TESTS 3 0 0
136540925 wjli C Nov. 22, 2021, 5:27 p.m. OK GNU C++20 (64) TESTS 3 0 0
136537751 blagoemes C Nov. 22, 2021, 4:42 p.m. OK GNU C++20 (64) TESTS 3 0 0
136552681 Brodicico C Nov. 22, 2021, 9:21 p.m. OK GNU C++20 (64) TESTS 3 0 0
136566640 rushitote C Nov. 23, 2021, 4:22 a.m. OK GNU C++20 (64) TESTS 3 0 0
136568158 jainam_sogani C Nov. 23, 2021, 4:58 a.m. OK GNU C++20 (64) TESTS 3 0 0
136569234 calmcoolcoder C Nov. 23, 2021, 5:19 a.m. OK GNU C++20 (64) TESTS 3 0 0
136570013 ankushbhagat14 C Nov. 23, 2021, 5:32 a.m. OK GNU C++20 (64) TESTS 3 0 0
136551148 amanpatel23 C Nov. 22, 2021, 8:35 p.m. OK Java 11 TESTS 3 171 0
136560896 kokochikochi C Nov. 23, 2021, 1:55 a.m. OK Java 11 TESTS 3 186 0
136545673 shankha123 C Nov. 22, 2021, 6:38 p.m. OK Java 11 TESTS 3 186 0
136522376 procrastinate7 C Nov. 22, 2021, 1:49 p.m. OK Java 11 TESTS 3 186 0
136524651 _Body C Nov. 22, 2021, 2:10 p.m. OK Java 11 TESTS 3 187 0
136547466 RadheKrishna1815 C Nov. 22, 2021, 7:10 p.m. OK Java 11 TESTS 3 187 0
136480612 BS_khakim C Nov. 22, 2021, 12:05 p.m. OK Java 11 TESTS 3 187 0
136547664 solo07 C Nov. 22, 2021, 7:14 p.m. OK Java 11 TESTS 3 202 0
136569433 nitin23329 C Nov. 23, 2021, 5:23 a.m. OK Java 11 TESTS 3 202 0
136561697 jovial3 C Nov. 23, 2021, 2:20 a.m. OK Java 11 TESTS 3 202 0
136521254 Swapniltri C Nov. 22, 2021, 1:37 p.m. OK Java 8 TESTS 3 93 0
136555300 nitinrishab2000 C Nov. 22, 2021, 9:51 p.m. OK Java 8 TESTS 3 93 0
136534706 ITSpecialist C Nov. 22, 2021, 4:04 p.m. OK Java 8 TESTS 3 109 0
136466540 g906360 C Nov. 22, 2021, 11:23 a.m. OK Java 8 TESTS 3 109 0
136558876 WangRuiCong C Nov. 23, 2021, 12:36 a.m. OK Java 8 TESTS 3 124 0
136467486 anshulchou_123 C Nov. 22, 2021, 11:26 a.m. OK Java 8 TESTS 3 124 13926400
136479198 Vinay_Goel_ C Nov. 22, 2021, 11:54 a.m. OK Java 8 TESTS 3 140 0
136565497 suriyaa_13 C Nov. 23, 2021, 3:56 a.m. OK Java 8 TESTS 3 171 0
136484005 shinghalrishabh C Nov. 22, 2021, 12:36 p.m. OK Java 8 TESTS 3 171 0
136466436 NussairHroub C Nov. 22, 2021, 11:23 a.m. OK Java 8 TESTS 3 186 0
136549883 PavelChadnov C Nov. 22, 2021, 8:03 p.m. OK Kotlin 1.4 TESTS 3 155 0
136526422 linxiaotian C Nov. 22, 2021, 2:27 p.m. OK Kotlin 1.4 TESTS 3 186 1945600
136530937 BruteForcee C Nov. 22, 2021, 3:18 p.m. OK Kotlin 1.5 TESTS 3 264 0
136485727 psn2706 C Nov. 22, 2021, 12:52 p.m. OK MS C++ 2017 TESTS 3 46 0
136483684 scnu_sss C Nov. 22, 2021, 12:33 p.m. OK MS C++ 2017 TESTS 3 46 0
136539183 diajutcum C Nov. 22, 2021, 5:01 p.m. OK MS C++ 2017 TESTS 3 61 0
136567616 no_ac_no_sleep C Nov. 23, 2021, 4:46 a.m. OK MS C++ 2017 TESTS 3 61 0
136531438 nikuradze2006 C Nov. 22, 2021, 3:24 p.m. OK MS C++ 2017 TESTS 3 61 0
136467221 serglag C Nov. 22, 2021, 11:25 a.m. OK MS C++ 2017 TESTS 3 62 0
136530582 UA_ftw C Nov. 22, 2021, 3:13 p.m. OK MS C++ 2017 TESTS 3 62 0
136528852 HBLAI C Nov. 22, 2021, 2:53 p.m. OK MS C++ 2017 TESTS 3 62 0
136477753 Tangerine C Nov. 22, 2021, 11:44 a.m. OK MS C++ 2017 TESTS 3 62 0
136530390 UA_ftw C Nov. 22, 2021, 3:11 p.m. OK MS C++ 2017 TESTS 3 77 0
136483777 TlMegalovania C Nov. 22, 2021, 12:34 p.m. OK .NET Core C# TESTS 3 155 3072000
136563268 hxu10 C Nov. 23, 2021, 3:02 a.m. OK PyPy 3 TESTS 3 170 6860800
136539959 dominator1234 C Nov. 22, 2021, 5:13 p.m. OK PyPy 3 TESTS 3 171 5120000
136478242 28th C Nov. 22, 2021, 11:47 a.m. OK PyPy 3 TESTS 3 171 6246400
136540379 whatshisbucket C Nov. 22, 2021, 5:19 p.m. OK PyPy 3 TESTS 3 171 6656000
136467453 StillMortal C Nov. 22, 2021, 11:26 a.m. OK PyPy 3 TESTS 3 186 4608000
136471217 gennadylaptev C Nov. 22, 2021, 11:34 a.m. OK PyPy 3 TESTS 3 186 6758400
136542900 sw_enthusiast C Nov. 22, 2021, 5:55 p.m. OK PyPy 3 TESTS 3 202 70860800
136483572 8by8 C Nov. 22, 2021, 12:32 p.m. OK PyPy 3 TESTS 3 218 6758400
136535903 Coding_RDX C Nov. 22, 2021, 4:19 p.m. OK PyPy 3 TESTS 3 233 8192000
136470937 armusman2 C Nov. 22, 2021, 11:34 a.m. OK PyPy 3 TESTS 3 264 6451200
136517851 YMSeah C Nov. 22, 2021, 1:22 p.m. OK PyPy 3-64 TESTS 3 108 6348800
136481176 1015634 C Nov. 22, 2021, 12:09 p.m. OK PyPy 3-64 TESTS 3 124 6656000
136479389 IkshitG C Nov. 22, 2021, 11:55 a.m. OK PyPy 3-64 TESTS 3 124 6860800
136484128 rivnam C Nov. 22, 2021, 12:38 p.m. OK PyPy 3-64 TESTS 3 140 9625600
136560291 mesa3993 C Nov. 23, 2021, 1:32 a.m. OK PyPy 3-64 TESTS 3 155 9830400
136517884 MaximUmm C Nov. 22, 2021, 1:23 p.m. OK PyPy 3-64 TESTS 3 155 9932800
136555676 oadey89 C Nov. 22, 2021, 10:06 p.m. OK PyPy 3-64 TESTS 3 155 10035200
136571134 ghoshashis545 C Nov. 23, 2021, 5:51 a.m. OK PyPy 3-64 TESTS 3 155 12185600
136479470 sarthak_bharadwaj_ C Nov. 22, 2021, 11:56 a.m. OK PyPy 3-64 TESTS 3 186 9318400
136525760 kojihashimoto C Nov. 22, 2021, 2:21 p.m. OK PyPy 3-64 TESTS 3 280 10137600
136521379 OLOGY C Nov. 22, 2021, 1:38 p.m. OK Python 2 TESTS 3 265 0
136469027 KeiTsukishima C Nov. 22, 2021, 11:29 a.m. OK Python 3 TESTS 3 109 1024000
136570880 juramoshkov C Nov. 23, 2021, 5:47 a.m. OK Python 3 TESTS 3 140 409600
136561407 mayank26596 C Nov. 23, 2021, 2:12 a.m. OK Python 3 TESTS 3 171 819200
136518283 rak1507 C Nov. 22, 2021, 1:27 p.m. OK Python 3 TESTS 3 202 921600
136479292 tieros C Nov. 22, 2021, 11:54 a.m. OK Python 3 TESTS 3 233 614400
136521343 zhanghengrui C Nov. 22, 2021, 1:38 p.m. OK Python 3 TESTS 3 234 102400
136569273 titanalpha C Nov. 23, 2021, 5:20 a.m. OK Python 3 TESTS 3 249 716800
136466525 hashimoto76 C Nov. 22, 2021, 11:23 a.m. OK Python 3 TESTS 3 358 102400
136465842 essential_sport C Nov. 22, 2021, 11:21 a.m. OK Python 3 TESTS 3 374 512000
136522105 ameronizah C Nov. 22, 2021, 1:46 p.m. OK Python 3 TESTS 3 389 0
136569135 Spheniscine C Nov. 23, 2021, 5:17 a.m. OK Rust TESTS 3 0 102400
136558911 noogler C Nov. 23, 2021, 12:38 a.m. OK Rust TESTS 3 15 0

remove filters

Back to search problems