Codeforces Round 510 (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
1042 Codeforces Round 510 (Div. 2) FINISHED False 7200 200354123 Sept. 17, 2018, 8:05 a.m.

Problems

Solved$
Index
Name
Type
Tags
Community Tag
Rating
( 13120 ) A Benches PROGRAMMING binary search implementation #Poisoned Dagger#166092154#Fence#fence#166891543#Basketball Exercise#Bear and Friendship Condition 1200

B'There are n benches in the Berland Central park. It is known that a_i people are currently sitting on the i -th bench. Another m people are coming to the park and each of them is going to have a seat on some bench out of n available. Let k be the maximum number of people sitting on one bench after additional m people came to the park. Calculate the minimum possible k and the maximum possible k . Nobody leaves the taken seat during the whole process. The first line contains a single integer n (1 <= n <= 100) -- the number of benches in the park. The second line contains a single integer m (1 <= m <= 10 ,000) -- the number of people additionally coming to the park. Each of the next n lines contains a single integer a_i (1 <= a_i <= 100) -- the initial number of people on the i -th bench. Print the minimum possible k and the maximum possible k , where k is the maximum number of people sitting on one bench after additional m people came to the park. In the first example, each of four benches is occupied by a single person. The minimum k is 3 . For example, it is possible to achieve if two newcomers occupy the first bench, one occupies the second bench, one occupies the third bench, and two remaining -- the fourth bench. The maximum k is 7 . That requires all six new people to occupy the same bench. The second example has its minimum k equal to 15 and maximum k equal to 15 , as there is just a single bench in the park and all 10 people will occupy it. '...

Tutorials

Tutorial

Submissions

Submission Id
Author(s)
Index
Submitted
Verdict
Language
Test Set
Tests Passed
Time taken (ms)
Memory Consumed (bytes)
Tags
Rating
46028450 mihaipriboi A Nov. 21, 2018, 12:31 p.m. OK Clang++17 Diagnostics TESTS 65 46 0 1200
61115916 vjudge1 A Sept. 23, 2019, 12:51 p.m. OK Clang++17 Diagnostics TESTS 65 46 0 1200
43073677 Muhammad-2004 A Sept. 19, 2018, 10:40 a.m. OK Clang++17 Diagnostics TESTS 65 46 0 1200
43232614 ajeetkr818 A Sept. 22, 2018, 5:53 a.m. OK Clang++17 Diagnostics TESTS 65 46 0 1200
44815637 AshutoshAnshul A Oct. 24, 2018, 9:13 p.m. OK Clang++17 Diagnostics TESTS 65 46 307200 1200
60849033 JumpWireKit A Sept. 19, 2019, 1:27 p.m. OK Clang++17 Diagnostics TESTS 65 46 1024000 1200
44399610 linusdengah A Oct. 16, 2018, 12:16 p.m. OK Clang++17 Diagnostics TESTS 65 46 1331200 1200
50156736 davidtadze A Feb. 19, 2019, 10:32 a.m. OK Clang++17 Diagnostics TESTS 65 62 1024000 1200
43830230 KietLe A Oct. 5, 2018, 1:41 p.m. OK FPC TESTS 65 31 0 1200
42999147 cbl_nhathuy A Sept. 17, 2018, 1:09 p.m. OK FPC TESTS 65 31 0 1200
42990032 MinhNguye A Sept. 17, 2018, 9:57 a.m. OK FPC TESTS 65 31 0 1200
42984879 petr577 A Sept. 17, 2018, 9:19 a.m. OK FPC TESTS 65 31 0 1200
43819820 erel A Oct. 5, 2018, 8 a.m. OK FPC TESTS 65 31 0 1200
43650933 minhcool A Oct. 1, 2018, 3:42 p.m. OK FPC TESTS 65 31 0 1200
43023362 _Time_Lord_ A Sept. 18, 2018, 7 a.m. OK FPC TESTS 65 31 0 1200
45916769 Aschente A Nov. 18, 2018, 2:22 p.m. OK FPC TESTS 65 31 102400 1200
47817910 HVP.exe A Jan. 1, 2019, 3:38 p.m. OK FPC TESTS 65 31 102400 1200
43819654 erel A Oct. 5, 2018, 7:50 a.m. OK FPC TESTS 65 46 0 1200
46741451 vjudge2 A Dec. 8, 2018, 3:01 a.m. OK GNU C11 TESTS 65 30 0 1200
60355336 oblastnoy_magnat A Sept. 10, 2019, 3:55 p.m. OK GNU C11 TESTS 65 31 0 1200
61035462 dead_inside_12pos A Sept. 21, 2019, 7:34 p.m. OK GNU C11 TESTS 65 31 0 1200
61084534 Timur-atm A Sept. 22, 2019, 5:47 p.m. OK GNU C11 TESTS 65 31 0 1200
61103305 oblastnoy_magnat A Sept. 23, 2019, 7:56 a.m. OK GNU C11 TESTS 65 31 0 1200
65434176 vjudge5 A Nov. 20, 2019, 12:55 p.m. OK GNU C11 TESTS 65 31 0 1200
65434323 vjudge2 A Nov. 20, 2019, 12:57 p.m. OK GNU C11 TESTS 65 31 0 1200
66758798 Rahimmia A Dec. 13, 2019, 6:36 a.m. OK GNU C11 TESTS 65 31 0 1200
68065090 Rakibul_Nayeem A Jan. 2, 2020, 7:15 a.m. OK GNU C11 TESTS 65 31 0 1200
69049572 luogu_bot1 A Jan. 18, 2020, 12:13 p.m. OK GNU C11 TESTS 65 31 0 1200
42992987 Apocalypsis A Sept. 17, 2018, 11:06 a.m. OK GNU C++11 TESTS 65 30 0 1200
43047827 lvdo92 A Sept. 18, 2018, 7:07 p.m. OK GNU C++11 TESTS 65 30 0 1200
45145736 zxyl A Oct. 31, 2018, 4:46 p.m. OK GNU C++11 TESTS 65 30 0 1200
42998339 Cardinal2376 A Sept. 17, 2018, 12:53 p.m. OK GNU C++11 TESTS 65 30 409600 1200
69804576 cor001 A Jan. 30, 2020, 12:53 a.m. OK GNU C++11 TESTS 65 31 0 1200
69614676 _dark_side A Jan. 27, 2020, 12:43 p.m. OK GNU C++11 TESTS 65 31 0 1200
69890609 cor001 A Jan. 31, 2020, 9:52 a.m. OK GNU C++11 TESTS 65 31 0 1200
69724553 samihanuva2 A Jan. 29, 2020, 11:50 a.m. OK GNU C++11 TESTS 65 31 0 1200
69804334 cor001 A Jan. 30, 2020, 12:42 a.m. OK GNU C++11 TESTS 65 31 0 1200
69804487 cor001 A Jan. 30, 2020, 12:50 a.m. OK GNU C++11 TESTS 65 31 0 1200
45783307 Heshamovic A Nov. 15, 2018, 9:39 p.m. OK GNU C++14 TESTS 65 15 0 1200
67670049 goku98 A Dec. 26, 2019, 7:50 p.m. OK GNU C++14 TESTS 65 15 0 1200
59841510 dalip_patra A Sept. 1, 2019, 7:27 a.m. OK GNU C++14 TESTS 65 15 0 1200
52263786 NoobCoder1998 A April 3, 2019, 10:24 a.m. OK GNU C++14 TESTS 65 15 0 1200
51124180 code_code_1352 A March 10, 2019, 10:51 a.m. OK GNU C++14 TESTS 65 15 0 1200
48302225 avatar_7 A Jan. 12, 2019, 5:34 p.m. OK GNU C++14 TESTS 65 15 0 1200
43611951 pcelly1498 A Sept. 30, 2018, 2:33 p.m. OK GNU C++14 TESTS 65 15 0 1200
43377986 oora A Sept. 24, 2018, 5:17 p.m. OK GNU C++14 TESTS 65 15 0 1200
43014131 Not-Afraid A Sept. 17, 2018, 8:52 p.m. OK GNU C++14 TESTS 65 15 0 1200
42992355 GOODBYE2019 A Sept. 17, 2018, 10:59 a.m. OK GNU C++14 TESTS 65 15 0 1200
43013946 praneeth_25 A Sept. 17, 2018, 8:42 p.m. OK GNU C++17 TESTS 65 15 0 1200
47040015 super_mega_nub A Dec. 15, 2018, 2:15 p.m. OK GNU C++17 TESTS 65 15 0 1200
51766390 vjudge2 A March 23, 2019, 4:02 p.m. OK GNU C++17 TESTS 65 15 0 1200
52292120 TJPUwgw yoyo_tpz paranoid123 A April 4, 2019, 2:59 a.m. OK GNU C++17 TESTS 65 15 0 1200
42985734 Jaki A Sept. 17, 2018, 9:24 a.m. OK GNU C++17 TESTS 65 15 0 1200
44755999 DevilInChina A Oct. 24, 2018, 1:07 a.m. OK GNU C++17 TESTS 65 15 307200 1200
66723215 SzinAttila A Dec. 12, 2019, 3:36 p.m. OK GNU C++17 TESTS 65 30 0 1200
68654263 SS-123 A Jan. 12, 2020, 11:44 a.m. OK GNU C++17 TESTS 65 30 0 1200
69903878 adarshraj365 A Jan. 31, 2020, 1:40 p.m. OK GNU C++17 TESTS 65 30 0 1200
66555052 Teasgen A Dec. 9, 2019, 4:24 p.m. OK GNU C++17 TESTS 65 30 0 1200
60248923 pohzipohzi A Sept. 8, 2019, 5:19 a.m. OK Go TESTS 65 31 0 1200
43021092 ShandyD A Sept. 18, 2018, 4:57 a.m. OK Go TESTS 65 46 0 1200
43012244 jedikni A Sept. 17, 2018, 7:23 p.m. OK Haskell TESTS 65 31 8396800 1200
44244111 peter_jerry_ye A Oct. 13, 2018, 7:59 a.m. OK Haskell TESTS 65 31 8499200 1200
66516822 Cemc A Dec. 8, 2019, 7:23 p.m. OK Java 11 TESTS 65 233 0 1200
57425253 marant15 A July 20, 2019, 8:02 p.m. OK Java 8 TESTS 65 109 0 1200
67952950 insane_28 A Dec. 30, 2019, 8:27 a.m. OK Java 8 TESTS 65 109 0 1200
67587637 adzi A Dec. 25, 2019, 8:54 a.m. OK Java 8 TESTS 65 109 0 1200
62350221 Bhavya_Arora A Oct. 11, 2019, 9:03 a.m. OK Java 8 TESTS 65 109 0 1200
58789046 vvenkai A Aug. 14, 2019, 1:21 a.m. OK Java 8 TESTS 65 109 0 1200
51660908 YJq A March 22, 2019, 2:38 a.m. OK Java 8 TESTS 65 109 0 1200
51660847 vjudge4 A March 22, 2019, 2:35 a.m. OK Java 8 TESTS 65 109 0 1200
50619550 vjudge4 A Feb. 28, 2019, 10:55 p.m. OK Java 8 TESTS 65 109 0 1200
50508300 vjudge5 A Feb. 25, 2019, 9:18 p.m. OK Java 8 TESTS 65 109 0 1200
50286954 vjudge1 A Feb. 21, 2019, 3:21 p.m. OK Java 8 TESTS 65 109 0 1200
43050880 bdomokos A Sept. 18, 2018, 9:32 p.m. OK JavaScript TESTS 65 31 204800 1200
44380694 divya A Oct. 16, 2018, 3:28 a.m. OK JavaScript TESTS 65 46 102400 1200
43050926 bdomokos A Sept. 18, 2018, 9:34 p.m. OK JavaScript TESTS 65 46 204800 1200
61174016 cidgeedeng A Sept. 23, 2019, 5:14 p.m. OK Kotlin TESTS 65 124 0 1200
61113202 vjudge2 A Sept. 23, 2019, 12:01 p.m. OK Kotlin TESTS 65 124 0 1200
51992930 abarragan A March 29, 2019, 9:39 p.m. OK Kotlin TESTS 65 124 0 1200
59377782 david_varela A Aug. 23, 2019, 11:50 p.m. OK Kotlin TESTS 65 139 0 1200
61111337 vjudge1 A Sept. 23, 2019, 11:22 a.m. OK Kotlin TESTS 65 140 0 1200
50495273 vjudge2 A Feb. 25, 2019, 2:54 p.m. OK Kotlin TESTS 65 140 0 1200
50472484 vjudge1 A Feb. 25, 2019, 2:39 a.m. OK Kotlin TESTS 65 140 614400 1200
50472467 slemus A Feb. 25, 2019, 2:37 a.m. OK Kotlin TESTS 65 140 614400 1200
43112607 erenerisken A Sept. 20, 2018, 12:22 p.m. OK Kotlin TESTS 65 155 0 1200
43225802 igorrrain A Sept. 21, 2018, 8:56 p.m. OK Kotlin TESTS 65 171 0 1200
43654382 afga A Oct. 1, 2018, 5:12 p.m. OK Mono C# TESTS 65 46 0 1200
54839793 og.kostya A May 30, 2019, 12:17 p.m. OK Mono C# TESTS 65 46 0 1200
44961511 TRR A Oct. 27, 2018, 4:45 p.m. OK Mono C# TESTS 65 46 0 1200
43172593 tolmachev411 A Sept. 21, 2018, 9:23 a.m. OK Mono C# TESTS 65 46 0 1200
43043776 lehapenza A Sept. 18, 2018, 4:56 p.m. OK Mono C# TESTS 65 46 0 1200
43010582 kolokolcev2010 A Sept. 17, 2018, 6:20 p.m. OK Mono C# TESTS 65 46 0 1200
43094202 silvavelosa A Sept. 19, 2018, 9:17 p.m. OK Mono C# TESTS 65 61 0 1200
43172761 tolmachev411 A Sept. 21, 2018, 9:29 a.m. OK Mono C# TESTS 65 61 0 1200
43232375 tolmachev411 A Sept. 22, 2018, 5:34 a.m. OK Mono C# TESTS 65 62 0 1200
60941209 kondratev039 A Sept. 20, 2019, 5:08 p.m. OK Mono C# TESTS 65 62 0 1200
51662538 vjudge2 A March 22, 2019, 3:43 a.m. OK MS C++ TESTS 65 30 0 1200
51661592 vjudge3 A March 22, 2019, 3:06 a.m. OK MS C++ TESTS 65 30 0 1200
43632657 vjudge5 A Oct. 1, 2018, 6:35 a.m. OK MS C++ TESTS 65 30 307200 1200
67438154 IPRIT A Dec. 22, 2019, 6:05 p.m. OK MS C++ TESTS 65 31 0 1200
66275851 Mina.Jmsh A Dec. 4, 2019, 2:38 p.m. OK MS C++ TESTS 65 31 0 1200
68120163 vjudge2 A Jan. 3, 2020, 1 p.m. OK MS C++ TESTS 65 31 0 1200
66162554 Z.A101001000 A Dec. 2, 2019, 5:33 a.m. OK MS C++ TESTS 65 31 0 1200
69049588 vjudge2 A Jan. 18, 2020, 12:13 p.m. OK MS C++ TESTS 65 31 0 1200
69049650 vjudge2 A Jan. 18, 2020, 12:15 p.m. OK MS C++ TESTS 65 31 0 1200
69050093 vjudge1 A Jan. 18, 2020, 12:23 p.m. OK MS C++ TESTS 65 31 0 1200
58238892 washedbutnotdriedd A Aug. 3, 2019, 9:51 p.m. OK MS C++ 2017 TESTS 65 31 0 1200
57267092 vjudge3 A July 18, 2019, 7:33 a.m. OK MS C++ 2017 TESTS 65 31 0 1200
59692894 Mad112233 A Aug. 30, 2019, 7:05 a.m. OK MS C++ 2017 TESTS 65 31 0 1200
57268186 vjudge1 A July 18, 2019, 7:56 a.m. OK MS C++ 2017 TESTS 65 31 0 1200
60023382 Still_Theory A Sept. 4, 2019, 1:36 p.m. OK MS C++ 2017 TESTS 65 31 0 1200
60446275 ppadas A Sept. 12, 2019, 2:15 p.m. OK MS C++ 2017 TESTS 65 31 0 1200
60652239 ppadas A Sept. 15, 2019, 8 p.m. OK MS C++ 2017 TESTS 65 31 0 1200
61171664 gleb_shkoda A Sept. 23, 2019, 4:32 p.m. OK MS C++ 2017 TESTS 65 31 0 1200
63028034 shio A Oct. 20, 2019, 5:09 p.m. OK MS C++ 2017 TESTS 65 31 0 1200
66162064 helia_bhs A Dec. 2, 2019, 5:13 a.m. OK MS C++ 2017 TESTS 65 31 0 1200
43707011 dims A Oct. 2, 2018, 10:55 p.m. OK PascalABC.NET TESTS 65 46 0 1200
43046080 rinatisk A Sept. 18, 2018, 6:07 p.m. OK PascalABC.NET TESTS 65 46 0 1200
43706766 dims A Oct. 2, 2018, 10:36 p.m. OK PascalABC.NET TESTS 65 46 0 1200
43892989 Dr_Kotjara A Oct. 6, 2018, 9:57 a.m. OK PascalABC.NET TESTS 65 46 0 1200
43706872 dims A Oct. 2, 2018, 10:43 p.m. OK PascalABC.NET TESTS 65 46 0 1200
45770516 edkuz11 A Nov. 15, 2018, 2:16 p.m. OK PascalABC.NET TESTS 65 61 102400 1200
45541919 olpurgin A Nov. 10, 2018, 8 p.m. OK PascalABC.NET TESTS 65 62 102400 1200
49338264 mostyka A Feb. 1, 2019, 7:55 p.m. OK PascalABC.NET TESTS 65 187 0 1200
55647929 Damir221 A June 16, 2019, 1:06 p.m. OK PascalABC.NET TESTS 65 311 102400 1200
58952606 AndrewZzz24 A Aug. 17, 2019, 11:36 a.m. OK PascalABC.NET TESTS 65 312 204800 1200
42989340 rsFalse A Sept. 17, 2018, 9:52 a.m. OK Perl TESTS 65 46 0 1200
43038671 mayakin A Sept. 18, 2018, 2:39 p.m. OK PHP TESTS 65 46 0 1200
43065995 ShyngyS A Sept. 19, 2018, 5:29 a.m. OK PHP TESTS 65 46 0 1200
43167633 ShyngyS A Sept. 21, 2018, 6:10 a.m. OK PHP TESTS 65 46 512000 1200
48892197 soumyasarkar1998 A Jan. 24, 2019, 2:26 p.m. OK PyPy 2 TESTS 65 124 0 1200
42986526 YESMAths A Sept. 17, 2018, 9:30 a.m. OK PyPy 2 TESTS 65 140 0 1200
48169473 vjudge5 A Jan. 10, 2019, 5:28 a.m. OK PyPy 2 TESTS 65 140 0 1200
42993157 masonsbro A Sept. 17, 2018, 11:09 a.m. OK PyPy 2 TESTS 65 140 0 1200
43069323 sarthakmanna A Sept. 19, 2018, 7:59 a.m. OK PyPy 2 TESTS 65 140 409600 1200
43107884 desiguy A Sept. 20, 2018, 9:53 a.m. OK PyPy 2 TESTS 65 155 307200 1200
57114898 pa.n.ik A July 15, 2019, 7:25 p.m. OK PyPy 2 TESTS 65 156 1228800 1200
43104184 Djok216 A Sept. 20, 2018, 7:33 a.m. OK PyPy 2 TESTS 65 171 512000 1200
42984751 ALGORITHMS_4_CASH A Sept. 17, 2018, 9:18 a.m. OK PyPy 2 TESTS 65 187 204800 1200
49554218 BB2211 A Feb. 7, 2019, 8:32 a.m. OK PyPy 3 TESTS 65 124 0 1200
59708148 plourde27 A Aug. 30, 2019, 1:32 p.m. OK PyPy 3 TESTS 65 140 0 1200
59231328 shall_not_pass A Aug. 21, 2019, 3:35 p.m. OK PyPy 3 TESTS 65 140 0 1200
58113062 YashShah A Aug. 1, 2019, 7:56 a.m. OK PyPy 3 TESTS 65 140 0 1200
55670225 tchr A June 17, 2019, 7:06 a.m. OK PyPy 3 TESTS 65 140 0 1200
53487529 trucly A April 29, 2019, 5:40 a.m. OK PyPy 3 TESTS 65 140 0 1200
53212371 morejarphone A April 24, 2019, 6:26 a.m. OK PyPy 3 TESTS 65 140 0 1200
51661688 vjudge1 A March 22, 2019, 3:10 a.m. OK PyPy 3 TESTS 65 140 0 1200
50534221 ygape1s A Feb. 26, 2019, 2:56 p.m. OK PyPy 3 TESTS 65 140 0 1200
49733298 abdolsamad A Feb. 10, 2019, 4:20 p.m. OK PyPy 3 TESTS 65 140 0 1200
48704831 davidzhou A Jan. 22, 2019, 5:23 a.m. OK Python 2 TESTS 65 171 0 1200
43263506 pth1993vn A Sept. 22, 2018, 3:31 p.m. OK Python 2 TESTS 65 171 0 1200
43173159 Newbie_Ghost_ A Sept. 21, 2018, 9:41 a.m. OK Python 2 TESTS 65 171 0 1200
43160453 vjudge2 A Sept. 21, 2018, 12:23 a.m. OK Python 2 TESTS 65 171 0 1200
43017930 samardeepdas2013 A Sept. 18, 2018, 1:38 a.m. OK Python 2 TESTS 65 171 0 1200
43016025 WNG A Sept. 17, 2018, 10:59 p.m. OK Python 2 TESTS 65 171 0 1200
43071613 Sapien A Sept. 19, 2018, 9:34 a.m. OK Python 2 TESTS 65 171 307200 1200
50584502 vjudge3 A Feb. 28, 2019, 1:55 a.m. OK Python 2 TESTS 65 186 0 1200
44452769 mukeremali A Oct. 17, 2018, 4:36 p.m. OK Python 2 TESTS 65 186 0 1200
43022302 nealzane A Sept. 18, 2018, 6:10 a.m. OK Python 2 TESTS 65 186 0 1200
49504917 viratK A Feb. 5, 2019, 5:04 p.m. OK Python 3 TESTS 65 108 0 1200
52307415 Arumugam A April 4, 2019, 12:57 p.m. OK Python 3 TESTS 65 109 0 1200
50619712 sestupinan A Feb. 28, 2019, 11:14 p.m. OK Python 3 TESTS 65 109 0 1200
50470766 vjudge1 A Feb. 25, 2019, 12:12 a.m. OK Python 3 TESTS 65 109 0 1200
50227993 _lucifer_ A Feb. 20, 2019, 7:53 a.m. OK Python 3 TESTS 65 109 0 1200
50619720 vjudge1 A Feb. 28, 2019, 11:15 p.m. OK Python 3 TESTS 65 109 0 1200
67525323 zapdospops A Dec. 24, 2019, 1:49 p.m. OK Python 3 TESTS 65 109 0 1200
58658071 franckmy A Aug. 12, 2019, 9:51 a.m. OK Python 3 TESTS 65 109 0 1200
53455530 rainerh A April 28, 2019, 2:09 a.m. OK Python 3 TESTS 65 109 0 1200
52996209 ddelcastillo A April 19, 2019, 3:59 a.m. OK Python 3 TESTS 65 109 0 1200
43090612 clupasq A Sept. 19, 2018, 6:42 p.m. OK Ruby TESTS 65 62 0 1200
43022095 deathcoder07 A Sept. 18, 2018, 5:57 a.m. OK Ruby TESTS 65 77 0 1200
43075446 cielavenir A Sept. 19, 2018, 11:33 a.m. OK Ruby TESTS 65 77 0 1200
43053124 clrcldy A Sept. 19, 2018, 12:21 a.m. OK Rust TESTS 65 31 0 1200
43024807 spk A Sept. 18, 2018, 7:55 a.m. OK Scala TESTS 65 529 0 1200
43024901 spk A Sept. 18, 2018, 7:58 a.m. OK Scala TESTS 65 530 0 1200

remove filters

Back to search problems