CodeTON Round 4 (Div. 1 + Div. 2, Rated, Prizes!)

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
1810 CodeTON Round 4 (Div. 1 + Div. 2, Rated, Prizes!) FINISHED False 7200 56906663 March 31, 2023, 2:35 p.m.

Problems

Solved$
Index
Name
Type
Tags
Community Tag
Rating
( 7625 ) D Climbing the Tree PROGRAMMING binary search math

B"The snails are climbing a tree. The tree height is h meters, and snails start at position 0 . Each snail has two attributes a and b ( a > b ). Starting from the 1 -st day, one snail climbs the tree like this: during the daylight hours of the day, he climbs up a meters; during the night, the snail rests, and he slides down b meters. If on the n -th day, the snail reaches position h for the first time (that is, the top of the tree), he will finish climbing, and we say that the snail spends n days climbing the tree. Note that on the last day of climbing, the snail doesn't necessarily climb up a meters, in case his distance to the top is smaller than a . Unfortunately, you don't know the exact tree height h at first, but you know that h is a positive integer. There are q events of two kinds. You need to deal with all the events in order. Each test contains multiple test cases. The first line contains a single integer t ( 1 <= t <= 10^4 ) -- the number of test cases. Then follows their description. The first line of each test case contains one integer q ( 1 <= q <= 2 cdot 10^5 ) -- the number of events. For the following q lines, the first integer of each line is either 1 or 2 , denoting the event type. If the event type is 1 , then three integers a , b , and n ( 1 <= a,b,n <= 10^9 , a>b ) follow. If the event type is 2 , then two integers a and b ( 1 <= a,b <= 10^9 , a>b ) follow. It is guaranteed that the sum of q over all test cases does not exceed 2 cdot 10^5 . For each test case, output q integers in one line, one for each event, in order. Specifically, In the first test case, we can determine h=7 through the first message, so we know the second snail and the third snail need to spend 2 and 5 days respectively to reach the top. Let's "...

Tutorials

Editorial of CodeTON Round 4 (Div. 1 + Div. 2, Rated, Prizes!)

Submissions

Submission Id
Author(s)
Index
Submitted
Verdict
Language
Test Set
Tests Passed
Time taken (ms)
Memory Consumed (bytes)
Tags
Rating
200028129 DmitriyAnikeyev D March 31, 2023, 5:39 p.m. OK C# 10 TESTS 22 171 38912000
200064326 Jaswanth_1999 D April 1, 2023, 2:26 a.m. OK Clang++17 Diagnostics TESTS 22 311 716800
200049727 NenadDapic D March 31, 2023, 9:18 p.m. OK FPC TESTS 22 732 102400
200033463 NenadDapic D March 31, 2023, 6:26 p.m. OK FPC TESTS 22 1247 102400
200026415 rainboy D March 31, 2023, 5:27 p.m. OK GNU C11 TESTS 22 966 0
200022798 gjh_ict D March 31, 2023, 5:08 p.m. OK GNU C++14 TESTS 22 156 0
200062308 htoworz D April 1, 2023, 1:48 a.m. OK GNU C++14 TESTS 22 187 0
200061133 5af D April 1, 2023, 1:21 a.m. OK GNU C++14 TESTS 22 187 0
200032212 Aditya2108 D March 31, 2023, 6:14 p.m. OK GNU C++14 TESTS 22 187 0
200032199 theSarge911 D March 31, 2023, 6:14 p.m. OK GNU C++14 TESTS 22 187 0
200069156 MCCF D April 1, 2023, 3:48 a.m. OK GNU C++14 TESTS 22 187 0
200064732 huazai676 D April 1, 2023, 2:34 a.m. OK GNU C++14 TESTS 22 187 0
200062668 htoworz D April 1, 2023, 1:56 a.m. OK GNU C++14 TESTS 22 187 0
200027822 Dixiky_215 D March 31, 2023, 5:37 p.m. OK GNU C++14 TESTS 22 202 0
200075579 zorbin D April 1, 2023, 5:14 a.m. OK GNU C++14 TESTS 22 202 0
200064821 lishiyang D April 1, 2023, 2:35 a.m. OK GNU C++17 TESTS 22 156 0
200054540 swodashkard D March 31, 2023, 10:35 p.m. OK GNU C++17 TESTS 22 186 0
200069177 sky_board D April 1, 2023, 3:48 a.m. OK GNU C++17 TESTS 22 187 0
200077361 waiiting D April 1, 2023, 5:34 a.m. OK GNU C++17 TESTS 22 187 3174400
200070122 LazyXxxx D April 1, 2023, 4:03 a.m. OK GNU C++17 TESTS 22 202 0
200067081 Fiyuls D April 1, 2023, 3:14 a.m. OK GNU C++17 TESTS 22 202 0
200047935 Error_403 D March 31, 2023, 8:58 p.m. OK GNU C++17 TESTS 22 202 0
200040923 angry_pikachu D March 31, 2023, 7:45 p.m. OK GNU C++17 TESTS 22 202 0
200039823 IllidanBabyRage D March 31, 2023, 7:33 p.m. OK GNU C++17 TESTS 22 202 0
200079992 pasin30055 D April 1, 2023, 6:02 a.m. OK GNU C++17 TESTS 22 202 0
200057424 Mostafa_Moharram D March 31, 2023, 11:44 p.m. OK GNU C++17 (64) TESTS 22 139 0
200048579 Edu175 D March 31, 2023, 9:05 p.m. OK GNU C++17 (64) TESTS 22 139 0
200069612 luckmaster D April 1, 2023, 3:55 a.m. OK GNU C++17 (64) TESTS 22 139 0
200061094 cheng1202 D April 1, 2023, 1:20 a.m. OK GNU C++17 (64) TESTS 22 139 1638400
200041842 Mhamad_aboaljood D March 31, 2023, 7:55 p.m. OK GNU C++17 (64) TESTS 22 139 4198400
200076396 nitin_bisht291 D April 1, 2023, 5:23 a.m. OK GNU C++17 (64) TESTS 22 140 0
200075629 Hritik12 D April 1, 2023, 5:14 a.m. OK GNU C++17 (64) TESTS 22 140 0
200071016 Ling9527 D April 1, 2023, 4:16 a.m. OK GNU C++17 (64) TESTS 22 140 0
200067577 DengJ D April 1, 2023, 3:22 a.m. OK GNU C++17 (64) TESTS 22 140 0
200079051 coding_happy D April 1, 2023, 5:53 a.m. OK GNU C++17 (64) TESTS 22 140 0
200038695 gtheoden42 D March 31, 2023, 7:20 p.m. OK GNU C++20 (64) TESTS 22 93 0
200056390 Rising-coder D March 31, 2023, 11:18 p.m. OK GNU C++20 (64) TESTS 22 93 0
200031995 Ujjawal_Gupta D March 31, 2023, 6:13 p.m. OK GNU C++20 (64) TESTS 22 93 6451200
200027760 dmenezes D March 31, 2023, 5:36 p.m. OK GNU C++20 (64) TESTS 22 108 0
200066720 TrendBattles D April 1, 2023, 3:09 a.m. OK GNU C++20 (64) TESTS 22 108 0
200065271 Lavine D April 1, 2023, 2:44 a.m. OK GNU C++20 (64) TESTS 22 108 0
200063609 _darkSide D April 1, 2023, 2:14 a.m. OK GNU C++20 (64) TESTS 22 108 0
200046560 sword060 D March 31, 2023, 8:44 p.m. OK GNU C++20 (64) TESTS 22 108 0
200039208 arda D March 31, 2023, 7:26 p.m. OK GNU C++20 (64) TESTS 22 108 0
200038784 gtheoden42 D March 31, 2023, 7:21 p.m. OK GNU C++20 (64) TESTS 22 108 0
200043768 kuan525 D March 31, 2023, 8:17 p.m. OK Go TESTS 22 327 4812800
200041549 harsh.awasthi D March 31, 2023, 7:52 p.m. OK Go TESTS 22 327 4812800
200022632 leoncn D March 31, 2023, 5:07 p.m. OK Java 11 TESTS 22 249 1843200
200025345 the_unseen D March 31, 2023, 5:21 p.m. OK Java 11 TESTS 22 343 0
200035355 qw_er__ty D March 31, 2023, 6:44 p.m. OK Java 11 TESTS 22 358 0
200018588 Ramez__ D March 31, 2023, 4:33 p.m. OK Java 11 TESTS 22 358 0
200070517 ch2001 D April 1, 2023, 4:08 a.m. OK Java 11 TESTS 22 592 0
200045346 dheerajchhatanidc D March 31, 2023, 8:34 p.m. OK Java 11 TESTS 22 592 0
200029046 kritikmodi D March 31, 2023, 5:47 p.m. OK Java 11 TESTS 22 639 0
200044577 ilasiawo D March 31, 2023, 8:25 p.m. OK Java 11 TESTS 22 1060 0
200032760 prathamtyagii D March 31, 2023, 6:19 p.m. OK Java 17 TESTS 22 436 18227200
200031375 merlin_ D March 31, 2023, 6:07 p.m. OK Java 17 TESTS 22 530 716800
200066396 azure- D April 1, 2023, 3:03 a.m. OK Java 17 TESTS 22 1668 512000
200031021 golions D March 31, 2023, 6:03 p.m. OK Java 8 TESTS 22 280 4096000
200048353 pavlo.liapota D March 31, 2023, 9:02 p.m. OK Kotlin 1.7 TESTS 22 919 141516800
200040585 pavlo.liapota D March 31, 2023, 7:42 p.m. OK Kotlin 1.7 TESTS 22 967 146739200
200030908 IlyinAD D March 31, 2023, 6:02 p.m. OK MS C++ 2017 TESTS 22 655 0
200037386 gaspar.kristijan D March 31, 2023, 7:05 p.m. OK MS C++ 2017 TESTS 22 670 2764800
200022102 ishybee D March 31, 2023, 5:05 p.m. OK MS C++ 2017 TESTS 22 686 0
200021177 aadrito D March 31, 2023, 5:02 p.m. OK MS C++ 2017 TESTS 22 826 0
200023802 bvf D March 31, 2023, 5:12 p.m. OK PyPy 3 TESTS 22 421 30515200
200019206 quandum D March 31, 2023, 4:34 p.m. OK PyPy 3 TESTS 22 872 34304000
200028714 TheViking733n D March 31, 2023, 5:44 p.m. OK PyPy 3-64 TESTS 22 233 26624000
200029464 samchen123 D March 31, 2023, 5:50 p.m. OK PyPy 3-64 TESTS 22 234 13926400
200041602 Kustov_Vadim_533 D March 31, 2023, 7:53 p.m. OK PyPy 3-64 TESTS 22 249 18636800
200047451 Amay12 D March 31, 2023, 8:53 p.m. OK PyPy 3-64 TESTS 22 264 26214400
200026899 iN_siDious D March 31, 2023, 5:30 p.m. OK PyPy 3-64 TESTS 22 265 12185600
200034484 AyuAnchor D March 31, 2023, 6:35 p.m. OK PyPy 3-64 TESTS 22 265 18124800
200028390 TheViking733n D March 31, 2023, 5:41 p.m. OK PyPy 3-64 TESTS 22 265 26521600
200024623 RobinFromTheHood D March 31, 2023, 5:16 p.m. OK PyPy 3-64 TESTS 22 280 18329600
200024490 liupengsay D March 31, 2023, 5:15 p.m. OK PyPy 3-64 TESTS 22 280 24985600
200051513 gardengnome D March 31, 2023, 9:40 p.m. OK PyPy 3-64 TESTS 22 295 18124800
200068947 Pank_AL_SE D April 1, 2023, 3:44 a.m. OK Python 3 TESTS 22 655 17510400
200066190 Antonio_Colapso_07 D April 1, 2023, 3 a.m. OK Python 3 TESTS 22 919 716800
200063495 PythonIsGodlike D April 1, 2023, 2:11 a.m. OK Python 3 TESTS 22 951 716800
200069642 mr_robot_96x D April 1, 2023, 3:55 a.m. OK Python 3 TESTS 22 998 6451200
200056085 mulyam13986 D March 31, 2023, 11:10 p.m. OK Python 3 TESTS 22 1123 716800
200061264 drdilyor D April 1, 2023, 1:24 a.m. OK Rust 2021 TESTS 22 78 0
200018819 liut D March 31, 2023, 4:34 p.m. OK Rust 2021 TESTS 22 78 0
200021367 0npata D March 31, 2023, 5:02 p.m. OK Rust 2021 TESTS 22 109 1638400
200042741 PugachAG D March 31, 2023, 8:05 p.m. OK Rust 2021 TESTS 22 202 4300800

remove filters

Back to search problems