Educational Codeforces Round 125 (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
1657 Educational Codeforces Round 125 (Rated for Div. 2) FINISHED False 7200 83862899 March 22, 2022, 2:45 p.m.

Problems

Solved$
Index
Name
Type
Tags
Community Tag
Rating
( 24026 ) A Integer Moves PROGRAMMING math

B"There's a chip in the point (0, 0) of the coordinate plane. In one operation, you can move the chip from some point (x_1, y_1) to some point (x_2, y_2) if the Euclidean distance between these two points is an integer (i.e. sqrt{(x_1-x_2)^2+(y_1-y_2)^2} is integer). Your task is to determine the minimum number of operations required to move the chip from the point (0, 0) to the point (x, y) . The first line contains a single integer t ( 1 <= t <= 3000 ) -- number of test cases. The single line of each test case contains two integers x and y ( 0 <= x, y <= 50 ) -- the coordinates of the destination point. For each test case, print one integer -- the minimum number of operations required to move the chip from the point (0, 0) to the point (x, y) . In the first example, one operation (0, 0) rightarrow (8, 6) is enough. sqrt{(0-8)^2+(0-6)^2}= sqrt{64+36}= sqrt{100}=10 is an integer. In the second example, the chip is already at the destination point. In the third example, the chip can be moved as follows: (0, 0) rightarrow (5, 12) rightarrow (9, 15) . sqrt{(0-5)^2+(0-12)^2}= sqrt{25+144}= sqrt{169}=13 and sqrt{(5-9)^2+(12-15)^2}= sqrt{16+9}= sqrt{25}=5 are integers. "...

Tutorials

101161

Submissions

Submission Id
Author(s)
Index
Submitted
Verdict
Language
Test Set
Tests Passed
Time taken (ms)
Memory Consumed (bytes)
Tags
Rating
150605121 onlyoldpig A March 23, 2022, 12:04 p.m. OK Clang++17 Diagnostics TESTS 6 31 0
150579018 1918472049 A March 23, 2022, 6:59 a.m. OK Clang++17 Diagnostics TESTS 6 31 0
150599094 vjudge1 A March 23, 2022, 11:03 a.m. OK Clang++17 Diagnostics TESTS 6 62 0
150602509 tang- A March 23, 2022, 11:38 a.m. OK Clang++17 Diagnostics TESTS 6 62 0
150568422 1287971889 A March 23, 2022, 4:28 a.m. OK Clang++17 Diagnostics TESTS 6 171 3174400
150557045 Shukuang A March 22, 2022, 11:34 p.m. OK Clang++17 Diagnostics TESTS 6 249 0
150593012 buhcmz A March 23, 2022, 9:49 a.m. OK GNU C11 TESTS 6 15 0
150593317 buhcmz A March 23, 2022, 9:53 a.m. OK GNU C11 TESTS 6 15 0
150621078 mojun A March 23, 2022, 2:37 p.m. OK GNU C11 TESTS 6 15 0
150623574 jahirulsarker01531 A March 23, 2022, 3 p.m. OK GNU C11 TESTS 6 15 0
150570048 loki_7 A March 23, 2022, 4:56 a.m. OK GNU C11 TESTS 6 15 0
150576624 Y-an A March 23, 2022, 6:31 a.m. OK GNU C11 TESTS 6 15 0
150592598 buhcmz A March 23, 2022, 9:44 a.m. OK GNU C11 TESTS 6 15 0
150592514 buhcmz A March 23, 2022, 9:43 a.m. OK GNU C11 TESTS 6 15 0
150589792 Lao_Nan_Ren A March 23, 2022, 9:11 a.m. OK GNU C11 TESTS 6 15 0
150580197 Ketone407 A March 23, 2022, 7:13 a.m. OK GNU C11 TESTS 6 15 0
150640999 Trying_004 A March 23, 2022, 6:28 p.m. OK GNU C++14 TESTS 6 0 0
150633746 akaman123 A March 23, 2022, 5:02 p.m. OK GNU C++14 TESTS 6 0 0
150622972 mahmoudkhalid112 A March 23, 2022, 2:55 p.m. OK GNU C++14 TESTS 6 0 0
150662481 venteury A March 24, 2022, 2:43 a.m. OK GNU C++14 TESTS 6 0 0
150661793 happycrazzy A March 24, 2022, 2:22 a.m. OK GNU C++14 TESTS 6 0 0
150660983 wxg_Jay A March 24, 2022, 1:59 a.m. OK GNU C++14 TESTS 6 0 0
150654930 cridaflo A March 23, 2022, 10:37 p.m. OK GNU C++14 TESTS 6 0 0
150654335 HariCharan_1010 A March 23, 2022, 10:19 p.m. OK GNU C++14 TESTS 6 0 0
150654225 Ganesh_aggarwal A March 23, 2022, 10:16 p.m. OK GNU C++14 TESTS 6 0 0
150651111 jai6 A March 23, 2022, 9:09 p.m. OK GNU C++14 TESTS 6 0 0
150663172 microne_mzx A March 24, 2022, 3:02 a.m. OK GNU C++17 TESTS 6 0 0
150662678 br0mabs A March 24, 2022, 2:48 a.m. OK GNU C++17 TESTS 6 0 0
150661864 fixed_lxy A March 24, 2022, 2:24 a.m. OK GNU C++17 TESTS 6 0 0
150671205 hemant_thakur A March 24, 2022, 5:56 a.m. OK GNU C++17 TESTS 6 0 0
150670478 sumitverma A March 24, 2022, 5:43 a.m. OK GNU C++17 TESTS 6 0 0
150670249 Lakshya43 A March 24, 2022, 5:40 a.m. OK GNU C++17 TESTS 6 0 0
150670236 mayavi A March 24, 2022, 5:39 a.m. OK GNU C++17 TESTS 6 0 0
150669831 kira0777 A March 24, 2022, 5:32 a.m. OK GNU C++17 TESTS 6 0 0
150668978 Jasper_H A March 24, 2022, 5:16 a.m. OK GNU C++17 TESTS 6 0 0
150667132 anchit00004 A March 24, 2022, 4:40 a.m. OK GNU C++17 TESTS 6 0 0
150593181 alif_cse_ju A March 23, 2022, 9:51 a.m. OK GNU C++17 (64) TESTS 6 0 0
150670384 Prashant94157 A March 24, 2022, 5:42 a.m. OK GNU C++17 (64) TESTS 6 0 0
150661114 froggyzhang A March 24, 2022, 2:03 a.m. OK GNU C++17 (64) TESTS 6 0 0
150640957 timg_ A March 23, 2022, 6:28 p.m. OK GNU C++17 (64) TESTS 6 0 0
150631151 startrek4 A March 23, 2022, 4:26 p.m. OK GNU C++17 (64) TESTS 6 0 0
150624423 YXx315 A March 23, 2022, 3:08 p.m. OK GNU C++17 (64) TESTS 6 0 0
150621571 Priyanshu_187 A March 23, 2022, 2:41 p.m. OK GNU C++17 (64) TESTS 6 0 0
150610323 Ray_Striker A March 23, 2022, 12:58 p.m. OK GNU C++17 (64) TESTS 6 0 0
150604429 apophis42 A March 23, 2022, 11:57 a.m. OK GNU C++17 (64) TESTS 6 0 0
150589191 VecTest A March 23, 2022, 9:03 a.m. OK GNU C++17 (64) TESTS 6 0 0
150631646 roadtoh A March 23, 2022, 4:33 p.m. OK GNU C++20 (64) TESTS 6 0 0
150630324 JAI_MAHAKAAL A March 23, 2022, 4:16 p.m. OK GNU C++20 (64) TESTS 6 0 0
150626361 Ayham_Dabah A March 23, 2022, 3:28 p.m. OK GNU C++20 (64) TESTS 6 0 0
150645186 ibrahim_237_ A March 23, 2022, 7:28 p.m. OK GNU C++20 (64) TESTS 6 0 0
150649694 Kirill_Maglysh A March 23, 2022, 8:43 p.m. OK GNU C++20 (64) TESTS 6 0 0
150650567 shiv_314 A March 23, 2022, 8:59 p.m. OK GNU C++20 (64) TESTS 6 0 0
150663077 wumbus A March 24, 2022, 3 a.m. OK GNU C++20 (64) TESTS 6 0 0
150668281 pratham_bansal A March 24, 2022, 5:02 a.m. OK GNU C++20 (64) TESTS 6 0 0
150669715 vardaan_dua A March 24, 2022, 5:30 a.m. OK GNU C++20 (64) TESTS 6 0 0
150670573 AAAzsf A March 24, 2022, 5:45 a.m. OK GNU C++20 (64) TESTS 6 0 0
150563872 QianciJun A March 23, 2022, 2:51 a.m. OK Go TESTS 6 15 0
150561441 quanjun A March 23, 2022, 1:48 a.m. OK Go TESTS 6 93 102400
150667482 Debojit219 A March 24, 2022, 4:46 a.m. OK Java 11 TESTS 6 155 0
150593104 swarup_312 A March 23, 2022, 9:50 a.m. OK Java 11 TESTS 6 155 0
150594919 LaDDlaOP A March 23, 2022, 10:14 a.m. OK Java 11 TESTS 6 156 0
150644766 Ragaa A March 23, 2022, 7:22 p.m. OK Java 11 TESTS 6 156 0
150601516 vijender_8601 A March 23, 2022, 11:27 a.m. OK Java 11 TESTS 6 171 0
150575869 the_unseen A March 23, 2022, 6:23 a.m. OK Java 11 TESTS 6 171 0
150579011 akashkumarkly A March 23, 2022, 6:59 a.m. OK Java 11 TESTS 6 171 0
150633831 g0dzilla A March 23, 2022, 5:03 p.m. OK Java 11 TESTS 6 171 0
150616599 coder_ha A March 23, 2022, 1:57 p.m. OK Java 11 TESTS 6 171 0
150615283 kartheek542 A March 23, 2022, 1:46 p.m. OK Java 11 TESTS 6 171 0
150557744 adeon A March 22, 2022, 11:57 p.m. OK Java 8 TESTS 6 92 0
150610433 Yehia8 A March 23, 2022, 1 p.m. OK Java 8 TESTS 6 93 0
150589812 ShivamMehta A March 23, 2022, 9:11 a.m. OK Java 8 TESTS 6 93 5836800
150669702 P_Key26dec A March 24, 2022, 5:29 a.m. OK Java 8 TESTS 6 93 17817600
150667538 HemantSood A March 24, 2022, 4:47 a.m. OK Java 8 TESTS 6 108 0
150566564 v3n1v1c11v1c1 A March 23, 2022, 3:53 a.m. OK Java 8 TESTS 6 108 0
150570649 DEMO23 A March 23, 2022, 5:06 a.m. OK Java 8 TESTS 6 108 0
150615276 _snowballsenpai A March 23, 2022, 1:46 p.m. OK Java 8 TESTS 6 109 7782400
150643274 CrinklyGolem A March 23, 2022, 7:01 p.m. OK Java 8 TESTS 6 124 0
150653168 koolcoder101 A March 23, 2022, 9:50 p.m. OK Java 8 TESTS 6 124 0
150577556 _Astron A March 23, 2022, 6:42 a.m. OK Kotlin 1.4 TESTS 6 108 0
150541377 qsqnk A March 22, 2022, 6:38 p.m. OK Kotlin 1.5 TESTS 6 264 0
150578458 crohitp9 A March 23, 2022, 6:52 a.m. OK Kotlin 1.5 TESTS 6 280 512000
150575223 min_wyl A March 23, 2022, 6:15 a.m. OK MS C++ 2017 TESTS 6 15 0
150561234 F_Rio A March 23, 2022, 1:42 a.m. OK MS C++ 2017 TESTS 6 15 0
150564651 vmffotltka A March 23, 2022, 3:10 a.m. OK MS C++ 2017 TESTS 6 15 0
150631639 MaksimLogic A March 23, 2022, 4:33 p.m. OK MS C++ 2017 TESTS 6 15 0
150610222 Damirca A March 23, 2022, 12:57 p.m. OK MS C++ 2017 TESTS 6 15 0
150598612 mikasamikoto A March 23, 2022, 10:58 a.m. OK MS C++ 2017 TESTS 6 15 0
150594065 Reno09 A March 23, 2022, 10:03 a.m. OK MS C++ 2017 TESTS 6 15 0
150588078 Levi__Ackerman A March 23, 2022, 8:51 a.m. OK MS C++ 2017 TESTS 6 15 0
150576893 XQB A March 23, 2022, 6:34 a.m. OK MS C++ 2017 TESTS 6 15 0
150576111 Kanam A March 23, 2022, 6:26 a.m. OK MS C++ 2017 TESTS 6 15 0
150568471 bluemegane A March 23, 2022, 4:29 a.m. OK .NET Core C# TESTS 6 93 307200
150553118 Matumba A March 22, 2022, 9:46 p.m. OK .NET Core C# TESTS 6 93 409600
150539014 suraj A March 22, 2022, 6:10 p.m. OK .NET Core C# TESTS 6 109 921600
150554396 toxahak A March 22, 2022, 10:16 p.m. OK Node.js TESTS 6 109 3584000
150669909 hjkim A March 24, 2022, 5:33 a.m. OK PyPy 3 TESTS 6 124 2764800
150625449 vaibhav_india A March 23, 2022, 3:19 p.m. OK PyPy 3 TESTS 6 124 2764800
150575446 kwin A March 23, 2022, 6:18 a.m. OK PyPy 3 TESTS 6 124 3379200
150658331 toam A March 24, 2022, 12:33 a.m. OK PyPy 3 TESTS 6 124 3686400
150642210 Aestroix A March 23, 2022, 6:45 p.m. OK PyPy 3 TESTS 6 140 5427200
150598224 hy2850 A March 23, 2022, 10:53 a.m. OK PyPy 3 TESTS 6 171 4505600
150540270 Jguerra47 A March 22, 2022, 6:24 p.m. OK PyPy 3 TESTS 6 171 4505600
150566700 rutz12 A March 23, 2022, 3:55 a.m. OK PyPy 3 TESTS 6 171 4608000
150599056 Tverrrr A March 23, 2022, 11:02 a.m. OK PyPy 3 TESTS 6 171 4915200
150640830 erudition_0705 A March 23, 2022, 6:26 p.m. OK PyPy 3 TESTS 6 186 4710400
150576798 notTehlka A March 23, 2022, 6:33 a.m. OK PyPy 3-64 TESTS 6 62 4198400
150582907 raushnn A March 23, 2022, 7:46 a.m. OK PyPy 3-64 TESTS 6 77 4300800
150640384 xenonide A March 23, 2022, 6:22 p.m. OK PyPy 3-64 TESTS 6 77 5017600
150602670 xabialonso14 A March 23, 2022, 11:40 a.m. OK PyPy 3-64 TESTS 6 92 4608000
150668115 Pandeyjiii8250 A March 24, 2022, 4:59 a.m. OK PyPy 3-64 TESTS 6 92 4710400
150630458 nitish420 A March 23, 2022, 4:18 p.m. OK PyPy 3-64 TESTS 6 93 4300800
150602766 xabialonso14 A March 23, 2022, 11:41 a.m. OK PyPy 3-64 TESTS 6 93 5017600
150570544 viraldoshi A March 23, 2022, 5:04 a.m. OK PyPy 3-64 TESTS 6 93 5017600
150548432 Liberator187 A March 22, 2022, 8:18 p.m. OK PyPy 3-64 TESTS 6 93 5836800
150662212 Lhohelhohehmm A March 24, 2022, 2:35 a.m. OK PyPy 3-64 TESTS 6 108 4300800
150641179 elistark A March 23, 2022, 6:31 p.m. OK Python 2 TESTS 6 15 0
150670542 OLOGY A March 24, 2022, 5:44 a.m. OK Python 2 TESTS 6 30 0
150668717 OLOGY A March 24, 2022, 5:11 a.m. OK Python 2 TESTS 6 31 0
150596293 test_test_account A March 23, 2022, 10:31 a.m. OK Python 3 TESTS 6 31 0
150592071 Wilbert1124 A March 23, 2022, 9:37 a.m. OK Python 3 TESTS 6 31 0
150585222 sakethchamalla A March 23, 2022, 8:17 a.m. OK Python 3 TESTS 6 31 0
150538464 eugalt A March 22, 2022, 6:04 p.m. OK Python 3 TESTS 6 31 0
150537439 AhmdJabr A March 22, 2022, 5:53 p.m. OK Python 3 TESTS 6 31 0
150581864 mrifat006 A March 23, 2022, 7:33 a.m. OK Python 3 TESTS 6 46 0
150559452 Machiorpolly A March 23, 2022, 12:46 a.m. OK Python 3 TESTS 6 46 0
150538138 harshitdohare A March 22, 2022, 6 p.m. OK Python 3 TESTS 6 46 0
150640606 pushkar_j A March 23, 2022, 6:24 p.m. OK Python 3 TESTS 6 46 204800
150660804 Muhammad.Daniyal A March 24, 2022, 1:54 a.m. OK Python 3 TESTS 6 61 0
150557557 Spheniscine A March 22, 2022, 11:51 p.m. OK Rust 2021 TESTS 6 15 102400

remove filters

Back to search problems