Educational Codeforces Round 151 (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
1845 Educational Codeforces Round 151 (Rated for Div. 2) FINISHED False 7200 43773899 June 29, 2023, 2:35 p.m.

Problems

Solved$
Index
Name
Type
Tags
Community Tag
Rating
( 21746 ) B Come Together PROGRAMMING geometry implementation math

B"Bob and Carol hanged out with Alice the whole day, but now it's time to go home. Alice, Bob and Carol live on an infinite 2D grid in cells A , B , and C respectively. Right now, all of them are in cell A . If Bob (or Carol) is in some cell, he (she) can move to one of the neighboring cells. Two cells are called neighboring if they share a side. For example, the cell (3, 5) has four neighboring cells: (2, 5) , (4, 5) , (3, 6) and (3, 4) . Bob wants to return to the cell B , Carol -- to the cell C . Both of them want to go along the shortest path, i. e. along the path that consists of the minimum possible number of cells. But they would like to walk together as well. What is the maximum possible number of cells that Bob and Carol can walk together if each of them walks home using one of the shortest paths? The first line contains the single integer t ( 1 <= t <= 10^4 ) -- the number of test cases. The first line of each test case contains two integers x_A and y_A ( 1 <= x_A, y_A <= 10^8 ) -- the position of cell A , where both Bob and Carol are right now. The second line contains two integers x_B and y_B ( 1 <= x_B, y_B <= 10^8 ) -- the position of cell B (Bob's house). The third line contains two integers x_C and y_C ( 1 <= x_C, y_C <= 10^8 ) -- the position of cell C (Carol's house). Additional constraint on the input: the cells A , B , and C are pairwise distinct in each test case. For each test case, print the single integer -- the maximum number of cells Bob and Carol can walk together if each of them goes home along one of the shortest paths. In all pictures, red color denotes cells belonging only to Bob's path, light blue color -- cells belonging only to Carol's path, and dark blue color -- cells belonging to both paths. One of the optimal routes for the first test case is shown be"...

Tutorials

117791

Submissions

Submission Id
Author(s)
Index
Submitted
Verdict
Language
Test Set
Tests Passed
Time taken (ms)
Memory Consumed (bytes)
Tags
Rating
211559597 lAMaLOSER B June 30, 2023, 1:11 a.m. OK C# 10 TESTS 5 155 2867200
211572157 s_m_asif B June 30, 2023, 5:10 a.m. OK C# 8 TESTS 5 186 3891200
211568497 tsuki11111 B June 30, 2023, 4:05 a.m. OK FPC TESTS 5 46 0
211541511 NenadDapic B June 29, 2023, 6:35 p.m. OK FPC TESTS 3 46 102400
211524666 parvezahmed404 B June 29, 2023, 4:30 p.m. OK GNU C11 TESTS 3 46 0
211554578 iffatul_anon B June 29, 2023, 10:45 p.m. OK GNU C11 TESTS 5 92 0
211560633 lbntxdy B June 30, 2023, 1:39 a.m. OK GNU C++14 TESTS 5 15 0
211558098 Eznibuil B June 30, 2023, 12:30 a.m. OK GNU C++14 TESTS 5 15 0
211557548 chenyilai B June 30, 2023, 12:15 a.m. OK GNU C++14 TESTS 5 15 0
211543801 omeganot B June 29, 2023, 7:06 p.m. OK GNU C++14 TESTS 3 15 0
211542278 SuperJ6 B June 29, 2023, 6:45 p.m. OK GNU C++14 TESTS 3 15 0
211539909 prateek1712 B June 29, 2023, 6:16 p.m. OK GNU C++14 TESTS 3 15 0
211559556 QZJ114514 B June 30, 2023, 1:10 a.m. OK GNU C++14 TESTS 5 15 0
211558911 Mr_White_ B June 30, 2023, 12:51 a.m. OK GNU C++14 TESTS 5 15 0
211561743 yskm B June 30, 2023, 2:04 a.m. OK GNU C++14 TESTS 5 15 0
211576180 LP_Young. B June 30, 2023, 6:02 a.m. OK GNU C++14 TESTS 5 15 0
211573499 vsiddharth365 B June 30, 2023, 5:29 a.m. OK GNU C++17 TESTS 5 15 0
211573150 xin2002 B June 30, 2023, 5:24 a.m. OK GNU C++17 TESTS 5 15 0
211571994 SalmaHafez B June 30, 2023, 5:07 a.m. OK GNU C++17 TESTS 5 15 0
211571536 cyrux21 B June 30, 2023, 5 a.m. OK GNU C++17 TESTS 5 15 0
211568607 knightzzz1 B June 30, 2023, 4:07 a.m. OK GNU C++17 TESTS 5 15 0
211564445 archiver B June 30, 2023, 2:57 a.m. OK GNU C++17 TESTS 5 15 0
211562613 Nada_A7med B June 30, 2023, 2:23 a.m. OK GNU C++17 TESTS 5 15 0
211562140 machine2020 B June 30, 2023, 2:14 a.m. OK GNU C++17 TESTS 5 15 0
211574484 092621114sjk B June 30, 2023, 5:42 a.m. OK GNU C++17 TESTS 5 15 0
211573747 Muhammad_Alparslan B June 30, 2023, 5:32 a.m. OK GNU C++17 TESTS 5 15 0
211536415 youssefmontaser B June 29, 2023, 5:40 p.m. OK GNU C++17 (64) TESTS 3 15 0
211573675 importlogic B June 30, 2023, 5:31 a.m. OK GNU C++17 (64) TESTS 5 15 0
211568369 ImmortalMerlin B June 30, 2023, 4:03 a.m. OK GNU C++17 (64) TESTS 5 15 0
211567742 Poseidon. B June 30, 2023, 3:52 a.m. OK GNU C++17 (64) TESTS 5 15 0
211564561 qcwlmqy B June 30, 2023, 2:59 a.m. OK GNU C++17 (64) TESTS 5 15 0
211563017 Once_I_Liked_AGirl B June 30, 2023, 2:31 a.m. OK GNU C++17 (64) TESTS 5 15 0
211561673 l0ssofTime B June 30, 2023, 2:03 a.m. OK GNU C++17 (64) TESTS 5 15 0
211561484 hhux B June 30, 2023, 1:59 a.m. OK GNU C++17 (64) TESTS 5 15 0
211550890 enslaved B June 29, 2023, 9:08 p.m. OK GNU C++17 (64) TESTS 4 15 0
211532591 efficient B June 29, 2023, 5:05 p.m. OK GNU C++17 (64) TESTS 3 15 0
211541096 influunt B June 29, 2023, 6:30 p.m. OK GNU C++20 (64) TESTS 3 0 0
211539447 iamparthabhowmik B June 29, 2023, 6:11 p.m. OK GNU C++20 (64) TESTS 3 0 0
211536779 Hi-TechMissile B June 29, 2023, 5:44 p.m. OK GNU C++20 (64) TESTS 3 0 0
211533909 Satinii B June 29, 2023, 5:16 p.m. OK GNU C++20 (64) TESTS 3 0 0
211531841 iseol B June 29, 2023, 4:59 p.m. OK GNU C++20 (64) TESTS 3 0 0
211531380 assazzin_2 B June 29, 2023, 4:56 p.m. OK GNU C++20 (64) TESTS 3 0 0
211529447 helloforWD B June 29, 2023, 4:44 p.m. OK GNU C++20 (64) TESTS 3 0 0
211529164 JoO_H_ B June 29, 2023, 4:43 p.m. OK GNU C++20 (64) TESTS 3 0 0
211543506 ali__Ahmed B June 29, 2023, 7:02 p.m. OK GNU C++20 (64) TESTS 3 0 0
211543682 Mahmoud_AlQahmuri B June 29, 2023, 7:04 p.m. OK GNU C++20 (64) TESTS 3 0 0
211529902 ayata B June 29, 2023, 4:47 p.m. OK Go TESTS 3 1419 2457600
211529917 ujjwal_a0001 B June 29, 2023, 4:47 p.m. OK Java 11 TESTS 3 171 0
211542099 ash_79 B June 29, 2023, 6:43 p.m. OK Java 11 TESTS 3 186 0
211535014 vijender_8601 B June 29, 2023, 5:26 p.m. OK Java 11 TESTS 3 186 0
211558848 Abdelrahman.Salah B June 30, 2023, 12:49 a.m. OK Java 11 TESTS 5 187 0
211552620 etian6795 B June 29, 2023, 9:50 p.m. OK Java 11 TESTS 4 187 0
211535122 archieagarwal B June 29, 2023, 5:27 p.m. OK Java 11 TESTS 3 326 0
211529353 keshavj2302 B June 29, 2023, 4:44 p.m. OK Java 11 TESTS 3 326 0
211558133 Saja_Naeem B June 30, 2023, 12:31 a.m. OK Java 11 TESTS 5 327 0
211576090 black_devil_9552 B June 30, 2023, 6:01 a.m. OK Java 11 TESTS 5 343 0
211569403 achal5623 B June 30, 2023, 4:21 a.m. OK Java 11 TESTS 5 358 0
211563531 Mamimi B June 30, 2023, 2:40 a.m. OK Java 17 TESTS 5 171 409600
211530764 LeetCodeforces_Null B June 29, 2023, 4:52 p.m. OK Java 17 TESTS 3 202 409600
211570337 not_just_rr B June 30, 2023, 4:39 a.m. OK Java 17 TESTS 5 202 614400
211575708 daksh_02 B June 30, 2023, 5:56 a.m. OK Java 17 TESTS 5 217 307200
211535443 maksutovnurda B June 29, 2023, 5:31 p.m. OK Java 17 TESTS 3 249 512000
211540961 Vrutik_2809 B June 29, 2023, 6:29 p.m. OK Java 17 TESTS 3 296 409600
211528356 aryanmittal_10 B June 29, 2023, 4:39 p.m. OK Java 17 TESTS 3 311 0
211569276 palak_05 B June 30, 2023, 4:19 a.m. OK Java 17 TESTS 5 311 614400
211575510 Nyasa_2021076 B June 30, 2023, 5:54 a.m. OK Java 17 TESTS 5 326 716800
211524180 2020bit014 B June 29, 2023, 4:30 p.m. OK Java 17 TESTS 3 327 307200
211534627 abhayrajnegi0416 B June 29, 2023, 5:23 p.m. OK Java 8 TESTS 3 78 0
211565055 chuquwan9964 B June 30, 2023, 3:06 a.m. OK Java 8 TESTS 5 93 0
211531231 Rahul_Adlakha B June 29, 2023, 4:55 p.m. OK Java 8 TESTS 3 108 0
211559607 xiaoshua B June 30, 2023, 1:12 a.m. OK Java 8 TESTS 5 109 0
211550691 NerfThis B June 29, 2023, 9:04 p.m. OK Java 8 TESTS 4 109 0
211544125 ahmedhosny2002 B June 29, 2023, 7:10 p.m. OK Java 8 TESTS 3 109 0
211537969 Extradict B June 29, 2023, 5:56 p.m. OK Java 8 TESTS 3 109 0
211538567 sachinjaiswal B June 29, 2023, 6:02 p.m. OK Java 8 TESTS 3 139 0
211571105 999ms_Clutch B June 30, 2023, 4:53 a.m. OK Java 8 TESTS 5 140 39116800
211564664 Ahmad_Hoseiny B June 30, 2023, 3 a.m. OK Java 8 TESTS 5 155 0
211560410 Eshan_Karia B June 30, 2023, 1:33 a.m. OK MS C++ 2017 TESTS 5 31 0
211544211 Dick007 B June 29, 2023, 7:11 p.m. OK MS C++ 2017 TESTS 3 77 102400
211558109 incuiio B June 30, 2023, 12:30 a.m. OK MS C++ 2017 TESTS 5 93 0
211543809 AshIsH_001 B June 29, 2023, 7:06 p.m. OK MS C++ 2017 TESTS 3 93 0
211574642 payal_27 B June 30, 2023, 5:43 a.m. OK MS C++ 2017 TESTS 5 108 0
211524182 CMRIT24_20R01A0462 B June 29, 2023, 4:30 p.m. OK MS C++ 2017 TESTS 3 109 0
211523729 duck_man123 B June 29, 2023, 4:29 p.m. OK PyPy 3 TESTS 3 639 10035200
211545411 bjy B June 29, 2023, 7:28 p.m. OK PyPy 3-64 TESTS 3 187 10240000
211546956 Kladrr B June 29, 2023, 7:52 p.m. OK PyPy 3-64 TESTS 4 202 10752000
211528320 Mayank_Bad B June 29, 2023, 4:38 p.m. OK PyPy 3-64 TESTS 3 217 10854400
211538995 rmr B June 29, 2023, 6:06 p.m. OK PyPy 3-64 TESTS 3 233 10342400
211538531 rmr B June 29, 2023, 6:01 p.m. OK PyPy 3-64 TESTS 3 234 9830400
211574538 Antonio_Colapso_07 B June 30, 2023, 5:42 a.m. OK PyPy 3-64 TESTS 5 248 13414400
211544027 1_2_3_4_5_9 B June 29, 2023, 7:09 p.m. OK PyPy 3-64 TESTS 3 249 14848000
211530064 aniketabhiraj2004 B June 29, 2023, 4:48 p.m. OK PyPy 3-64 TESTS 3 264 10342400
211548798 gardengnome B June 29, 2023, 8:24 p.m. OK PyPy 3-64 TESTS 4 265 10854400
211542940 the_last_smilodon B June 29, 2023, 6:54 p.m. OK PyPy 3-64 TESTS 3 265 11059200
211547308 jcontreras2693 B June 29, 2023, 7:58 p.m. OK Python 3 TESTS 4 78 204800
211549058 Sasha_G B June 29, 2023, 8:29 p.m. OK Python 3 TESTS 4 93 512000
211528902 bhavya_81 B June 29, 2023, 4:41 p.m. OK Python 3 TESTS 3 109 0
211572832 DhananjayDogne B June 30, 2023, 5:20 a.m. OK Python 3 TESTS 5 124 0
211570715 Reality9504 B June 30, 2023, 4:46 a.m. OK Python 3 TESTS 5 124 0
211569216 giriraj_parik B June 30, 2023, 4:18 a.m. OK Python 3 TESTS 5 124 0
211565001 CF_Soumyajit B June 30, 2023, 3:06 a.m. OK Python 3 TESTS 5 124 0
211553302 rvronak B June 29, 2023, 10:08 p.m. OK Python 3 TESTS 5 124 0
211552633 OspechcevaTatyana B June 29, 2023, 9:50 p.m. OK Python 3 TESTS 4 124 0
211542123 Eyad-Alqaysi B June 29, 2023, 6:43 p.m. OK Python 3 TESTS 3 124 0

remove filters

Back to search problems