Educational Codeforces Round 156 (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
1886 Educational Codeforces Round 156 (Rated for Div. 2) FINISHED False 7200 40317863 Oct. 9, 2023, 2:35 p.m.

Problems

Solved$
Index
Name
Type
Tags
Community Tag
Rating
( 16582 ) B Fear of the Dark PROGRAMMING binary search geometry math

B"Monocarp tries to get home from work. He is currently at the point O = (0, 0) of a two-dimensional plane; his house is at the point P = (P_x, P_y) . Unfortunately, it is late in the evening, so it is very dark. Monocarp is afraid of the darkness. He would like to go home along a path illuminated by something. Thankfully, there are two lanterns, located in the points A = (A_x, A_y) and B = (B_x, B_y) . You can choose any non-negative number w and set the power of both lanterns to w . If a lantern's power is set to w , it illuminates a circle of radius w centered at the lantern location (including the borders of the circle). You have to choose the minimum non-negative value w for the power of the lanterns in such a way that there is a path from the point O to the point P which is completely illuminated. You may assume that the lanterns don't interfere with Monocarp's movement. The first line of the input contains one integer t ( 1 <= t <= 10^4 ) -- the number of test cases. Each test case consists of three lines: Additional constraint on the input: For each test case, print the answer on a separate line -- one real number equal to the minimum value of w such that there is a completely illuminated path from the point O to the point P . Your answer will be considered correct if its absolute or relative error does not exceed 10^{-6} -- formally, if your answer is a , and the jury's answer is b , your answer will be accepted if dfrac{|a - b|}{ max(1, b)} <= 10^{-6} . "...

Tutorials

Educational Codeforces Round 156 Editorial

Submissions

Submission Id
Author(s)
Index
Submitted
Verdict
Language
Test Set
Tests Passed
Time taken (ms)
Memory Consumed (bytes)
Tags
Rating
227429083 Fagun B Oct. 9, 2023, 4:55 p.m. OK C# 10 TESTS 5 93 2867200
227467529 bluemegane B Oct. 10, 2023, 1:18 a.m. OK C# 8 TESTS 5 171 3686400
227448062 siddhbhalodia B Oct. 9, 2023, 7:13 p.m. OK Clang++17 Diagnostics TESTS 5 343 1024000
227433962 siddhbhalodia B Oct. 9, 2023, 5:21 p.m. OK Clang++17 Diagnostics TESTS 5 358 1024000
227440666 ddkdqs B Oct. 9, 2023, 6:08 p.m. OK Clang++20 Diagnostics TESTS 5 233 0
227434393 aastik231205 B Oct. 9, 2023, 5:24 p.m. OK GNU C11 TESTS 5 78 0
227461566 davidsha_1 B Oct. 9, 2023, 10:26 p.m. OK GNU C11 TESTS 5 78 0
227429734 Nishant_2728 B Oct. 9, 2023, 4:58 p.m. OK GNU C11 TESTS 5 78 0
227440284 jhmm1905 B Oct. 9, 2023, 6:05 p.m. OK GNU C11 TESTS 5 93 0
227424093 Chetan12 B Oct. 9, 2023, 4:37 p.m. OK GNU C11 TESTS 5 93 0
227423132 pornthip.fon B Oct. 9, 2023, 4:34 p.m. OK GNU C11 TESTS 5 93 0
227478236 peter112358 B Oct. 10, 2023, 4:15 a.m. OK GNU C++14 TESTS 5 15 0
227427263 teateart B Oct. 9, 2023, 4:48 p.m. OK GNU C++14 TESTS 5 30 0
227436918 username1919810 B Oct. 9, 2023, 5:42 p.m. OK GNU C++14 TESTS 5 31 0
227436558 ahsan_prantik B Oct. 9, 2023, 5:39 p.m. OK GNU C++14 TESTS 5 31 0
227465369 hby2004 B Oct. 10, 2023, 12:27 a.m. OK GNU C++14 TESTS 5 31 0
227464759 hby2004 B Oct. 10, 2023, 12:09 a.m. OK GNU C++14 TESTS 5 31 0
227463984 kifuan B Oct. 9, 2023, 11:44 p.m. OK GNU C++14 TESTS 5 31 0
227460672 TheTennisPlayer B Oct. 9, 2023, 10:03 p.m. OK GNU C++14 TESTS 5 31 0
227442270 phongan105 B Oct. 9, 2023, 6:20 p.m. OK GNU C++14 TESTS 5 31 0
227465453 Guitar_Jasmine B Oct. 10, 2023, 12:29 a.m. OK GNU C++14 TESTS 5 31 0
227422139 Golden_Snitch17 B Oct. 9, 2023, 4:33 p.m. OK GNU C++17 TESTS 5 30 0
227469206 wfycsw0 B Oct. 10, 2023, 1:52 a.m. OK GNU C++17 TESTS 5 30 0
227453857 Akash_07 B Oct. 9, 2023, 8:15 p.m. OK GNU C++17 TESTS 5 31 0
227450755 EldoSantos B Oct. 9, 2023, 7:40 p.m. OK GNU C++17 TESTS 5 31 0
227466445 ak00 B Oct. 10, 2023, 12:52 a.m. OK GNU C++17 TESTS 5 31 0
227467807 Bunny_R B Oct. 10, 2023, 1:24 a.m. OK GNU C++17 TESTS 5 31 0
227484204 i-Shinobi B Oct. 10, 2023, 5:31 a.m. OK GNU C++17 TESTS 5 31 0
227460958 mandr B Oct. 9, 2023, 10:10 p.m. OK GNU C++17 TESTS 5 31 0
227456681 cf-is-my-gf B Oct. 9, 2023, 8:52 p.m. OK GNU C++17 TESTS 5 31 0
227458298 AdhikariBabu B Oct. 9, 2023, 9:17 p.m. OK GNU C++17 TESTS 5 31 0
227464114 ethening B Oct. 9, 2023, 11:49 p.m. OK GNU C++17 (64) TESTS 5 15 0
227463579 MarcusL B Oct. 9, 2023, 11:30 p.m. OK GNU C++17 (64) TESTS 5 15 3174400
227470617 PiyushBih_86 B Oct. 10, 2023, 2:19 a.m. OK GNU C++17 (64) TESTS 5 30 0
227485361 GGodSSpeed B Oct. 10, 2023, 5:46 a.m. OK GNU C++17 (64) TESTS 5 30 0
227468954 chinawcp B Oct. 10, 2023, 1:48 a.m. OK GNU C++17 (64) TESTS 5 30 307200
227481881 zhi_fan B Oct. 10, 2023, 5:04 a.m. OK GNU C++17 (64) TESTS 5 31 0
227471264 Once_I_Liked_AGirl B Oct. 10, 2023, 2:30 a.m. OK GNU C++17 (64) TESTS 5 31 0
227469025 _yolanda_ B Oct. 10, 2023, 1:49 a.m. OK GNU C++17 (64) TESTS 5 31 0
227482746 v2x1 B Oct. 10, 2023, 5:14 a.m. OK GNU C++17 (64) TESTS 5 31 0
227482639 youmi_45 B Oct. 10, 2023, 5:13 a.m. OK GNU C++17 (64) TESTS 5 31 0
227479680 aiss.27 B Oct. 10, 2023, 4:36 a.m. OK GNU C++20 (64) TESTS 5 15 0
227470253 Soorraw B Oct. 10, 2023, 2:12 a.m. OK GNU C++20 (64) TESTS 5 15 0
227430094 uditmehra3224 B Oct. 9, 2023, 4:59 p.m. OK GNU C++20 (64) TESTS 5 15 0
227433714 s_jaskaran_s B Oct. 9, 2023, 5:20 p.m. OK GNU C++20 (64) TESTS 5 30 0
227467027 huangpj B Oct. 10, 2023, 1:06 a.m. OK GNU C++20 (64) TESTS 5 30 0
227485074 hnust_wanjiawen B Oct. 10, 2023, 5:42 a.m. OK GNU C++20 (64) TESTS 5 30 0
227425391 Adel_Mahmoud B Oct. 9, 2023, 4:40 p.m. OK GNU C++20 (64) TESTS 5 30 0
227485790 nguyenquocthinhhung B Oct. 10, 2023, 5:51 a.m. OK GNU C++20 (64) TESTS 5 31 0
227486114 pxngvin B Oct. 10, 2023, 5:55 a.m. OK GNU C++20 (64) TESTS 5 31 0
227486270 TheAnt B Oct. 10, 2023, 5:56 a.m. OK GNU C++20 (64) TESTS 5 31 0
227475629 Satori555 B Oct. 10, 2023, 3:36 a.m. OK Go TESTS 5 810 1740800
227433907 _habibur_rahman B Oct. 9, 2023, 5:21 p.m. OK Java 11 TESTS 5 218 0
227476586 Pirate_coder82 B Oct. 10, 2023, 3:51 a.m. OK Java 11 TESTS 5 233 0
227473624 barbar1k B Oct. 10, 2023, 3:09 a.m. OK Java 11 TESTS 5 233 0
227432110 Edge_Tree B Oct. 9, 2023, 5:10 p.m. OK Java 11 TESTS 5 249 40345600
227436528 Kshitij_Varshney B Oct. 9, 2023, 5:39 p.m. OK Java 11 TESTS 5 389 0
227471152 BlizGale B Oct. 10, 2023, 2:28 a.m. OK Java 17 TESTS 5 218 0
227462943 vikash_45 B Oct. 9, 2023, 11:07 p.m. OK Java 17 TESTS 5 233 614400
227425548 anand_mishra_ B Oct. 9, 2023, 4:41 p.m. OK Java 17 TESTS 5 234 0
227427630 prateeksama2003 B Oct. 9, 2023, 4:49 p.m. OK Java 17 TESTS 5 234 409600
227454360 daksh_02 B Oct. 9, 2023, 8:22 p.m. OK Java 17 TESTS 5 265 2252800
227474443 AKhacks B Oct. 10, 2023, 3:21 a.m. OK Java 17 TESTS 5 280 716800
227435156 202152321 B Oct. 9, 2023, 5:29 p.m. OK Java 17 TESTS 5 343 512000
227484244 saurabh_thakre B Oct. 10, 2023, 5:32 a.m. OK Java 17 TESTS 5 343 614400
227473403 dilshar23 B Oct. 10, 2023, 3:05 a.m. OK Java 17 TESTS 5 343 1024000
227448040 yaswanth_coder B Oct. 9, 2023, 7:12 p.m. OK Java 17 TESTS 5 358 819200
227469348 Ligh0x74 B Oct. 10, 2023, 1:54 a.m. OK Java 21 TESTS 5 218 0
227468263 Ligh0x74 B Oct. 10, 2023, 1:34 a.m. OK Java 21 TESTS 5 218 0
227468465 Ligh0x74 B Oct. 10, 2023, 1:38 a.m. OK Java 21 TESTS 5 233 0
227440436 v3n1v1c11v1c1 B Oct. 9, 2023, 6:06 p.m. OK Java 21 TESTS 5 233 0
227446564 arutsudar B Oct. 9, 2023, 6:58 p.m. OK Java 8 TESTS 5 140 0
227433413 Monarch321 B Oct. 9, 2023, 5:18 p.m. OK Java 8 TESTS 5 155 0
227426364 Zhanzhe_Lee B Oct. 9, 2023, 4:44 p.m. OK Java 8 TESTS 5 155 0
227424682 priyaroy3370 B Oct. 9, 2023, 4:38 p.m. OK Java 8 TESTS 5 155 0
227437458 formidablechief_27 B Oct. 9, 2023, 5:46 p.m. OK Java 8 TESTS 5 171 0
227437323 formidablechief_27 B Oct. 9, 2023, 5:45 p.m. OK Java 8 TESTS 5 186 0
227427604 priyaroy3370 B Oct. 9, 2023, 4:49 p.m. OK Java 8 TESTS 5 202 0
227437254 formidablechief_27 B Oct. 9, 2023, 5:44 p.m. OK Java 8 TESTS 5 280 0
227457422 Sumitsingh7 B Oct. 9, 2023, 9:03 p.m. OK Java 8 TESTS 5 312 6860800
227429714 tfq__ B Oct. 9, 2023, 4:58 p.m. OK Java 8 TESTS 5 389 0
227424975 LuisTinoco B Oct. 9, 2023, 4:39 p.m. OK MS C++ 2017 TESTS 5 93 0
227423036 ARPR23 B Oct. 9, 2023, 4:34 p.m. OK MS C++ 2017 TESTS 5 108 0
227436242 Furgoneta B Oct. 9, 2023, 5:36 p.m. OK MS C++ 2017 TESTS 5 109 0
227467699 andy562.dlg B Oct. 10, 2023, 1:21 a.m. OK MS C++ 2017 TESTS 5 109 102400
227433991 Ronstha B Oct. 9, 2023, 5:21 p.m. OK PyPy 3 TESTS 5 561 10342400
227447971 momenelmesady4803 B Oct. 9, 2023, 7:12 p.m. OK PyPy 3 TESTS 5 592 9932800
227441547 shivananda02 B Oct. 9, 2023, 6:15 p.m. OK PyPy 3 TESTS 5 670 10137600
227458590 VidGa B Oct. 9, 2023, 9:23 p.m. OK PyPy 3 TESTS 5 670 10240000
227422819 heisenberg1307 B Oct. 9, 2023, 4:34 p.m. OK PyPy 3 TESTS 5 748 9932800
227473075 udayan8 B Oct. 10, 2023, 3 a.m. OK PyPy 3-64 TESTS 5 218 10752000
227430929 siiuuuu B Oct. 9, 2023, 5:04 p.m. OK PyPy 3-64 TESTS 5 233 10342400
227426581 aspiringquant B Oct. 9, 2023, 4:45 p.m. OK PyPy 3-64 TESTS 5 233 10854400
227434076 Tinky1224 B Oct. 9, 2023, 5:22 p.m. OK PyPy 3-64 TESTS 5 248 10649600
227470688 JinYuManTang B Oct. 10, 2023, 2:20 a.m. OK PyPy 3-64 TESTS 5 248 10956800
227425718 RobinFromTheHood B Oct. 9, 2023, 4:42 p.m. OK PyPy 3-64 TESTS 5 249 10342400
227435363 vedantmishra69 B Oct. 9, 2023, 5:30 p.m. OK PyPy 3-64 TESTS 5 249 10444800
227444359 ipip B Oct. 9, 2023, 6:38 p.m. OK PyPy 3-64 TESTS 5 249 10854400
227472601 Youarenotgood B Oct. 10, 2023, 2:53 a.m. OK PyPy 3-64 TESTS 5 280 9523200
227435853 vedantmishra69 B Oct. 9, 2023, 5:34 p.m. OK PyPy 3-64 TESTS 5 280 10444800
227450201 OM_is_equal_pow_mc_2 B Oct. 9, 2023, 7:35 p.m. OK Python 3 TESTS 5 171 0
227422187 trahmachine B Oct. 9, 2023, 4:33 p.m. OK Python 3 TESTS 5 171 0
227433186 rostoki B Oct. 9, 2023, 5:16 p.m. OK Python 3 TESTS 5 171 614400
227469839 upwarder1 B Oct. 10, 2023, 2:04 a.m. OK Python 3 TESTS 5 186 0
227460127 AhmadObaidat B Oct. 9, 2023, 9:51 p.m. OK Python 3 TESTS 5 186 0
227427044 upwarder1 B Oct. 9, 2023, 4:47 p.m. OK Python 3 TESTS 5 186 0
227483108 eugalt B Oct. 10, 2023, 5:19 a.m. OK Python 3 TESTS 5 187 0
227425068 tashish.2005 B Oct. 9, 2023, 4:40 p.m. OK Python 3 TESTS 5 187 0
227420093 DeadPolymath B Oct. 9, 2023, 4:30 p.m. OK Python 3 TESTS 5 187 0
227484102 eugalt B Oct. 10, 2023, 5:30 a.m. OK Python 3 TESTS 5 187 102400
227446715 Rajveer_100 B Oct. 9, 2023, 6:59 p.m. OK Rust 2021 TESTS 5 15 0
227443150 0npata B Oct. 9, 2023, 6:28 p.m. OK Rust 2021 TESTS 5 15 1024000

remove filters

Back to search problems