Codeforces Round 675 (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
1422 Codeforces Round 675 (Div. 2) FINISHED False 7200 135525311 Oct. 4, 2020, 4:05 p.m.

Problems

Solved$
Index
Name
Type
Tags
Community Tag
Rating
( 21086 ) A Fence PROGRAMMING geometry math

B"Yura is tasked to build a closed fence in shape of an arbitrary non-degenerate simple quadrilateral. He's already got three straight fence segments with known lengths a , b , and c . Now he needs to find out some possible integer length d of the fourth straight fence segment so that he can build the fence using these four segments. In other words, the fence should have a quadrilateral shape with side lengths equal to a , b , c , and d . Help Yura, find any possible length of the fourth side. A non-degenerate simple quadrilateral is such a quadrilateral that no three of its corners lie on the same line, and it does not cross itself. The first line contains a single integer t -- the number of test cases ( 1 <= t <= 1000 ). The next t lines describe the test cases. Each line contains three integers a , b , and c -- the lengths of the three fence segments ( 1 <= a, b, c <= 10^9 ). For each test case print a single integer d -- the length of the fourth fence segment that is suitable for building the fence. If there are multiple answers, print any. We can show that an answer always exists. We can build a quadrilateral with sides 1 , 2 , 3 , 4 . We can build a quadrilateral with sides 12 , 34 , 56 , 42 . "...

Tutorials

Codeforces Round #675 (Div. 2) Editorial

Submissions

Submission Id
Author(s)
Index
Submitted
Verdict
Language
Test Set
Tests Passed
Time taken (ms)
Memory Consumed (bytes)
Tags
Rating
94728766 baiyiheima A Oct. 5, 2020, 2:03 a.m. OK Clang++17 Diagnostics TESTS 11 77 0
94700563 daut-dlang A Oct. 4, 2020, 5:30 p.m. OK D TESTS 11 31 4198400
94737722 cheese-cracker A Oct. 5, 2020, 5:22 a.m. OK D TESTS 11 46 0
94713453 ruban A Oct. 4, 2020, 6:41 p.m. OK Delphi TESTS 11 30 36147200
94714006 ruban A Oct. 4, 2020, 6:46 p.m. OK Delphi TESTS 11 31 44134400
94715150 prince17 A Oct. 4, 2020, 7:01 p.m. OK FPC TESTS 11 30 0
94700959 AbuSuf1an A Oct. 4, 2020, 5:31 p.m. OK GNU C11 TESTS 11 15 0
94711517 swfu_akash A Oct. 4, 2020, 6:26 p.m. OK GNU C11 TESTS 11 15 0
94729589 Redoy_Kumar A Oct. 5, 2020, 2:26 a.m. OK GNU C11 TESTS 11 30 0
94733278 mayeed A Oct. 5, 2020, 3:54 a.m. OK GNU C11 TESTS 11 30 0
94701958 L_for_lol A Oct. 4, 2020, 5:35 p.m. OK GNU C11 TESTS 11 30 0
94736789 rakib12 A Oct. 5, 2020, 5:06 a.m. OK GNU C11 TESTS 11 31 0
94730184 Shakir1ahmed3 A Oct. 5, 2020, 2:42 a.m. OK GNU C11 TESTS 11 31 0
94729424 J_H A Oct. 5, 2020, 2:21 a.m. OK GNU C11 TESTS 11 31 0
94720605 Ekta04 A Oct. 4, 2020, 8:50 p.m. OK GNU C11 TESTS 11 31 0
94732447 Saurabh29 A Oct. 5, 2020, 3:35 a.m. OK GNU C11 TESTS 11 31 0
94739267 ishibashijun A Oct. 5, 2020, 5:49 a.m. OK GNU C++11 TESTS 11 15 0
94738235 kk2.05 A Oct. 5, 2020, 5:31 a.m. OK GNU C++11 TESTS 11 15 0
94736711 boogeyman10 A Oct. 5, 2020, 5:04 a.m. OK GNU C++11 TESTS 11 15 0
94731630 vjudge4 A Oct. 5, 2020, 3:15 a.m. OK GNU C++11 TESTS 11 15 0
94728918 guoyongcong A Oct. 5, 2020, 2:08 a.m. OK GNU C++11 TESTS 11 15 0
94728057 Leidaxxb A Oct. 5, 2020, 1:40 a.m. OK GNU C++11 TESTS 11 15 0
94727338 A_Comme_Amour Meatherm. A Oct. 5, 2020, 1:17 a.m. OK GNU C++11 TESTS 11 15 0
94726303 aTSL A Oct. 5, 2020, 12:37 a.m. OK GNU C++11 TESTS 11 15 0
94725918 ShineEternal A Oct. 5, 2020, 12:21 a.m. OK GNU C++11 TESTS 11 15 0
94725780 Refined_heart A Oct. 5, 2020, 12:14 a.m. OK GNU C++11 TESTS 11 15 0
94735250 say_my_name_ A Oct. 5, 2020, 4:36 a.m. OK GNU C++14 TESTS 11 15 0
94699602 himanshu5057 A Oct. 4, 2020, 5:27 p.m. OK GNU C++14 TESTS 11 15 0
94706733 4Coding A Oct. 4, 2020, 5:53 p.m. OK GNU C++14 TESTS 11 15 0
94717835 Shivraj A Oct. 4, 2020, 7:45 p.m. OK GNU C++14 TESTS 11 15 0
94733846 thatprakhar A Oct. 5, 2020, 4:05 a.m. OK GNU C++14 TESTS 11 15 0
94720115 nooborpro A Oct. 4, 2020, 8:38 p.m. OK GNU C++14 TESTS 11 15 204800
94736096 Fir_Creek A Oct. 5, 2020, 4:52 a.m. OK GNU C++14 TESTS 11 30 0
94735769 timepass086 A Oct. 5, 2020, 4:46 a.m. OK GNU C++14 TESTS 11 30 0
94737939 vaibhavsahni2001 A Oct. 5, 2020, 5:26 a.m. OK GNU C++14 TESTS 11 30 0
94738955 janmansh A Oct. 5, 2020, 5:44 a.m. OK GNU C++14 TESTS 11 30 0
94735211 noob_404 A Oct. 5, 2020, 4:35 a.m. OK GNU C++17 TESTS 11 15 0
94738124 Arian.alm2003 A Oct. 5, 2020, 5:29 a.m. OK GNU C++17 TESTS 11 15 0
94736430 kill_or_be_killed A Oct. 5, 2020, 4:59 a.m. OK GNU C++17 TESTS 11 15 0
94732908 dcypher A Oct. 5, 2020, 3:45 a.m. OK GNU C++17 TESTS 11 15 0
94722745 Men7a A Oct. 4, 2020, 9:51 p.m. OK GNU C++17 TESTS 11 15 0
94712095 bavesh A Oct. 4, 2020, 6:30 p.m. OK GNU C++17 TESTS 11 15 0
94711780 detailer A Oct. 4, 2020, 6:27 p.m. OK GNU C++17 TESTS 11 15 0
94711100 brunoLP A Oct. 4, 2020, 6:24 p.m. OK GNU C++17 TESTS 11 15 0
94703525 jainnirav125 A Oct. 4, 2020, 5:41 p.m. OK GNU C++17 TESTS 11 15 0
94716089 BKaur A Oct. 4, 2020, 7:15 p.m. OK GNU C++17 TESTS 11 15 1638400
94716464 mdjobayairhossain2020 A Oct. 4, 2020, 7:21 p.m. OK GNU C++17 (64) TESTS 11 15 0
94712855 marksman_ A Oct. 4, 2020, 6:36 p.m. OK GNU C++17 (64) TESTS 11 15 0
94718385 Monogon A Oct. 4, 2020, 7:55 p.m. OK GNU C++17 (64) TESTS 11 15 0
94727674 Marckess A Oct. 5, 2020, 1:28 a.m. OK GNU C++17 (64) TESTS 11 15 0
94728676 Gats A Oct. 5, 2020, 2 a.m. OK GNU C++17 (64) TESTS 11 15 0
94729005 LethalPuppy A Oct. 5, 2020, 2:10 a.m. OK GNU C++17 (64) TESTS 11 15 0
94730411 diyora13 A Oct. 5, 2020, 2:48 a.m. OK GNU C++17 (64) TESTS 11 15 0
94731608 Entropt A Oct. 5, 2020, 3:15 a.m. OK GNU C++17 (64) TESTS 11 15 0
94732492 Ketaki A Oct. 5, 2020, 3:37 a.m. OK GNU C++17 (64) TESTS 11 15 0
94716956 sherlocked A Oct. 4, 2020, 7:29 p.m. OK GNU C++17 (64) TESTS 11 15 0
94702460 takezawa A Oct. 4, 2020, 5:37 p.m. OK Go TESTS 11 46 0
94732307 RuthlessAggression A Oct. 5, 2020, 3:32 a.m. OK Java 11 TESTS 11 170 0
94736385 vipin__sharma A Oct. 5, 2020, 4:58 a.m. OK Java 11 TESTS 11 171 0
94711702 yashkundu A Oct. 4, 2020, 6:27 p.m. OK Java 11 TESTS 11 171 0
94722970 rishavsaraf8 A Oct. 4, 2020, 10 p.m. OK Java 11 TESTS 11 186 0
94738106 megalodon23 A Oct. 5, 2020, 5:29 a.m. OK Java 11 TESTS 11 186 0
94729721 tusharjape007 A Oct. 5, 2020, 2:29 a.m. OK Java 11 TESTS 11 187 0
94717131 rafee69029 A Oct. 4, 2020, 7:32 p.m. OK Java 11 TESTS 11 187 0
94738853 harshitsharma A Oct. 5, 2020, 5:42 a.m. OK Java 11 TESTS 11 202 0
94736639 parshwa52 A Oct. 5, 2020, 5:03 a.m. OK Java 11 TESTS 11 202 0
94733750 DeepthansuGvs A Oct. 5, 2020, 4:03 a.m. OK Java 11 TESTS 11 202 0
94709823 Kenb A Oct. 4, 2020, 6:04 p.m. OK Java 8 TESTS 11 108 0
94722064 codebook_2000 A Oct. 4, 2020, 9:34 p.m. OK Java 8 TESTS 11 108 0
94711181 vicky2810 A Oct. 4, 2020, 6:24 p.m. OK Java 8 TESTS 11 109 0
94726088 sandy3355 A Oct. 5, 2020, 12:28 a.m. OK Java 8 TESTS 11 109 0
94711738 procrastinate7 A Oct. 4, 2020, 6:27 p.m. OK Java 8 TESTS 11 109 0
94735989 jon_snow_1999 A Oct. 5, 2020, 4:50 a.m. OK Java 8 TESTS 11 124 0
94733739 Utkarshn101 A Oct. 5, 2020, 4:03 a.m. OK Java 8 TESTS 11 124 0
94730949 GodBhramin_1999 A Oct. 5, 2020, 3:01 a.m. OK Java 8 TESTS 11 124 0
94738199 priyam_anand A Oct. 5, 2020, 5:31 a.m. OK Java 8 TESTS 11 124 0
94734905 Oom A Oct. 5, 2020, 4:28 a.m. OK Java 8 TESTS 11 124 0
94740168 K_K A Oct. 5, 2020, 6:03 a.m. OK JavaScript TESTS 11 31 1536000
94731512 Spheniscine A Oct. 5, 2020, 3:13 a.m. OK Kotlin TESTS 11 139 1024000
94717145 v4_adi A Oct. 4, 2020, 7:33 p.m. OK Kotlin TESTS 11 155 102400
94702575 vitaliy_dubovyk A Oct. 4, 2020, 5:37 p.m. OK Mono C# TESTS 11 62 307200
94723872 braher A Oct. 4, 2020, 10:37 p.m. OK Mono C# TESTS 11 62 307200
94712973 REHCTAPSID A Oct. 4, 2020, 6:36 p.m. OK Mono C# TESTS 11 62 409600
94703320 galca8 A Oct. 4, 2020, 5:40 p.m. OK MS C++ TESTS 11 30 0
94722157 Omar.g A Oct. 4, 2020, 9:37 p.m. OK MS C++ 2017 TESTS 11 31 0
94735878 ayush_kabra A Oct. 5, 2020, 4:48 a.m. OK MS C++ 2017 TESTS 11 31 0
94729436 samsungbreaker A Oct. 5, 2020, 2:21 a.m. OK MS C++ 2017 TESTS 11 31 0
94729294 0319 A Oct. 5, 2020, 2:18 a.m. OK MS C++ 2017 TESTS 11 31 0
94718068 dominotim A Oct. 4, 2020, 7:49 p.m. OK MS C++ 2017 TESTS 11 31 0
94714728 oneskovic A Oct. 4, 2020, 6:55 p.m. OK MS C++ 2017 TESTS 11 31 0
94708397 areo A Oct. 4, 2020, 5:59 p.m. OK MS C++ 2017 TESTS 11 31 0
94707785 Ahmedlotfy4444 A Oct. 4, 2020, 5:57 p.m. OK MS C++ 2017 TESTS 11 31 0
94708528 pandoomanda A Oct. 4, 2020, 6 p.m. OK MS C++ 2017 TESTS 11 31 102400
94730948 SuperCB A Oct. 5, 2020, 3:01 a.m. OK MS C++ 2017 TESTS 11 46 0
94722784 hopelessdreamer A Oct. 4, 2020, 9:53 p.m. OK .NET Core C# TESTS 11 108 409600
94708176 K.Anwar A Oct. 4, 2020, 5:58 p.m. OK .NET Core C# TESTS 11 108 614400
94738148 explorer_sifat A Oct. 5, 2020, 5:30 a.m. OK Node.js TESTS 11 93 1126400
94714780 explorer_sifat A Oct. 4, 2020, 6:55 p.m. OK Node.js TESTS 11 93 1843200
94738892 realnimish A Oct. 5, 2020, 5:43 a.m. OK PyPy 2 TESTS 11 109 409600
94739264 yumtam A Oct. 5, 2020, 5:49 a.m. OK PyPy 2 TESTS 11 109 819200
94720569 lebron87 A Oct. 4, 2020, 8:49 p.m. OK PyPy 2 TESTS 11 140 204800
94711556 manhar A Oct. 4, 2020, 6:26 p.m. OK PyPy 3 TESTS 11 140 1536000
94721704 shaanrockz A Oct. 4, 2020, 9:22 p.m. OK PyPy 3 TESTS 11 140 1638400
94740200 Izumi___Sagiri A Oct. 5, 2020, 6:04 a.m. OK PyPy 3 TESTS 11 155 1331200
94734389 Anuranjan_Pandey A Oct. 5, 2020, 4:17 a.m. OK PyPy 3 TESTS 11 155 1740800
94734602 ss7890 A Oct. 5, 2020, 4:21 a.m. OK PyPy 3 TESTS 11 155 2150400
94726620 pikachu_pika_pika A Oct. 5, 2020, 12:51 a.m. OK PyPy 3 TESTS 11 155 66764800
94713795 UTMoonlight A Oct. 4, 2020, 6:44 p.m. OK PyPy 3 TESTS 11 171 1638400
94704516 manish.17 A Oct. 4, 2020, 5:45 p.m. OK PyPy 3 TESTS 11 171 1638400
94715214 albeXL A Oct. 4, 2020, 7:02 p.m. OK PyPy 3 TESTS 11 171 5427200
94715160 albeXL A Oct. 4, 2020, 7:01 p.m. OK PyPy 3 TESTS 11 171 5427200
94732496 s_agnik1511 A Oct. 5, 2020, 3:37 a.m. OK Python 3 TESTS 11 93 0
94732003 choppy A Oct. 5, 2020, 3:25 a.m. OK Python 3 TESTS 11 93 0
94731110 Asif_Adnan A Oct. 5, 2020, 3:04 a.m. OK Python 3 TESTS 11 93 0
94715639 YogeshT A Oct. 4, 2020, 7:08 p.m. OK Python 3 TESTS 11 93 0
94715215 tan_delhi A Oct. 4, 2020, 7:02 p.m. OK Python 3 TESTS 11 93 0
94711617 vasanthagopikrishna A Oct. 4, 2020, 6:26 p.m. OK Python 3 TESTS 11 93 0
94702537 manug A Oct. 4, 2020, 5:37 p.m. OK Python 3 TESTS 11 93 0
94738934 scuby30 A Oct. 5, 2020, 5:44 a.m. OK Python 3 TESTS 11 108 0
94735410 pranali.yangandul93 A Oct. 5, 2020, 4:39 a.m. OK Python 3 TESTS 11 108 0
94733766 arvind_241999 A Oct. 5, 2020, 4:03 a.m. OK Python 3 TESTS 11 108 0
94718330 eugalt A Oct. 4, 2020, 7:55 p.m. OK Ruby TESTS 11 483 307200
94715314 wow_ok A Oct. 4, 2020, 7:03 p.m. OK Ruby TESTS 11 483 819200
94716059 LeoRiether A Oct. 4, 2020, 7:14 p.m. OK Rust TESTS 11 31 0
94715668 anvorguesa A Oct. 4, 2020, 7:08 p.m. OK Rust TESTS 11 46 0
94715021 anvorguesa A Oct. 4, 2020, 6:59 p.m. OK Rust TESTS 11 46 0
94711357 SathemBite A Oct. 4, 2020, 6:25 p.m. OK Scala TESTS 11 514 0

remove filters

Back to search problems