Educational Codeforces Round 99 (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
1455 Educational Codeforces Round 99 (Rated for Div. 2) FINISHED False 7200 130605911 Nov. 30, 2020, 2:35 p.m.

Problems

Solved$
Index
Name
Type
Tags
Community Tag
Rating
( 1554 ) E Four Points PROGRAMMING brute force constructive algorithms flows geometry greedy math ternary search

B'You are given four different integer points p_1 , p_2 , p_3 and p_4 on mathit{XY} grid. In one step you can choose one of the points p_i and move it in one of four directions by one. In other words, if you have chosen point p_i = (x, y) you can move it to (x, y + 1) , (x, y - 1) , (x + 1, y) or (x - 1, y) . Your goal to move points in such a way that they will form a square with sides parallel to mathit{OX} and mathit{OY} axes (a square with side 0 is allowed). What is the minimum number of steps you need to make such a square? The first line contains a single integer t ( 1 <= t <= 10^4 ) -- the number of test cases. Each test case consists of four lines. Each line contains two integers x and y ( 0 <= x, y <= 10^9 ) -- coordinates of one of the points p_i = (x, y) . All points are different in one test case. For each test case, print the single integer -- the minimum number of steps to make a square. In the first test case, one of the optimal solutions is shown below: In the second test case, one of the optimal solutions is shown below: In the third test case, one of the optimal solutions is shown below: '...

Tutorials

85186

Submissions

Submission Id
Author(s)
Index
Submitted
Verdict
Language
Test Set
Tests Passed
Time taken (ms)
Memory Consumed (bytes)
Tags
Rating
100060773 rainboy E Nov. 30, 2020, 6:09 p.m. OK GNU C11 TESTS 35 218 0
100056052 hangyesheng E Nov. 30, 2020, 5:04 p.m. OK GNU C++11 TESTS 21 31 0
100051529 MrMiroticcc E Nov. 30, 2020, 4:34 p.m. OK GNU C++11 TESTS 21 31 0
100048028 marS24 E Nov. 30, 2020, 4:26 p.m. OK GNU C++11 TESTS 21 31 0
100047347 Cr_Momi91 E Nov. 30, 2020, 4:24 p.m. OK GNU C++11 TESTS 21 31 0
100048856 Pety E Nov. 30, 2020, 4:28 p.m. OK GNU C++11 TESTS 21 46 0
100049538 emofunc E Nov. 30, 2020, 4:30 p.m. OK GNU C++11 TESTS 21 46 0
100063476 Daneii E Nov. 30, 2020, 6:59 p.m. OK GNU C++11 TESTS 35 46 0
100055295 QIQ E Nov. 30, 2020, 4:56 p.m. OK GNU C++11 TESTS 21 46 0
100054115 imsick E Nov. 30, 2020, 4:46 p.m. OK GNU C++11 TESTS 21 46 0
100051574 mp007mp E Nov. 30, 2020, 4:34 p.m. OK GNU C++11 TESTS 21 46 0
100051786 NumberTheoryisLove E Nov. 30, 2020, 4:34 p.m. OK GNU C++14 TESTS 21 31 0
100056799 Lumh E Nov. 30, 2020, 5:13 p.m. OK GNU C++14 TESTS 21 31 0
100055315 TestAnswersHere E Nov. 30, 2020, 4:56 p.m. OK GNU C++14 TESTS 21 31 0
100055213 TestAnswersHere E Nov. 30, 2020, 4:55 p.m. OK GNU C++14 TESTS 21 31 0
100055164 TestAnswersHere E Nov. 30, 2020, 4:55 p.m. OK GNU C++14 TESTS 21 31 0
100055100 TestAnswersHere E Nov. 30, 2020, 4:54 p.m. OK GNU C++14 TESTS 21 31 0
100053917 CrayonKe E Nov. 30, 2020, 4:45 p.m. OK GNU C++14 TESTS 21 31 0
100053189 Drice E Nov. 30, 2020, 4:40 p.m. OK GNU C++14 TESTS 21 31 0
100052842 Suri321 E Nov. 30, 2020, 4:38 p.m. OK GNU C++14 TESTS 21 31 0
100046595 tphuc2908 E Nov. 30, 2020, 4:22 p.m. OK GNU C++14 TESTS 21 31 0
100053091 IGVA E Nov. 30, 2020, 4:39 p.m. OK GNU C++17 TESTS 21 31 0
100075880 Afraimov_Benyamin E Dec. 1, 2020, 2:56 a.m. OK GNU C++17 TESTS 39 31 0
100053855 draco976 E Nov. 30, 2020, 4:44 p.m. OK GNU C++17 TESTS 21 31 0
100053400 spidy7 E Nov. 30, 2020, 4:41 p.m. OK GNU C++17 TESTS 21 31 0
100053228 Lixiaoban E Nov. 30, 2020, 4:40 p.m. OK GNU C++17 TESTS 21 31 0
100051900 HAUT_Xjl E Nov. 30, 2020, 4:34 p.m. OK GNU C++17 TESTS 21 31 0
100046565 KDVinit E Nov. 30, 2020, 4:22 p.m. OK GNU C++17 TESTS 21 31 0
100045957 Yousef_Salama E Nov. 30, 2020, 4:21 p.m. OK GNU C++17 TESTS 21 31 0
100053472 dtc03012 E Nov. 30, 2020, 4:42 p.m. OK GNU C++17 TESTS 21 31 102400
100045553 NTT_FireGhost E Nov. 30, 2020, 4:20 p.m. OK GNU C++17 TESTS 21 31 102400
100055780 Tzak E Nov. 30, 2020, 5:01 p.m. OK GNU C++17 (64) TESTS 21 31 0
100052191 edenooo E Nov. 30, 2020, 4:34 p.m. OK GNU C++17 (64) TESTS 21 31 0
100050626 CWB_the_most_powerful E Nov. 30, 2020, 4:32 p.m. OK GNU C++17 (64) TESTS 21 31 0
100049658 kiyoshi0205 E Nov. 30, 2020, 4:30 p.m. OK GNU C++17 (64) TESTS 21 31 0
100049404 I_wanna_be_number_one E Nov. 30, 2020, 4:29 p.m. OK GNU C++17 (64) TESTS 21 31 0
100043523 tiagoshibata E Nov. 30, 2020, 4:15 p.m. OK GNU C++17 (64) TESTS 21 31 0
100056701 haruki_K E Nov. 30, 2020, 5:11 p.m. OK GNU C++17 (64) TESTS 21 31 0
100073993 dysyn1314 E Dec. 1, 2020, 1:38 a.m. OK GNU C++17 (64) TESTS 39 31 4198400
100072020 ozneroL E Dec. 1, 2020, 12:01 a.m. OK GNU C++17 (64) TESTS 39 46 0
100062566 pseuda E Nov. 30, 2020, 6:41 p.m. OK GNU C++17 (64) TESTS 35 46 0
100074158 skittles1412 E Dec. 1, 2020, 1:46 a.m. OK Java 11 TESTS 39 202 102400
100063307 mphillotry E Nov. 30, 2020, 6:56 p.m. OK Java 11 TESTS 35 1372 0
100061554 YahiaSherif E Nov. 30, 2020, 6:22 p.m. OK Java 8 TESTS 35 171 0
100067766 2020akadaver E Nov. 30, 2020, 8:35 p.m. OK Java 8 TESTS 35 498 0
100072205 MagentaCobra E Dec. 1, 2020, 12:12 a.m. OK Java 8 TESTS 39 982 0
100056631 youx E Nov. 30, 2020, 5:10 p.m. OK MS C++ 2017 TESTS 21 31 0
100046909 tarattata1 E Nov. 30, 2020, 4:23 p.m. OK MS C++ 2017 TESTS 21 31 0
100047958 PrideBlack E Nov. 30, 2020, 4:26 p.m. OK MS C++ 2017 TESTS 21 62 0
100051434 G4NP0N E Nov. 30, 2020, 4:33 p.m. OK .NET Core C# TESTS 21 124 4096000
100065551 TestAnswersHere E Nov. 30, 2020, 7:44 p.m. OK .NET Core C# TESTS 35 187 4300800
100053690 marroncastle E Nov. 30, 2020, 4:43 p.m. OK PyPy 3 TESTS 21 202 3788800
100050409 marroncastle E Nov. 30, 2020, 4:31 p.m. OK PyPy 3 TESTS 21 202 3788800
100049898 jimm89 E Nov. 30, 2020, 4:30 p.m. OK PyPy 3 TESTS 21 373 7475200
100065835 TestAnswersHere E Nov. 30, 2020, 7:50 p.m. OK PyPy 3 TESTS 35 436 9113600
100077804 nehan_der_thal E Dec. 1, 2020, 3:48 a.m. OK PyPy 3 TESTS 39 452 9625600
100071335 jimm89 E Nov. 30, 2020, 11:19 p.m. OK PyPy 3 TESTS 39 483 9420800
100075922 gintoki_s E Dec. 1, 2020, 2:57 a.m. OK PyPy 3 TESTS 39 499 9728000
100053629 marroncastle E Nov. 30, 2020, 4:43 p.m. OK PyPy 3 TESTS 21 545 12083200
100075537 lucifer1004 E Dec. 1, 2020, 2:45 a.m. OK PyPy 3 TESTS 39 670 9728000
100075719 lucifer1004 E Dec. 1, 2020, 2:51 a.m. OK PyPy 3 TESTS 39 686 9523200
100065691 TestAnswersHere E Nov. 30, 2020, 7:47 p.m. OK Python 3 TESTS 35 249 409600
100057575 sh1194 E Nov. 30, 2020, 5:22 p.m. OK Python 3 TESTS 35 265 409600
100057336 sh1194 E Nov. 30, 2020, 5:19 p.m. OK Python 3 TESTS 35 265 716800
100057681 sh1194 E Nov. 30, 2020, 5:23 p.m. OK Python 3 TESTS 35 327 409600
100051840 cotton100pc E Nov. 30, 2020, 4:34 p.m. OK Rust TESTS 21 31 307200
100065480 TestAnswersHere E Nov. 30, 2020, 7:42 p.m. OK Rust TESTS 35 46 307200
100070464 optozorax E Nov. 30, 2020, 10:24 p.m. OK Rust TESTS 39 1263 0

remove filters

Back to search problems