Codeforces Round 614 (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
1293 Codeforces Round 614 (Div. 2) FINISHED False 7200 152382299 Jan. 19, 2020, 1:35 p.m.

Problems

Solved$
Index
Name
Type
Tags
Community Tag
Rating
( 21306 ) B JOE is on TV! PROGRAMMING combinatorics greedy math 1000

B'Our dear Cafe 's owner, JOE Miller, will soon take part in a new game TV-show "1 vs. n "! The game goes in rounds, where in each round the host asks JOE and his opponents a common question. All participants failing to answer are eliminated. The show ends when only JOE remains (we assume that JOE never answers a question wrong!). For each question JOE answers, if there are s ( s > 0 ) opponents remaining and t ( 0 <= t <= s ) of them make a mistake on it, JOE receives displaystyle frac{t}{s} dollars, and consequently there will be s - t opponents left for the next question. JOE wonders what is the maximum possible reward he can receive in the best possible scenario. Yet he has little time before show starts, so can you help him answering it instead? The first and single line contains a single integer n ( 1 <= n <= 10^5 ), denoting the number of JOE 's opponents in the show. Print a number denoting the maximum prize (in dollars) JOE could have. Your answer will be considered correct if it 's absolute or relative error won 't exceed 10^{-4} . In other words, if your answer is a and the jury answer is b , then it must hold that frac{|a - b|}{max(1, b)} <= 10^{-4} . In the second example, the best scenario would be: one contestant fails at the first question, the other fails at the next one. The total reward will be displaystyle frac{1}{2} + frac{1}{1} = 1.5 dollars. '...

Tutorials

Codeforces Round #614 Editorial

Submissions

Submission Id
Author(s)
Index
Submitted
Verdict
Language
Test Set
Tests Passed
Time taken (ms)
Memory Consumed (bytes)
Tags
Rating
70384506 aparna03 B Feb. 5, 2020, 5:53 p.m. OK Clang++17 Diagnostics TESTS 50 46 0 1000
70354877 FNtocik B Feb. 5, 2020, 11:58 a.m. OK Clang++17 Diagnostics TESTS 50 46 0 1000
69202141 123priyankarai B Jan. 20, 2020, 4:54 p.m. OK Clang++17 Diagnostics TESTS 50 46 0 1000
69247831 bj47 B Jan. 21, 2020, 1:25 p.m. OK Clang++17 Diagnostics TESTS 50 46 0 1000
69946032 vjudge5 B Feb. 1, 2020, 7:37 a.m. OK Clang++17 Diagnostics TESTS 50 46 0 1000
69294876 srikanth.nettikanti B Jan. 22, 2020, 11:48 a.m. OK Clang++17 Diagnostics TESTS 50 61 0 1000
69131058 chinaxjh B Jan. 19, 2020, 2:45 p.m. OK FPC TESTS 50 31 0 1000
71049095 OtherPhantasy B Feb. 14, 2020, 9:22 a.m. OK FPC TESTS 50 31 0 1000
69139758 Devil_99 B Jan. 19, 2020, 3:15 p.m. OK GNU C11 TESTS 50 15 0 1000
69498392 abhinay070920022 B Jan. 25, 2020, 5:28 a.m. OK GNU C11 TESTS 50 30 0 1000
69136655 soham0_0 B Jan. 19, 2020, 3:04 p.m. OK GNU C11 TESTS 50 30 0 1000
69127434 TARIQ B Jan. 19, 2020, 2:35 p.m. OK GNU C11 TESTS 50 30 0 1000
69957081 AsharEkram B Feb. 1, 2020, 10:26 a.m. OK GNU C11 TESTS 50 31 0 1000
69977569 shasank B Feb. 1, 2020, 3:24 p.m. OK GNU C11 TESTS 50 31 0 1000
70033647 Moeen10 B Feb. 2, 2020, 1:36 p.m. OK GNU C11 TESTS 50 31 0 1000
70304200 Luna_4444 B Feb. 4, 2020, 5:28 p.m. OK GNU C11 TESTS 50 31 0 1000
70443294 vp7070573 B Feb. 6, 2020, 2:33 p.m. OK GNU C11 TESTS 50 31 0 1000
70600537 Dream.to B Feb. 9, 2020, 4:21 a.m. OK GNU C11 TESTS 50 31 0 1000
69277273 szszszszszszsz B Jan. 22, 2020, 3:18 a.m. OK GNU C++11 TESTS 50 15 0 1000
70229910 Darshan4450 B Feb. 4, 2020, 12:10 p.m. OK GNU C++11 TESTS 50 30 0 1000
69144202 AAI B Jan. 19, 2020, 3:29 p.m. OK GNU C++11 TESTS 50 30 0 1000
69178217 TypicalNub B Jan. 20, 2020, 8:58 a.m. OK GNU C++11 TESTS 50 30 0 1000
70823676 Arnob2018331024 B Feb. 12, 2020, 5:23 a.m. OK GNU C++11 TESTS 50 30 0 1000
69277549 luogu_bot5 B Jan. 22, 2020, 3:33 a.m. OK GNU C++11 TESTS 50 30 0 1000
69150927 Alpaca00 B Jan. 19, 2020, 5:37 p.m. OK GNU C++11 TESTS 50 30 614400 1000
70411771 IAT14 B Feb. 6, 2020, 5:35 a.m. OK GNU C++11 TESTS 50 30 716800 1000
71087550 Scipo B Feb. 14, 2020, 10:19 p.m. OK GNU C++11 TESTS 50 31 0 1000
71076801 ankitjakhar448 B Feb. 14, 2020, 5:35 p.m. OK GNU C++11 TESTS 50 31 0 1000
69175327 Kwords B Jan. 20, 2020, 7:52 a.m. OK GNU C++14 TESTS 50 15 0 1000
69598295 ak56867 B Jan. 27, 2020, 6:10 a.m. OK GNU C++14 TESTS 50 15 0 1000
69511400 Saurav_Pandey B Jan. 25, 2020, 10:35 a.m. OK GNU C++14 TESTS 50 15 0 1000
69497086 mariano B Jan. 25, 2020, 4:45 a.m. OK GNU C++14 TESTS 50 15 0 1000
69441951 tithonus B Jan. 23, 2020, 10:25 p.m. OK GNU C++14 TESTS 50 15 0 1000
69269041 maksimb B Jan. 21, 2020, 7:55 p.m. OK GNU C++14 TESTS 50 15 0 1000
69265364 _valhalla B Jan. 21, 2020, 6:25 p.m. OK GNU C++14 TESTS 50 15 0 1000
69234908 dhrumil_22 B Jan. 21, 2020, 10:55 a.m. OK GNU C++14 TESTS 50 15 0 1000
69185945 Ashu_2610 B Jan. 20, 2020, 11:57 a.m. OK GNU C++14 TESTS 50 15 0 1000
69185212 lokeshsingh97 B Jan. 20, 2020, 11:43 a.m. OK GNU C++14 TESTS 50 15 0 1000
69269368 viel_ubung B Jan. 21, 2020, 8:05 p.m. OK GNU C++17 TESTS 50 15 0 1000
69284291 __cloude__ B Jan. 22, 2020, 7:26 a.m. OK GNU C++17 TESTS 50 15 0 1000
69286015 Blank_12 B Jan. 22, 2020, 8:12 a.m. OK GNU C++17 TESTS 50 15 0 1000
69450008 raooZ B Jan. 24, 2020, 5:43 a.m. OK GNU C++17 TESTS 50 15 0 1000
69497379 Chamo B Jan. 25, 2020, 4:55 a.m. OK GNU C++17 TESTS 50 15 0 1000
69507102 2under_EST B Jan. 25, 2020, 9:05 a.m. OK GNU C++17 TESTS 50 15 0 1000
69524624 Siriusbell B Jan. 25, 2020, 2:29 p.m. OK GNU C++17 TESTS 50 15 0 1000
69888230 0d1n B Jan. 31, 2020, 9:01 a.m. OK GNU C++17 TESTS 50 15 0 1000
69938839 vjudge2 B Feb. 1, 2020, 5:20 a.m. OK GNU C++17 TESTS 50 15 0 1000
70697440 vjudge4 B Feb. 10, 2020, 12:08 a.m. OK GNU C++17 TESTS 50 15 0 1000
69644404 moh.amr B Jan. 27, 2020, 11:32 p.m. OK Go TESTS 50 31 0 1000
69514957 bittu18 B Jan. 25, 2020, 11:40 a.m. OK Go TESTS 50 31 0 1000
69222477 tungaqhd B Jan. 21, 2020, 5:30 a.m. OK Go TESTS 50 31 0 1000
69175051 nuccbh B Jan. 20, 2020, 7:45 a.m. OK Go TESTS 50 31 0 1000
70106434 zhuaiballl B Feb. 3, 2020, 3:27 a.m. OK Go TESTS 50 46 0 1000
69764279 Temurbek B Jan. 29, 2020, 3:42 p.m. OK Go TESTS 50 46 0 1000
69380909 fc-lib-xyz B Jan. 22, 2020, 7:41 p.m. OK Go TESTS 50 46 0 1000
69140228 jaimatadiletsrock B Jan. 19, 2020, 3:17 p.m. OK Go TESTS 50 46 0 1000
69139434 kat0rik B Jan. 19, 2020, 3:14 p.m. OK Go TESTS 50 46 0 1000
69988756 petostr B Feb. 1, 2020, 6:40 p.m. OK Haskell TESTS 50 46 102400 1000
69248693 kukreja-vlk B Jan. 21, 2020, 1:39 p.m. OK Haskell TESTS 50 46 102400 1000
69240066 SampersandU B Jan. 21, 2020, 11:05 a.m. OK Haskell TESTS 50 46 102400 1000
69183724 pandrei B Jan. 20, 2020, 11:12 a.m. OK Haskell TESTS 50 46 102400 1000
69987900 petostr B Feb. 1, 2020, 6:22 p.m. OK Haskell TESTS 50 46 1126400 1000
69485829 Chuchi787 B Jan. 24, 2020, 7:31 p.m. OK Java 11 TESTS 50 171 0 1000
69291435 insane_28 B Jan. 22, 2020, 10:24 a.m. OK Java 11 TESTS 50 171 0 1000
69195324 Shetewi B Jan. 20, 2020, 2:44 p.m. OK Java 11 TESTS 50 171 0 1000
69157359 thisSideAnonymous B Jan. 19, 2020, 8:15 p.m. OK Java 11 TESTS 50 171 0 1000
70095334 O-infinity B Feb. 2, 2020, 7:58 p.m. OK Java 11 TESTS 50 186 0 1000
69863261 abhi123valani B Jan. 30, 2020, 7:19 p.m. OK Java 11 TESTS 50 186 0 1000
69127329 Deepatel B Jan. 19, 2020, 2:34 p.m. OK Java 11 TESTS 50 186 0 1000
70798907 man_1 B Feb. 11, 2020, 4:20 p.m. OK Java 11 TESTS 50 187 0 1000
70343018 aneri B Feb. 5, 2020, 8:54 a.m. OK Java 11 TESTS 50 187 0 1000
69376024 makhanchor B Jan. 22, 2020, 6:12 p.m. OK Java 11 TESTS 50 187 0 1000
69176235 Zishan3165 B Jan. 20, 2020, 8:14 a.m. OK Java 8 TESTS 50 109 0 1000
69959976 glider.g B Feb. 1, 2020, 11:12 a.m. OK Java 8 TESTS 50 109 0 1000
69811358 lightttt77 B Jan. 30, 2020, 4:30 a.m. OK Java 8 TESTS 50 109 0 1000
69649032 Nirav412000 B Jan. 28, 2020, 3:54 a.m. OK Java 8 TESTS 50 109 0 1000
69528072 bobbilyking B Jan. 25, 2020, 3:54 p.m. OK Java 8 TESTS 50 109 0 1000
69461172 di_halt B Jan. 24, 2020, 10:52 a.m. OK Java 8 TESTS 50 109 0 1000
69421142 mjkam B Jan. 23, 2020, 2:26 p.m. OK Java 8 TESTS 50 109 0 1000
69269665 Carson B Jan. 21, 2020, 8:15 p.m. OK Java 8 TESTS 50 109 0 1000
69219829 Guddu_kumar B Jan. 21, 2020, 3:48 a.m. OK Java 8 TESTS 50 109 0 1000
69180308 bluesky111 B Jan. 20, 2020, 9:52 a.m. OK Java 8 TESTS 50 109 0 1000
69449626 Nobita_Noobie B Jan. 24, 2020, 5:30 a.m. OK JavaScript TESTS 50 46 1126400 1000
69274566 DougCtec B Jan. 22, 2020, 12:45 a.m. OK JavaScript TESTS 50 46 5324800 1000
69223958 ikanv13 B Jan. 21, 2020, 6:17 a.m. OK JavaScript TESTS 50 92 1331200 1000
69155163 GTrigger B Jan. 19, 2020, 7:09 p.m. OK JavaScript TESTS 50 93 1433600 1000
69132056 Arkabekuly_Mukhtar B Jan. 19, 2020, 2:48 p.m. OK Kotlin TESTS 50 124 0 1000
69165391 Spheniscine B Jan. 20, 2020, 3:23 a.m. OK Kotlin TESTS 50 124 0 1000
69257509 SlavaG B Jan. 21, 2020, 4:04 p.m. OK Kotlin TESTS 50 124 0 1000
69669592 formalist B Jan. 28, 2020, 12:34 p.m. OK Kotlin TESTS 50 124 0 1000
69129082 Roland B Jan. 19, 2020, 2:39 p.m. OK Kotlin TESTS 50 140 0 1000
69137390 nopopon B Jan. 19, 2020, 3:07 p.m. OK Kotlin TESTS 50 155 0 1000
69559069 wbars B Jan. 26, 2020, 9:55 a.m. OK Kotlin TESTS 50 156 0 1000
69919000 m1_k3 B Jan. 31, 2020, 5:48 p.m. OK Mono C# TESTS 50 46 0 1000
69191693 nastya1199 B Jan. 20, 2020, 1:41 p.m. OK Mono C# TESTS 50 46 0 1000
69658827 lyubenKod B Jan. 28, 2020, 8:34 a.m. OK Mono C# TESTS 50 61 0 1000
69396734 hossain95 B Jan. 23, 2020, 6:39 a.m. OK Mono C# TESTS 50 62 0 1000
69396674 miahossain8888 B Jan. 23, 2020, 6:38 a.m. OK Mono C# TESTS 50 62 0 1000
69272877 Irik08 B Jan. 21, 2020, 10:49 p.m. OK Mono C# TESTS 50 62 0 1000
69229469 TRR B Jan. 21, 2020, 8:52 a.m. OK Mono C# TESTS 50 62 0 1000
69134024 suslov93 B Jan. 19, 2020, 2:55 p.m. OK Mono C# TESTS 50 62 0 1000
69126602 korntest B Jan. 19, 2020, 2:32 p.m. OK Mono C# TESTS 50 62 0 1000
69130142 thetansquared B Jan. 19, 2020, 2:43 p.m. OK Mono C# TESTS 50 62 0 1000
70223784 vjudge2 B Feb. 4, 2020, 10:55 a.m. OK MS C++ TESTS 50 30 0 1000
70603841 vjudge4 B Feb. 9, 2020, 5:54 a.m. OK MS C++ TESTS 50 31 0 1000
70624891 vjudge1 B Feb. 9, 2020, 12:53 p.m. OK MS C++ TESTS 50 31 0 1000
70436403 sdibt1 B Feb. 6, 2020, 12:59 p.m. OK MS C++ TESTS 50 31 0 1000
70438040 sdibt5 B Feb. 6, 2020, 1:22 p.m. OK MS C++ TESTS 50 31 0 1000
70440564 sdibt5 B Feb. 6, 2020, 1:58 p.m. OK MS C++ TESTS 50 31 0 1000
70440735 vjudge5 B Feb. 6, 2020, 2:01 p.m. OK MS C++ TESTS 50 31 0 1000
70477367 vjudge3 B Feb. 7, 2020, 4:28 a.m. OK MS C++ TESTS 50 31 0 1000
70481014 vjudge4 B Feb. 7, 2020, 5:55 a.m. OK MS C++ TESTS 50 31 0 1000
70551953 xxxuanei B Feb. 8, 2020, 9:14 a.m. OK MS C++ TESTS 50 31 0 1000
70003831 vjudge3 B Feb. 2, 2020, 3:36 a.m. OK MS C++ 2017 TESTS 50 31 0 1000
70968726 vjudge2 B Feb. 13, 2020, 2:46 p.m. OK MS C++ 2017 TESTS 50 31 0 1000
70621630 vjudge5 B Feb. 9, 2020, 11:46 a.m. OK MS C++ 2017 TESTS 50 31 0 1000
70614937 prankami B Feb. 9, 2020, 9:40 a.m. OK MS C++ 2017 TESTS 50 31 0 1000
70463247 dimdem B Feb. 6, 2020, 7:26 p.m. OK MS C++ 2017 TESTS 50 31 0 1000
70438057 mohitzade9370173272 B Feb. 6, 2020, 1:22 p.m. OK MS C++ 2017 TESTS 50 31 0 1000
70434909 sdibt3 B Feb. 6, 2020, 12:37 p.m. OK MS C++ 2017 TESTS 50 31 0 1000
70020841 vjudge2 B Feb. 2, 2020, 9:46 a.m. OK MS C++ 2017 TESTS 50 31 0 1000
70007422 vjudge1 B Feb. 2, 2020, 5:32 a.m. OK MS C++ 2017 TESTS 50 31 0 1000
70005915 13048047792 B Feb. 2, 2020, 4:50 a.m. OK MS C++ 2017 TESTS 50 31 0 1000
69926056 TitanRoyal B Jan. 31, 2020, 8:26 p.m. OK Node.js TESTS 50 171 1843200 1000
69149468 PAG B Jan. 19, 2020, 5:14 p.m. OK PascalABC.NET TESTS 50 202 0 1000
69473045 mm944 B Jan. 24, 2020, 3:12 p.m. OK PascalABC.NET TESTS 50 327 204800 1000
69184004 __mostafa__ B Jan. 20, 2020, 11:17 a.m. OK Perl TESTS 50 46 0 1000
69532455 mayakin B Jan. 25, 2020, 5:36 p.m. OK PHP TESTS 50 46 409600 1000
69794066 habloun B Jan. 29, 2020, 7:26 p.m. OK PHP TESTS 50 46 512000 1000
69705994 MVP B Jan. 29, 2020, 4:36 a.m. OK PyPy 2 TESTS 50 124 102400 1000
69138525 NormanIPN B Jan. 19, 2020, 3:11 p.m. OK PyPy 2 TESTS 50 140 204800 1000
69559002 Wizmann B Jan. 26, 2020, 9:53 a.m. OK PyPy 2 TESTS 50 155 307200 1000
69512315 suryansh.singh23610 B Jan. 25, 2020, 10:53 a.m. OK PyPy 3 TESTS 50 140 1024000 1000
70939439 wattaihei B Feb. 13, 2020, 7:51 a.m. OK PyPy 3 TESTS 50 140 1228800 1000
70477969 vjudge2 B Feb. 7, 2020, 4:46 a.m. OK PyPy 3 TESTS 50 140 1228800 1000
70085455 darsh065 B Feb. 2, 2020, 4:57 p.m. OK PyPy 3 TESTS 50 140 1228800 1000
69861406 visheshchauhan B Jan. 30, 2020, 6:38 p.m. OK PyPy 3 TESTS 50 140 1228800 1000
69625787 Riolku B Jan. 27, 2020, 3:46 p.m. OK PyPy 3 TESTS 50 140 1228800 1000
69586504 HKristof B Jan. 26, 2020, 7:45 p.m. OK PyPy 3 TESTS 50 140 1228800 1000
69545501 LearnerMe B Jan. 26, 2020, 2:11 a.m. OK PyPy 3 TESTS 50 140 1228800 1000
69511702 vrashi B Jan. 25, 2020, 10:41 a.m. OK PyPy 3 TESTS 50 140 1228800 1000
69478638 r_dmv B Jan. 24, 2020, 4:59 p.m. OK PyPy 3 TESTS 50 140 1228800 1000
69175291 DmitriyH B Jan. 20, 2020, 7:51 a.m. OK Python 2 TESTS 50 186 2867200 1000
69933275 purva.taranekar94 B Feb. 1, 2020, 1:53 a.m. OK Python 2 TESTS 50 187 0 1000
70115846 bsr011 B Feb. 3, 2020, 7:09 a.m. OK Python 2 TESTS 50 187 1638400 1000
69633336 Yans B Jan. 27, 2020, 5:49 p.m. OK Python 2 TESTS 50 187 1638400 1000
69143522 devamk B Jan. 19, 2020, 3:27 p.m. OK Python 2 TESTS 50 187 1638400 1000
69175198 DmitriyH B Jan. 20, 2020, 7:49 a.m. OK Python 2 TESTS 50 202 0 1000
69134016 grayGoose B Jan. 19, 2020, 2:55 p.m. OK Python 2 TESTS 50 202 0 1000
69128683 Mike10 B Jan. 19, 2020, 2:38 p.m. OK Python 2 TESTS 50 217 1638400 1000
69131645 elistark B Jan. 19, 2020, 2:47 p.m. OK Python 2 TESTS 50 249 0 1000
70328366 Starkis B Feb. 5, 2020, 4:43 a.m. OK Python 3 TESTS 50 109 0 1000
70178596 SS_ B Feb. 3, 2020, 7:16 p.m. OK Python 3 TESTS 50 109 0 1000
69673145 GalWat B Jan. 28, 2020, 1:34 p.m. OK Python 3 TESTS 50 109 0 1000
69410731 tianyan B Jan. 23, 2020, noon OK Python 3 TESTS 50 109 0 1000
69300676 sjoshi13 B Jan. 22, 2020, 1:42 p.m. OK Python 3 TESTS 50 109 0 1000
69270668 suchir B Jan. 21, 2020, 8:49 p.m. OK Python 3 TESTS 50 109 0 1000
69247261 vignesh_spartan B Jan. 21, 2020, 1:16 p.m. OK Python 3 TESTS 50 109 0 1000
69218995 jokerking B Jan. 21, 2020, 3:14 a.m. OK Python 3 TESTS 50 109 0 1000
69212735 MeDelleucH B Jan. 20, 2020, 9:05 p.m. OK Python 3 TESTS 50 109 0 1000
69208852 StealthGamer B Jan. 20, 2020, 7:03 p.m. OK Python 3 TESTS 50 109 0 1000
70412275 anuragbhatt B Feb. 6, 2020, 5:48 a.m. OK Ruby TESTS 50 77 204800 1000
69158530 ohmygao B Jan. 19, 2020, 9:01 p.m. OK Rust TESTS 50 31 0 1000

remove filters

Back to search problems