Codeforces Raif Round 1 (Div. 1 + 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
1428 Codeforces Raif Round 1 (Div. 1 + Div. 2) FINISHED False 9000 134412911 Oct. 17, 2020, 1:05 p.m.

Problems

Solved$
Index
Name
Type
Tags
Community Tag
Rating
( 16401 ) A Box is Pull PROGRAMMING math

B"Wabbit is trying to move a box containing food for the rest of the zoo in the coordinate plane from the point (x_1,y_1) to the point (x_2,y_2) . He has a rope, which he can use to pull the box. He can only pull the box if he stands exactly 1 unit away from the box in the direction of one of two coordinate axes. He will pull the box to where he is standing before moving out of the way in the same direction by 1 unit. For example, if the box is at the point (1,2) and Wabbit is standing at the point (2,2) , he can pull the box right by 1 unit, with the box ending up at the point (2,2) and Wabbit ending at the point (3,2) . Also, Wabbit can move 1 unit to the right, left, up, or down without pulling the box. In this case, it is not necessary for him to be in exactly 1 unit away from the box. If he wants to pull the box again, he must return to a point next to the box. Also, Wabbit can't move to the point where the box is located. Wabbit can start at any point. It takes 1 second to travel 1 unit right, left, up, or down, regardless of whether he pulls the box while moving. Determine the minimum amount of time he needs to move the box from (x_1,y_1) to (x_2,y_2) . Note that the point where Wabbit ends up at does not matter. Each test contains multiple test cases. The first line contains a single integer t (1 <= q t <= q 1000) : the number of test cases. The description of the test cases follows. Each of the next t lines contains four space-separated integers x_1, y_1, x_2, y_2 (1 <= q x_1, y_1, x_2, y_2 <= q 10^9) , describing the next test case. For each test case, print a single integer: the minimum time in seconds Wabbit needs to bring the box from (x_1,y_1) to (x_2,y_2) . In the first test case, the starting and the ending points of the box are (1,2) and (2,2) respectively. This is the same as the picture in the statement."...

Tutorials

Codeforces Raif Round 1 Editorial

Submissions

Submission Id
Author(s)
Index
Submitted
Verdict
Language
Test Set
Tests Passed
Time taken (ms)
Memory Consumed (bytes)
Tags
Rating
95812844 codeblooded1208 A Oct. 17, 2020, 4:45 p.m. OK Clang++17 Diagnostics TESTS 6 62 0
95834535 fpc_coder A Oct. 18, 2020, 2:03 a.m. OK FPC TESTS 6 30 0
95832135 KhavidBap A Oct. 18, 2020, 12:12 a.m. OK FPC TESTS 6 31 0
95835726 ndocx A Oct. 18, 2020, 2:44 a.m. OK FPC TESTS 6 46 0
95839202 SGRuler A Oct. 18, 2020, 4:25 a.m. OK GNU C11 TESTS 6 15 0
95827892 codingwalaid A Oct. 17, 2020, 9:10 p.m. OK GNU C11 TESTS 6 15 0
95812918 Redoy_Kumar A Oct. 17, 2020, 4:46 p.m. OK GNU C11 TESTS 6 30 0
95838320 nitinkumar1729 A Oct. 18, 2020, 3:59 a.m. OK GNU C11 TESTS 6 30 0
95820080 froyzan A Oct. 17, 2020, 6:28 p.m. OK GNU C11 TESTS 6 31 0
95811352 prince17 A Oct. 17, 2020, 4:31 p.m. OK GNU C11 TESTS 6 31 0
95843490 mayeed A Oct. 18, 2020, 5:58 a.m. OK GNU C11 TESTS 6 31 0
95839330 fahimalhasan2019 A Oct. 18, 2020, 4:29 a.m. OK GNU C11 TESTS 6 31 0
95799619 nikita_gupta A Oct. 17, 2020, 3:12 p.m. OK GNU C11 TESTS 6 31 0
95837762 pradeepkumarred7 A Oct. 18, 2020, 3:44 a.m. OK GNU C11 TESTS 6 31 0
95839757 Luee A Oct. 18, 2020, 4:41 a.m. OK GNU C++11 TESTS 6 15 0
95840538 YugiHacker A Oct. 18, 2020, 5 a.m. OK GNU C++11 TESTS 6 15 0
95838356 yinzihao1404 A Oct. 18, 2020, 4 a.m. OK GNU C++11 TESTS 6 15 0
95838226 S-X-Y A Oct. 18, 2020, 3:57 a.m. OK GNU C++11 TESTS 6 15 0
95838113 wenjunrui A Oct. 18, 2020, 3:54 a.m. OK GNU C++11 TESTS 6 15 0
95836367 KagamineRin A Oct. 18, 2020, 3:04 a.m. OK GNU C++11 TESTS 6 15 0
95842678 Owen_codeisking A Oct. 18, 2020, 5:43 a.m. OK GNU C++11 TESTS 6 15 0
95842252 syysunny A Oct. 18, 2020, 5:35 a.m. OK GNU C++11 TESTS 6 15 0
95842242 md_sifat A Oct. 18, 2020, 5:34 a.m. OK GNU C++11 TESTS 6 15 0
95841131 275307894a A Oct. 18, 2020, 5:12 a.m. OK GNU C++11 TESTS 6 15 0
95829545 amrmohamed09 A Oct. 17, 2020, 10:05 p.m. OK GNU C++14 TESTS 6 15 0
95838205 _taylor22 A Oct. 18, 2020, 3:57 a.m. OK GNU C++14 TESTS 6 15 0
95839938 LM14 A Oct. 18, 2020, 4:45 a.m. OK GNU C++14 TESTS 6 15 0
95841265 rupakrajak A Oct. 18, 2020, 5:15 a.m. OK GNU C++14 TESTS 6 15 0
95842218 resfeber14 A Oct. 18, 2020, 5:34 a.m. OK GNU C++14 TESTS 6 15 0
95843376 Ramu A Oct. 18, 2020, 5:56 a.m. OK GNU C++14 TESTS 6 15 0
95837875 kartiks2503 A Oct. 18, 2020, 3:47 a.m. OK GNU C++14 TESTS 6 15 0
95836800 anneshatasneem A Oct. 18, 2020, 3:17 a.m. OK GNU C++14 TESTS 6 15 0
95836083 HoangVu123 A Oct. 18, 2020, 2:56 a.m. OK GNU C++14 TESTS 6 15 0
95830050 shouryap A Oct. 17, 2020, 10:28 p.m. OK GNU C++14 TESTS 6 15 0
95834423 R4hul_ A Oct. 18, 2020, 1:59 a.m. OK GNU C++17 TESTS 6 15 0
95843430 ayush_2002 A Oct. 18, 2020, 5:57 a.m. OK GNU C++17 TESTS 6 15 0
95842259 Knight_of_king A Oct. 18, 2020, 5:35 a.m. OK GNU C++17 TESTS 6 15 0
95842188 codevalley A Oct. 18, 2020, 5:33 a.m. OK GNU C++17 TESTS 6 15 0
95840857 Prabhu4 A Oct. 18, 2020, 5:07 a.m. OK GNU C++17 TESTS 6 15 0
95840148 gangpener A Oct. 18, 2020, 4:50 a.m. OK GNU C++17 TESTS 6 15 0
95839790 aniketruby A Oct. 18, 2020, 4:42 a.m. OK GNU C++17 TESTS 6 15 0
95839529 codefresher A Oct. 18, 2020, 4:35 a.m. OK GNU C++17 TESTS 6 15 0
95837615 Insane.. A Oct. 18, 2020, 3:40 a.m. OK GNU C++17 TESTS 6 15 0
95837603 mr.devil7 A Oct. 18, 2020, 3:39 a.m. OK GNU C++17 TESTS 6 15 0
95839218 biku1111 A Oct. 18, 2020, 4:25 a.m. OK GNU C++17 (64) TESTS 6 15 0
95843177 alif_cse_ju A Oct. 18, 2020, 5:52 a.m. OK GNU C++17 (64) TESTS 6 15 0
95841227 sic_mundus_creatus_est A Oct. 18, 2020, 5:14 a.m. OK GNU C++17 (64) TESTS 6 15 0
95840982 M0riarty A Oct. 18, 2020, 5:09 a.m. OK GNU C++17 (64) TESTS 6 15 0
95840957 over_flow A Oct. 18, 2020, 5:08 a.m. OK GNU C++17 (64) TESTS 6 15 0
95840086 kenechi A Oct. 18, 2020, 4:49 a.m. OK GNU C++17 (64) TESTS 6 15 0
95839990 Billal505 A Oct. 18, 2020, 4:46 a.m. OK GNU C++17 (64) TESTS 6 15 0
95836931 2fid A Oct. 18, 2020, 3:20 a.m. OK GNU C++17 (64) TESTS 6 15 0
95834956 LethalPuppy A Oct. 18, 2020, 2:18 a.m. OK GNU C++17 (64) TESTS 6 15 0
95833797 run_time_terror A Oct. 18, 2020, 1:34 a.m. OK GNU C++17 (64) TESTS 6 15 0
95814294 Oussama_1 A Oct. 17, 2020, 5:03 p.m. OK Java 11 TESTS 6 170 0
95840997 anshum_it_is A Oct. 18, 2020, 5:09 a.m. OK Java 11 TESTS 6 171 0
95834771 Agnimandur A Oct. 18, 2020, 2:11 a.m. OK Java 11 TESTS 6 171 0
95824250 b0bl0blaw A Oct. 17, 2020, 7:45 p.m. OK Java 11 TESTS 6 171 0
95822430 gsahil216 A Oct. 17, 2020, 7:10 p.m. OK Java 11 TESTS 6 171 0
95816940 abhidcoder_ A Oct. 17, 2020, 5:40 p.m. OK Java 11 TESTS 6 171 0
95815905 alexander.yanin A Oct. 17, 2020, 5:25 p.m. OK Java 11 TESTS 6 171 0
95814749 a1000 A Oct. 17, 2020, 5:10 p.m. OK Java 11 TESTS 6 186 0
95817076 amit_chas A Oct. 17, 2020, 5:42 p.m. OK Java 11 TESTS 6 187 0
95811216 gssakash A Oct. 17, 2020, 4:30 p.m. OK Java 11 TESTS 6 187 0
95820210 procrastinate7 A Oct. 17, 2020, 6:31 p.m. OK Java 8 TESTS 6 93 0
95822490 gagan_6730 A Oct. 17, 2020, 7:11 p.m. OK Java 8 TESTS 6 93 0
95814960 RichardBot7000 A Oct. 17, 2020, 5:12 p.m. OK Java 8 TESTS 6 93 0
95817238 codebook_2000 A Oct. 17, 2020, 5:45 p.m. OK Java 8 TESTS 6 108 0
95840329 eng_hardik A Oct. 18, 2020, 4:55 a.m. OK Java 8 TESTS 6 108 0
95837170 Extends A Oct. 18, 2020, 3:27 a.m. OK Java 8 TESTS 6 108 0
95828891 csn3rd A Oct. 17, 2020, 9:41 p.m. OK Java 8 TESTS 6 108 0
95814627 priyam_anand A Oct. 17, 2020, 5:08 p.m. OK Java 8 TESTS 6 108 0
95840402 owais.ahmed A Oct. 18, 2020, 4:57 a.m. OK Java 8 TESTS 6 109 0
95826518 qlf9 A Oct. 17, 2020, 8:35 p.m. OK Java 8 TESTS 6 109 0
95832083 SimoF A Oct. 18, 2020, 12:08 a.m. OK JavaScript TESTS 6 31 1126400
95812212 Tlatoani A Oct. 17, 2020, 4:39 p.m. OK Kotlin TESTS 6 171 102400
95830881 BugLeave A Oct. 17, 2020, 11:03 p.m. OK Mono C# TESTS 6 61 409600
95833989 shahincsejnu A Oct. 18, 2020, 1:42 a.m. OK Mono C# TESTS 6 62 409600
95834652 FeiLongWei A Oct. 18, 2020, 2:07 a.m. OK MS C++ 2017 TESTS 6 31 0
95806958 AndreevAOMAI A Oct. 17, 2020, 3:33 p.m. OK MS C++ 2017 TESTS 6 31 0
95835685 CharliePhamTu A Oct. 18, 2020, 2:42 a.m. OK MS C++ 2017 TESTS 6 31 0
95806106 hruif A Oct. 17, 2020, 3:31 p.m. OK MS C++ 2017 TESTS 6 46 0
95833997 shahincsejnu A Oct. 18, 2020, 1:43 a.m. OK .NET Core C# TESTS 6 93 512000
95805590 henrychenOutlook A Oct. 17, 2020, 3:29 p.m. OK Node.js TESTS 6 93 1740800
95829587 bogdan10bos A Oct. 17, 2020, 10:07 p.m. OK Ocaml TESTS 6 15 0
95814363 leal A Oct. 17, 2020, 5:04 p.m. OK PyPy 2 TESTS 6 93 307200
95827980 chirag_j_rana A Oct. 17, 2020, 9:12 p.m. OK PyPy 3 TESTS 6 124 1331200
95815209 june_waves A Oct. 17, 2020, 5:15 p.m. OK PyPy 3 TESTS 6 139 1740800
95811918 upadhyay.aaditya2001 A Oct. 17, 2020, 4:36 p.m. OK PyPy 3 TESTS 6 140 102400
95821952 manhar A Oct. 17, 2020, 7 p.m. OK PyPy 3 TESTS 6 140 1536000
95843593 H_E_R_O_ A Oct. 18, 2020, 6 a.m. OK PyPy 3 TESTS 6 155 1536000
95825191 Bovniova A Oct. 17, 2020, 8:04 p.m. OK PyPy 3 TESTS 6 155 1536000
95815238 EpicChadGamer A Oct. 17, 2020, 5:16 p.m. OK PyPy 3 TESTS 6 155 1536000
95804128 aovsiannikov A Oct. 17, 2020, 3:26 p.m. OK PyPy 3 TESTS 6 155 1945600
95829532 Danish_amin_01 A Oct. 17, 2020, 10:04 p.m. OK PyPy 3 TESTS 6 156 1536000
95820518 shantol A Oct. 17, 2020, 6:36 p.m. OK PyPy 3 TESTS 6 170 1945600
95824848 elistark A Oct. 17, 2020, 7:57 p.m. OK Python 2 TESTS 6 155 0
95835729 TeraTau A Oct. 18, 2020, 2:44 a.m. OK Python 3 TESTS 6 93 0
95824776 dubey07 A Oct. 17, 2020, 7:55 p.m. OK Python 3 TESTS 6 93 0
95824536 prayashverma007 A Oct. 17, 2020, 7:50 p.m. OK Python 3 TESTS 6 93 0
95823940 dubey07 A Oct. 17, 2020, 7:38 p.m. OK Python 3 TESTS 6 93 0
95821089 aanchaltiwari__ A Oct. 17, 2020, 6:45 p.m. OK Python 3 TESTS 6 93 0
95820952 harshil.gupta95 A Oct. 17, 2020, 6:43 p.m. OK Python 3 TESTS 6 93 0
95815227 swagsy2000 A Oct. 17, 2020, 5:16 p.m. OK Python 3 TESTS 6 93 0
95814621 kudoushinichi2912 A Oct. 17, 2020, 5:07 p.m. OK Python 3 TESTS 6 93 0
95813827 Suraj0500 A Oct. 17, 2020, 4:57 p.m. OK Python 3 TESTS 6 93 0
95813328 Vaseem_Naazleen A Oct. 17, 2020, 4:51 p.m. OK Python 3 TESTS 6 93 0
95812459 wow_ok A Oct. 17, 2020, 4:41 p.m. OK Ruby TESTS 6 467 1024000
95830213 Kaa A Oct. 17, 2020, 10:34 p.m. OK Rust TESTS 6 46 0

remove filters

Back to search problems