Educational Codeforces Round 98 (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
1452 Educational Codeforces Round 98 (Rated for Div. 2) FINISHED False 7200 126026699 Nov. 19, 2020, 2:35 p.m.

Problems

Solved$
Index
Name
Type
Tags
Community Tag
Rating
( 22185 ) A Robot Program PROGRAMMING math

B"There is an infinite 2-dimensional grid. The robot stands in cell (0, 0) and wants to reach cell (x, y) . Here is a list of possible commands the robot can execute: The robot wants to reach cell (x, y) in as few commands as possible. However, he can't execute the same command two or more times in a row. What is the minimum number of commands required to reach (x, y) from (0, 0) ? The first line contains a single integer t ( 1 <= t <= 100 ) -- the number of testcases. Each of the next t lines contains two integers x and y ( 0 <= x, y <= 10^4 ) -- the destination coordinates of the robot. For each testcase print a single integer -- the minimum number of commands required for the robot to reach (x, y) from (0, 0) if no command is allowed to be executed two or more times in a row. The explanations for the example test: We use characters N, E, S, W and 0 to denote going north, going east, going south, going west and staying in the current cell, respectively. In the first test case, the robot can use the following sequence: NENENENENE. In the second test case, the robot can use the following sequence: NENENEN. In the third test case, the robot can use the following sequence: ESENENE0ENESE. In the fourth test case, the robot doesn't need to go anywhere at all. In the fifth test case, the robot can use the following sequence: E0E. "...

Tutorials

84847

Submissions

Submission Id
Author(s)
Index
Submitted
Verdict
Language
Test Set
Tests Passed
Time taken (ms)
Memory Consumed (bytes)
Tags
Rating
98982851 prakhargupta496 A Nov. 19, 2020, 7:28 p.m. OK GNU C11 TESTS 4 15 0
98982901 Prayush.Inc A Nov. 19, 2020, 7:29 p.m. OK GNU C11 TESTS 4 15 0
98984021 Java A Nov. 19, 2020, 7:56 p.m. OK GNU C11 TESTS 4 15 0
98987190 Md.Ripon A Nov. 19, 2020, 9:27 p.m. OK GNU C11 TESTS 4 15 0
98988064 Md.Ripon A Nov. 19, 2020, 10:01 p.m. OK GNU C11 TESTS 4 15 0
98990645 BugLeave A Nov. 20, 2020, 12:21 a.m. OK GNU C11 TESTS 8 15 0
98993215 akash19jain A Nov. 20, 2020, 2:22 a.m. OK GNU C11 TESTS 8 15 0
98995671 aamirmd17 A Nov. 20, 2020, 3:38 a.m. OK GNU C11 TESTS 8 15 0
98998079 PappuKhanjar A Nov. 20, 2020, 4:38 a.m. OK GNU C11 TESTS 8 15 0
99001564 Sravanmsk A Nov. 20, 2020, 5:47 a.m. OK GNU C11 TESTS 8 15 0
99001167 11D_Beyonder A Nov. 20, 2020, 5:40 a.m. OK GNU C++11 TESTS 8 15 0
99000812 rcxkk A Nov. 20, 2020, 5:34 a.m. OK GNU C++11 TESTS 8 15 0
99001651 iyua A Nov. 20, 2020, 5:49 a.m. OK GNU C++11 TESTS 8 15 0
99000365 zhanghuaizhi A Nov. 20, 2020, 5:25 a.m. OK GNU C++11 TESTS 8 15 0
99000016 katun A Nov. 20, 2020, 5:19 a.m. OK GNU C++11 TESTS 8 15 0
98999740 ForeverYurippe A Nov. 20, 2020, 5:13 a.m. OK GNU C++11 TESTS 8 15 0
98999572 avijit_mbstu A Nov. 20, 2020, 5:09 a.m. OK GNU C++11 TESTS 8 15 0
98997790 lzxzz A Nov. 20, 2020, 4:31 a.m. OK GNU C++11 TESTS 8 15 0
98997307 h1dd3n_c0d3r A Nov. 20, 2020, 4:18 a.m. OK GNU C++11 TESTS 8 15 0
98997248 Eason_AC A Nov. 20, 2020, 4:17 a.m. OK GNU C++11 TESTS 8 15 0
98985963 Abir3014 A Nov. 19, 2020, 8:48 p.m. OK GNU C++14 TESTS 4 15 0
98987257 marcOS A Nov. 19, 2020, 9:30 p.m. OK GNU C++14 TESTS 4 15 0
98990734 swayam811 A Nov. 20, 2020, 12:27 a.m. OK GNU C++14 TESTS 8 15 0
98991027 nandonathaniel A Nov. 20, 2020, 12:43 a.m. OK GNU C++14 TESTS 8 15 0
98992305 BEGINNER_001 A Nov. 20, 2020, 1:41 a.m. OK GNU C++14 TESTS 8 15 0
98992673 coderkb A Nov. 20, 2020, 1:59 a.m. OK GNU C++14 TESTS 8 15 0
98994034 aditpatel A Nov. 20, 2020, 2:50 a.m. OK GNU C++14 TESTS 8 15 0
98995406 heath_cliff A Nov. 20, 2020, 3:30 a.m. OK GNU C++14 TESTS 8 15 0
98998209 vegeta46 A Nov. 20, 2020, 4:40 a.m. OK GNU C++14 TESTS 8 15 0
98983383 _prac_acc_10101 A Nov. 19, 2020, 7:39 p.m. OK GNU C++14 TESTS 4 15 0
98994975 yession A Nov. 20, 2020, 3:18 a.m. OK GNU C++17 TESTS 8 15 0
99000852 lm2487 A Nov. 20, 2020, 5:35 a.m. OK GNU C++17 TESTS 8 15 0
98999932 Mr_black_devil A Nov. 20, 2020, 5:17 a.m. OK GNU C++17 TESTS 8 15 0
98999619 MD_AATIF A Nov. 20, 2020, 5:10 a.m. OK GNU C++17 TESTS 8 15 0
98999090 yashp_ A Nov. 20, 2020, 4:59 a.m. OK GNU C++17 TESTS 8 15 0
98998062 Bn00b A Nov. 20, 2020, 4:37 a.m. OK GNU C++17 TESTS 8 15 0
98996465 Sunset_Moth A Nov. 20, 2020, 3:57 a.m. OK GNU C++17 TESTS 8 15 0
99001404 Bhuwanesh A Nov. 20, 2020, 5:44 a.m. OK GNU C++17 TESTS 8 15 0
98996168 patildevang04 A Nov. 20, 2020, 3:51 a.m. OK GNU C++17 TESTS 8 15 0
98995935 var_i A Nov. 20, 2020, 3:45 a.m. OK GNU C++17 TESTS 8 15 0
98947122 Qualified A Nov. 19, 2020, 4:40 p.m. OK GNU C++17 (64) TESTS 4 0 0
98992402 erreeehhh A Nov. 20, 2020, 1:46 a.m. OK GNU C++17 (64) TESTS 8 15 0
99001290 alif_cse_ju A Nov. 20, 2020, 5:43 a.m. OK GNU C++17 (64) TESTS 8 15 0
98999893 mekch A Nov. 20, 2020, 5:16 a.m. OK GNU C++17 (64) TESTS 8 15 0
98999352 sqrtnull A Nov. 20, 2020, 5:05 a.m. OK GNU C++17 (64) TESTS 8 15 0
98998783 Born_2_win_ A Nov. 20, 2020, 4:53 a.m. OK GNU C++17 (64) TESTS 8 15 0
98998386 19992147 A Nov. 20, 2020, 4:44 a.m. OK GNU C++17 (64) TESTS 8 15 0
98996854 RedBlade098 A Nov. 20, 2020, 4:07 a.m. OK GNU C++17 (64) TESTS 8 15 0
98990739 armoking A Nov. 20, 2020, 12:27 a.m. OK GNU C++17 (64) TESTS 8 15 0
98989887 babyelephant A Nov. 19, 2020, 11:37 p.m. OK GNU C++17 (64) TESTS 8 15 0
98995779 bnurgeldiyev514 A Nov. 20, 2020, 3:40 a.m. OK Go TESTS 8 31 102400
98997042 sushant-kun A Nov. 20, 2020, 4:11 a.m. OK Java 11 TESTS 8 155 0
98981973 Snob A Nov. 19, 2020, 7:09 p.m. OK Java 11 TESTS 4 155 0
98947896 infinity_code A Nov. 19, 2020, 4:46 p.m. OK Java 11 TESTS 4 155 0
98936767 Tharun0102 A Nov. 19, 2020, 4:02 p.m. OK Java 11 TESTS 4 155 0
98939825 vipin__sharma A Nov. 19, 2020, 4:13 p.m. OK Java 11 TESTS 4 170 0
98941374 _3019_ A Nov. 19, 2020, 4:18 p.m. OK Java 11 TESTS 4 170 0
98940039 rishabh.raj_179 A Nov. 19, 2020, 4:13 p.m. OK Java 11 TESTS 4 170 0
98992613 Toinfinity A Nov. 20, 2020, 1:56 a.m. OK Java 11 TESTS 8 171 0
99000983 coderrohan14 A Nov. 20, 2020, 5:37 a.m. OK Java 11 TESTS 8 171 0
98996017 prafful49 A Nov. 20, 2020, 3:47 a.m. OK Java 11 TESTS 8 171 0
98979777 sumitnitesh123 A Nov. 19, 2020, 6:28 p.m. OK Java 8 TESTS 4 93 0
98976232 ap__singh A Nov. 19, 2020, 5:30 p.m. OK Java 8 TESTS 4 93 0
98962402 aym_05 A Nov. 19, 2020, 5:14 p.m. OK Java 8 TESTS 4 93 0
98935472 atsvmgarg A Nov. 19, 2020, 3:58 p.m. OK Java 8 TESTS 4 93 0
98981384 kocko A Nov. 19, 2020, 6:57 p.m. OK Java 8 TESTS 4 93 0
98998763 gagan_6730 A Nov. 20, 2020, 4:53 a.m. OK Java 8 TESTS 8 108 0
98996847 RichardBot7000 A Nov. 20, 2020, 4:07 a.m. OK Java 8 TESTS 8 108 0
99002006 kamel A Nov. 20, 2020, 5:56 a.m. OK Java 8 TESTS 8 108 0
98992317 kirubankamaraj A Nov. 20, 2020, 1:42 a.m. OK Java 8 TESTS 8 108 0
98991665 csn3rd A Nov. 20, 2020, 1:15 a.m. OK Java 8 TESTS 8 108 0
98986378 vladisov A Nov. 19, 2020, 9 p.m. OK Kotlin TESTS 4 124 0
98985228 sashamc A Nov. 19, 2020, 8:27 p.m. OK Kotlin TESTS 4 124 0
98940435 Krantzy A Nov. 19, 2020, 4:15 p.m. OK Kotlin TESTS 4 139 0
98976888 wbars A Nov. 19, 2020, 5:40 p.m. OK Kotlin TESTS 4 139 0
98940587 Nikfilak A Nov. 19, 2020, 4:15 p.m. OK Kotlin TESTS 4 139 0
98937268 pavelleiman A Nov. 19, 2020, 4:04 p.m. OK Kotlin TESTS 4 140 0
98982554 Andrey_R A Nov. 19, 2020, 7:22 p.m. OK Kotlin TESTS 4 140 0
98941444 metaphore A Nov. 19, 2020, 4:19 p.m. OK Mono C# TESTS 4 61 3686400
98982186 ak_0609 A Nov. 19, 2020, 7:14 p.m. OK MS C++ TESTS 4 31 0
98937032 niufujiang A Nov. 19, 2020, 4:03 p.m. OK MS C++ TESTS 4 31 0
98948456 divyansh_s A Nov. 19, 2020, 4:50 p.m. OK MS C++ 2017 TESTS 4 15 0
98981815 ustaritz A Nov. 19, 2020, 7:06 p.m. OK MS C++ 2017 TESTS 4 30 0
98942456 donguri A Nov. 19, 2020, 4:22 p.m. OK MS C++ 2017 TESTS 4 30 0
98938056 reshsj A Nov. 19, 2020, 4:07 p.m. OK MS C++ 2017 TESTS 4 30 0
98942693 CRUZIUM A Nov. 19, 2020, 4:23 p.m. OK MS C++ 2017 TESTS 4 31 0
98989812 yang33100 A Nov. 19, 2020, 11:33 p.m. OK MS C++ 2017 TESTS 8 31 0
98942846 nishanth_543 A Nov. 19, 2020, 4:24 p.m. OK MS C++ 2017 TESTS 4 31 0
98942602 MouadBen A Nov. 19, 2020, 4:23 p.m. OK MS C++ 2017 TESTS 4 31 0
98942060 Indra1 A Nov. 19, 2020, 4:21 p.m. OK MS C++ 2017 TESTS 4 31 0
98938925 sanchit1053 A Nov. 19, 2020, 4:10 p.m. OK MS C++ 2017 TESTS 4 31 0
98976566 shakilpp148 A Nov. 19, 2020, 5:35 p.m. OK PHP TESTS 4 312 0
98984801 TheGreenhorner A Nov. 19, 2020, 8:16 p.m. OK PyPy 3 TESTS 4 124 0
98975770 Sam_31 A Nov. 19, 2020, 5:24 p.m. OK PyPy 3 TESTS 4 124 0
98947808 AndySave A Nov. 19, 2020, 4:45 p.m. OK PyPy 3 TESTS 4 124 0
98942389 Archangel_Cue A Nov. 19, 2020, 4:22 p.m. OK PyPy 3 TESTS 4 124 0
98942377 anton.vasyuk A Nov. 19, 2020, 4:22 p.m. OK PyPy 3 TESTS 4 124 0
98940333 Ghost_in_the_Moon A Nov. 19, 2020, 4:15 p.m. OK PyPy 3 TESTS 4 124 0
98991362 87ouo A Nov. 20, 2020, 1 a.m. OK PyPy 3 TESTS 8 139 0
98947298 apurva3455 A Nov. 19, 2020, 4:41 p.m. OK PyPy 3 TESTS 4 139 0
98938296 DhurBaal A Nov. 19, 2020, 4:07 p.m. OK PyPy 3 TESTS 4 139 0
98995651 Anuranjan_Pandey A Nov. 20, 2020, 3:37 a.m. OK PyPy 3 TESTS 8 140 0
98993201 biltharesatyendra A Nov. 20, 2020, 2:22 a.m. OK Python 2 TESTS 8 155 0
98976159 sharkboy98 A Nov. 19, 2020, 5:29 p.m. OK Python 3 TESTS 4 77 307200
98944877 neetnavkayasth004 A Nov. 19, 2020, 4:31 p.m. OK Python 3 TESTS 4 78 0
98946728 meteorexx A Nov. 19, 2020, 4:37 p.m. OK Python 3 TESTS 4 92 0
98942673 amrutha_12 A Nov. 19, 2020, 4:23 p.m. OK Python 3 TESTS 4 92 0
98998260 pranjal_1234 A Nov. 20, 2020, 4:41 a.m. OK Python 3 TESTS 8 93 0
98997162 h_ritik A Nov. 20, 2020, 4:14 a.m. OK Python 3 TESTS 8 93 0
98980683 essi A Nov. 19, 2020, 6:44 p.m. OK Python 3 TESTS 4 93 0
98977016 vasanthagopikrishna A Nov. 19, 2020, 5:42 p.m. OK Python 3 TESTS 4 93 0
98976561 sharkboy98 A Nov. 19, 2020, 5:35 p.m. OK Python 3 TESTS 4 93 0
98976202 Serjeel_Ranjan A Nov. 19, 2020, 5:29 p.m. OK Python 3 TESTS 4 93 0
98977048 dp0 A Nov. 19, 2020, 5:42 p.m. OK Rust TESTS 4 30 0

remove filters

Back to search problems