Codeforces Round 820 (Div. 3)

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
1729 Codeforces Round 820 (Div. 3) FINISHED False 8100 68829899 Sept. 12, 2022, 2:35 p.m.

Problems

Solved$
Index
Name
Type
Tags
Community Tag
Rating
( 40765 ) A Two Elevators PROGRAMMING math

B'Vlad went into his appartment house entrance, now he is on the 1 -th floor. He was going to call the elevator to go up to his apartment. There are only two elevators in his house. Vlad knows for sure that: If you call the first elevator, it will immediately start to go to the floor 1 . If you call the second one, then first it will reach the floor c and only then it will go to the floor 1 . It takes |x - y| seconds for each elevator to move from floor x to floor y . Vlad wants to call an elevator that will come to him faster. Help him choose such an elevator. The first line of the input contains the only t ( 1 <= t <= 10^4 ) -- the number of test cases. This is followed by t lines, three integers each a , b and c ( 1 <= a, b, c <= 10^8 , b ne c ) -- floor numbers described in the statement. Output t numbers, each of which is the answer to the corresponding test case. As an answer, output: In the first test case of the example, the first elevator is already on the floor of 1 . In the second test case of the example, when called, the elevators would move as follows: In the third test case of the example, the first elevator will arrive in 2 seconds, and the second in 1 . '...

Tutorials

Codeforces Round #820 (Div. 3) Editorial

Submissions

Submission Id
Author(s)
Index
Submitted
Verdict
Language
Test Set
Tests Passed
Time taken (ms)
Memory Consumed (bytes)
Tags
Rating
171958176 qsxsq A Sept. 12, 2022, 6:10 p.m. OK C# 10 TESTS 2 46 3174400
171993042 svs3107 A Sept. 13, 2022, 5:27 a.m. OK C# 10 TESTS 5 77 3072000
171948663 adavid A Sept. 12, 2022, 5:05 p.m. OK C# 8 TESTS 2 109 2355200
171975520 bluemegane A Sept. 12, 2022, 10:41 p.m. OK C# 8 TESTS 5 109 2355200
171956177 Semelion A Sept. 12, 2022, 5:54 p.m. OK Clang++17 Diagnostics TESTS 2 171 0
171991295 EkaterinaM2601 A Sept. 13, 2022, 5:01 a.m. OK Clang++17 Diagnostics TESTS 5 186 0
171949981 jaikrushnabinnar11 A Sept. 12, 2022, 5:11 p.m. OK Clang++17 Diagnostics TESTS 2 202 0
171990483 zwu2021016707 A Sept. 13, 2022, 4:48 a.m. OK Clang++17 Diagnostics TESTS 5 202 0
171990741 zlue A Sept. 13, 2022, 4:52 a.m. OK Clang++20 Diagnostics TESTS 5 202 0
171948575 DarkWillow A Sept. 12, 2022, 5:04 p.m. OK GNU C11 TESTS 2 15 0
171988429 RichengXu A Sept. 13, 2022, 4:15 a.m. OK GNU C11 TESTS 5 15 0
171975929 gxlois A Sept. 12, 2022, 10:54 p.m. OK GNU C11 TESTS 5 15 0
171959196 Cloud09 A Sept. 12, 2022, 6:20 p.m. OK GNU C11 TESTS 2 31 0
171984910 sodapin A Sept. 13, 2022, 3:03 a.m. OK GNU C11 TESTS 5 46 0
171986270 01521536261 A Sept. 13, 2022, 3:30 a.m. OK GNU C11 TESTS 5 46 0
171988019 T007 A Sept. 13, 2022, 4:08 a.m. OK GNU C11 TESTS 5 46 0
171990155 Siraj_rahat A Sept. 13, 2022, 4:42 a.m. OK GNU C11 TESTS 5 46 0
171992419 5817Nowshin A Sept. 13, 2022, 5:17 a.m. OK GNU C11 TESTS 5 46 0
171971257 sharifrayhan A Sept. 12, 2022, 8:57 p.m. OK GNU C11 TESTS 5 46 0
171956434 Sourabh_K1 A Sept. 12, 2022, 5:56 p.m. OK GNU C++14 TESTS 2 0 0
171958234 mos A Sept. 12, 2022, 6:11 p.m. OK GNU C++14 TESTS 2 0 0
171977768 behuymummim A Sept. 13, 2022, 12:04 a.m. OK GNU C++14 TESTS 5 0 0
171979674 next_here A Sept. 13, 2022, 12:58 a.m. OK GNU C++14 TESTS 5 0 0
171979733 floating_clouds A Sept. 13, 2022, 1 a.m. OK GNU C++14 TESTS 5 0 0
171983134 CarroT1212 A Sept. 13, 2022, 2:25 a.m. OK GNU C++14 TESTS 5 0 0
171986218 MAYESEN A Sept. 13, 2022, 3:29 a.m. OK GNU C++14 TESTS 5 0 0
171988999 Iamlgs A Sept. 13, 2022, 4:23 a.m. OK GNU C++14 TESTS 5 0 0
171989625 jtf_shine A Sept. 13, 2022, 4:33 a.m. OK GNU C++14 TESTS 5 0 0
171992359 zhichenlin A Sept. 13, 2022, 5:16 a.m. OK GNU C++14 TESTS 5 0 0
171995261 abhaygupta08 A Sept. 13, 2022, 5:57 a.m. OK GNU C++17 TESTS 5 0 0
171994370 Live_to_learn A Sept. 13, 2022, 5:45 a.m. OK GNU C++17 TESTS 5 0 0
171992615 ExlpveYllYfrexDzey123 A Sept. 13, 2022, 5:20 a.m. OK GNU C++17 TESTS 5 0 0
171992571 uchiha22 A Sept. 13, 2022, 5:19 a.m. OK GNU C++17 TESTS 5 0 0
171989739 man.ahluwalia13 A Sept. 13, 2022, 4:35 a.m. OK GNU C++17 TESTS 5 0 0
171989730 strgglr A Sept. 13, 2022, 4:35 a.m. OK GNU C++17 TESTS 5 0 0
171988040 Carpenters_Cat A Sept. 13, 2022, 4:08 a.m. OK GNU C++17 TESTS 5 0 0
171987049 panda_2500 A Sept. 13, 2022, 3:48 a.m. OK GNU C++17 TESTS 5 0 0
171985637 cronton A Sept. 13, 2022, 3:18 a.m. OK GNU C++17 TESTS 5 0 0
171985368 blasterking A Sept. 13, 2022, 3:13 a.m. OK GNU C++17 TESTS 5 0 0
171964196 I_am_Sherlocked A Sept. 12, 2022, 7:12 p.m. OK GNU C++17 (64) TESTS 2 0 0
171985996 code_ninja_123 A Sept. 13, 2022, 3:25 a.m. OK GNU C++17 (64) TESTS 5 0 0
171984049 osamaBelal A Sept. 13, 2022, 2:45 a.m. OK GNU C++17 (64) TESTS 5 0 0
171971418 NourTarek201 A Sept. 12, 2022, 9 p.m. OK GNU C++17 (64) TESTS 5 0 0
171959941 Adarshrana205 A Sept. 12, 2022, 6:27 p.m. OK GNU C++17 (64) TESTS 2 0 0
171953644 Krzychuo A Sept. 12, 2022, 5:34 p.m. OK GNU C++17 (64) TESTS 2 0 0
171945105 ardekarsanket A Sept. 12, 2022, 4:52 p.m. OK GNU C++17 (64) TESTS 2 0 0
171945013 MaGnsi0 A Sept. 12, 2022, 4:51 p.m. OK GNU C++17 (64) TESTS 2 0 0
171974769 boby_11 A Sept. 12, 2022, 10:20 p.m. OK GNU C++17 (64) TESTS 5 0 409600
171992746 hbnd_jaw1 A Sept. 13, 2022, 5:22 a.m. OK GNU C++17 (64) TESTS 5 15 0
171989060 rewritethemoon A Sept. 13, 2022, 4:24 a.m. OK GNU C++20 (64) TESTS 5 0 0
171992188 sad_panda A Sept. 13, 2022, 5:14 a.m. OK GNU C++20 (64) TESTS 5 0 0
171992200 Nakamiya A Sept. 13, 2022, 5:14 a.m. OK GNU C++20 (64) TESTS 5 0 0
171993231 UN_predictable A Sept. 13, 2022, 5:29 a.m. OK GNU C++20 (64) TESTS 5 0 0
171993393 pranavcoder00 A Sept. 13, 2022, 5:31 a.m. OK GNU C++20 (64) TESTS 5 0 0
171993855 anushka171 A Sept. 13, 2022, 5:38 a.m. OK GNU C++20 (64) TESTS 5 0 0
171994215 F_Rio A Sept. 13, 2022, 5:43 a.m. OK GNU C++20 (64) TESTS 5 0 0
171995542 rakshith21mohan A Sept. 13, 2022, 6 a.m. OK GNU C++20 (64) TESTS 5 0 0
171992175 KiaraTeAmo A Sept. 13, 2022, 5:14 a.m. OK GNU C++20 (64) TESTS 5 0 0
171991744 archived_spark A Sept. 13, 2022, 5:08 a.m. OK GNU C++20 (64) TESTS 5 0 0
171974283 pepradere A Sept. 12, 2022, 10:06 p.m. OK Go TESTS 5 46 716800
171970719 artemmarkaryan A Sept. 12, 2022, 8:47 p.m. OK Go TESTS 5 46 1433600
171982178 graceoflives A Sept. 13, 2022, 2:01 a.m. OK Go TESTS 5 62 204800
171988828 vijender_8601 A Sept. 13, 2022, 4:20 a.m. OK Java 11 TESTS 5 155 0
171979067 Yousef_Badr A Sept. 13, 2022, 12:42 a.m. OK Java 11 TESTS 5 155 0
171978835 Yousef_Badr A Sept. 13, 2022, 12:35 a.m. OK Java 11 TESTS 5 156 0
171953833 Aman_dixit A Sept. 12, 2022, 5:35 p.m. OK Java 11 TESTS 2 156 15052800
171982872 rajan44chauhan A Sept. 13, 2022, 2:19 a.m. OK Java 11 TESTS 5 171 0
171950793 __Serendipity A Sept. 12, 2022, 5:15 p.m. OK Java 11 TESTS 2 171 0
171978308 IceWolf898 A Sept. 13, 2022, 12:20 a.m. OK Java 11 TESTS 5 187 0
171949179 Heni_2021 A Sept. 12, 2022, 5:07 p.m. OK Java 11 TESTS 2 202 0
171951497 meteoLdrago A Sept. 12, 2022, 5:19 p.m. OK Java 11 TESTS 2 217 0
171984393 _milon_3.4 A Sept. 13, 2022, 2:53 a.m. OK Java 11 TESTS 5 233 0
171973382 LeetCodeforces_Null A Sept. 12, 2022, 9:43 p.m. OK Java 17 TESTS 5 171 0
171955483 umangx A Sept. 12, 2022, 5:48 p.m. OK Java 17 TESTS 2 186 0
171947477 07_02 A Sept. 12, 2022, 5 p.m. OK Java 17 TESTS 2 186 307200
171989505 rony038 A Sept. 13, 2022, 4:31 a.m. OK Java 17 TESTS 5 249 102400
171946146 saikrishnarao13 A Sept. 12, 2022, 4:55 p.m. OK Java 17 TESTS 2 280 0
171970995 max. A Sept. 12, 2022, 8:52 p.m. OK Java 17 TESTS 5 280 409600
171967023 prashant121 A Sept. 12, 2022, 7:47 p.m. OK Java 17 TESTS 5 295 512000
171962960 rudra03 A Sept. 12, 2022, 6:58 p.m. OK Java 17 TESTS 2 311 307200
171986949 Violet_Ever_Garden A Sept. 13, 2022, 3:46 a.m. OK Java 17 TESTS 5 312 512000
171948952 Rachhh_04 A Sept. 12, 2022, 5:06 p.m. OK Java 17 TESTS 2 327 0
171959731 KareemAshraf_ A Sept. 12, 2022, 6:25 p.m. OK Java 8 TESTS 2 77 0
171984039 poopoop A Sept. 13, 2022, 2:45 a.m. OK Java 8 TESTS 5 93 0
171980574 chaiku A Sept. 13, 2022, 1:23 a.m. OK Java 8 TESTS 5 93 0
171965785 SilverBlue A Sept. 12, 2022, 7:31 p.m. OK Java 8 TESTS 5 93 0
171955294 r3hab.rs A Sept. 12, 2022, 5:47 p.m. OK Java 8 TESTS 2 93 0
171948933 Koka A Sept. 12, 2022, 5:06 p.m. OK Java 8 TESTS 2 93 0
171948132 DylanSmith A Sept. 12, 2022, 5:03 p.m. OK Java 8 TESTS 2 93 0
171967760 adi_7861 A Sept. 12, 2022, 7:58 p.m. OK Java 8 TESTS 5 108 0
171953980 ahmedTarek28 A Sept. 12, 2022, 5:36 p.m. OK Java 8 TESTS 2 108 0
171950036 govindrajput A Sept. 12, 2022, 5:11 p.m. OK Java 8 TESTS 2 109 0
171991095 kas181 A Sept. 13, 2022, 4:57 a.m. OK MS C++ 2017 TESTS 5 15 0
171982189 6ziv A Sept. 13, 2022, 2:02 a.m. OK MS C++ 2017 TESTS 5 31 0
171985708 Asadashino1 A Sept. 13, 2022, 3:20 a.m. OK MS C++ 2017 TESTS 5 46 0
171973192 Tan2K A Sept. 12, 2022, 9:39 p.m. OK MS C++ 2017 TESTS 5 46 0
171953822 Shoishab_CSE A Sept. 12, 2022, 5:35 p.m. OK MS C++ 2017 TESTS 2 46 0
171983964 zhengzhanghui A Sept. 13, 2022, 2:43 a.m. OK MS C++ 2017 TESTS 5 61 0
171965007 tardib777 A Sept. 12, 2022, 7:21 p.m. OK MS C++ 2017 TESTS 2 61 0
171955577 Abdullah_Mahmoud A Sept. 12, 2022, 5:49 p.m. OK MS C++ 2017 TESTS 2 61 0
171950704 abhivarma209 A Sept. 12, 2022, 5:15 p.m. OK MS C++ 2017 TESTS 2 61 0
171972815 stainlao A Sept. 12, 2022, 9:31 p.m. OK MS C++ 2017 TESTS 5 62 0
171978599 WalrusRamen21 A Sept. 13, 2022, 12:29 a.m. OK PHP TESTS 5 30 0
171956460 priyannk_k A Sept. 12, 2022, 5:56 p.m. OK PyPy 3 TESTS 2 93 3686400
171979284 Liberator187 A Sept. 13, 2022, 12:48 a.m. OK PyPy 3 TESTS 5 155 5427200
171966430 Shristi02 A Sept. 12, 2022, 7:39 p.m. OK PyPy 3 TESTS 5 280 6963200
171983942 agentx70000 A Sept. 13, 2022, 2:42 a.m. OK PyPy 3 TESTS 5 295 7372800
171991223 sagargoel2907 A Sept. 13, 2022, 4:59 a.m. OK PyPy 3 TESTS 5 296 7372800
171976270 kelagnir A Sept. 12, 2022, 11:07 p.m. OK PyPy 3 TESTS 5 296 7372800
171956930 chicosena A Sept. 12, 2022, 6 p.m. OK PyPy 3 TESTS 2 296 7372800
171993441 chandun445 A Sept. 13, 2022, 5:32 a.m. OK PyPy 3 TESTS 5 311 7577600
171980128 samchen123 A Sept. 13, 2022, 1:11 a.m. OK PyPy 3-64 TESTS 5 61 4300800
171982995 theriley106 A Sept. 13, 2022, 2:22 a.m. OK PyPy 3-64 TESTS 5 93 8806400
171968265 crapcode A Sept. 12, 2022, 8:04 p.m. OK PyPy 3-64 TESTS 5 108 9011200
171990575 AmeMis A Sept. 13, 2022, 4:49 a.m. OK PyPy 3-64 TESTS 5 108 9318400
171972758 satyamshrma A Sept. 12, 2022, 9:30 p.m. OK PyPy 3-64 TESTS 5 108 9728000
171992143 nealzane A Sept. 13, 2022, 5:13 a.m. OK PyPy 3-64 TESTS 5 109 9113600
171956392 dyppp A Sept. 12, 2022, 5:55 p.m. OK PyPy 3-64 TESTS 2 109 9932800
171963296 _icy_ A Sept. 12, 2022, 7:02 p.m. OK PyPy 3-64 TESTS 2 124 8806400
171990338 USYDLDH A Sept. 13, 2022, 4:46 a.m. OK PyPy 3-64 TESTS 5 124 9318400
171973110 alxwen711 A Sept. 12, 2022, 9:37 p.m. OK PyPy 3-64 TESTS 5 124 9523200
171968817 Harry_yash A Sept. 12, 2022, 8:14 p.m. OK Python 3 TESTS 5 46 0
171964976 ghoshdimpy02 A Sept. 12, 2022, 7:21 p.m. OK Python 3 TESTS 2 62 819200
171946817 kerimoff_88 A Sept. 12, 2022, 4:57 p.m. OK Python 3 TESTS 2 77 0
171946527 Koresh777 A Sept. 12, 2022, 4:56 p.m. OK Python 3 TESTS 2 78 819200
171985275 AssCumDoor A Sept. 13, 2022, 3:11 a.m. OK Python 3 TESTS 5 92 0
171992900 Lil_Sutta A Sept. 13, 2022, 5:24 a.m. OK Python 3 TESTS 5 93 0
171990328 oddd A Sept. 13, 2022, 4:46 a.m. OK Python 3 TESTS 5 93 0
171988409 Shahruk A Sept. 13, 2022, 4:14 a.m. OK Python 3 TESTS 5 93 0
171977868 happywater A Sept. 13, 2022, 12:07 a.m. OK Python 3 TESTS 5 93 0
171958587 hemanth_127 A Sept. 12, 2022, 6:14 p.m. OK Python 3 TESTS 2 93 819200

remove filters

Back to search problems