Codeforces Round 616 (Div. 1)

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
1290 Codeforces Round 616 (Div. 1) FINISHED False 9000 156700511 Feb. 2, 2020, 2:05 p.m.

Problems

Solved$
Index
Name
Type
Tags
Community Tag
Rating
( 8652 ) A Mind Control PROGRAMMING brute force data structures implementation 1700

B"You and your n - 1 friends have found an array of integers a_1, a_2, ... , a_n . You have decided to share it in the following way: All n of you stand in a line in a particular order. Each minute, the person at the front of the line chooses either the first or the last element of the array, removes it, and keeps it for himself. He then gets out of line, and the next person in line continues the process. You are standing in the m -th position in the line. Before the process starts, you may choose up to k different people in the line, and persuade them to always take either the first or the last element in the array on their turn (for each person his own choice, not necessarily equal for all people), no matter what the elements themselves are. Once the process starts, you cannot persuade any more people, and you cannot change the choices for the people you already persuaded. Suppose that you're doing your choices optimally. What is the greatest integer x such that, no matter what are the choices of the friends you didn't choose to control, the element you will take from the array will be greater than or equal to x ? Please note that the friends you don't control may do their choice arbitrarily, and they will not necessarily take the biggest element available. The input consists of multiple test cases. The first line contains a single integer t ( 1 <= t <= 1000 ) -- the number of test cases. The description of the test cases follows. The first line of each test case contains three space-separated integers n , m and k ( 1 <= m <= n <= 3500 , 0 <= k <= n - 1 ) -- the number of elements in the array, your position in line and the number of people whose choices you can fix. The second line of each test case contains n positive integers a_1, a_2, ... , a_n ( 1 <= a_i <= 10^9 ) -- elements of the array. It is guaranteed that the sum of n over all tes"...

Tutorials

Codeforces Round #616 Editorial

Submissions

Submission Id
Author(s)
Index
Submitted
Verdict
Language
Test Set
Tests Passed
Time taken (ms)
Memory Consumed (bytes)
Tags
Rating
70046733 hos.lyric A Feb. 2, 2020, 2:31 p.m. OK D TESTS 24 31 4198400 1700
70048982 Gassa A Feb. 2, 2020, 2:36 p.m. OK D TESTS 24 46 4198400 1700
70039765 physics0523 A Feb. 2, 2020, 2:18 p.m. OK GNU C11 TESTS 24 46 2048000 1700
70053625 pyf A Feb. 2, 2020, 2:47 p.m. OK GNU C++11 TESTS 24 30 0 1700
70043331 Heart_BIue A Feb. 2, 2020, 2:24 p.m. OK GNU C++11 TESTS 24 30 0 1700
70043297 CoupDeGrace A Feb. 2, 2020, 2:24 p.m. OK GNU C++11 TESTS 24 30 0 1700
70037815 CrescentRose A Feb. 2, 2020, 2:14 p.m. OK GNU C++11 TESTS 24 30 0 1700
70944938 clfzs A Feb. 13, 2020, 9:29 a.m. OK GNU C++11 TESTS 24 30 0 1700
70102484 Big_black_jujube A Feb. 3, 2020, 12:48 a.m. OK GNU C++11 TESTS 24 30 0 1700
70054689 luositing A Feb. 2, 2020, 2:49 p.m. OK GNU C++11 TESTS 24 30 0 1700
70404639 Angle_Kanade A Feb. 6, 2020, 1:10 a.m. OK GNU C++11 TESTS 24 30 0 1700
70826983 Gurban A Feb. 12, 2020, 6:48 a.m. OK GNU C++11 TESTS 24 30 409600 1700
70068962 osmanorhan A Feb. 2, 2020, 3:32 p.m. OK GNU C++11 TESTS 24 30 4915200 1700
70087399 Mbfibat A Feb. 2, 2020, 5:23 p.m. OK GNU C++14 TESTS 24 15 0 1700
70101417 Bekh A Feb. 2, 2020, 11:44 p.m. OK GNU C++14 TESTS 24 15 0 1700
70407966 Nero A Feb. 6, 2020, 3:35 a.m. OK GNU C++14 TESTS 24 15 102400 1700
70036549 nikolapesic2802 A Feb. 2, 2020, 2:11 p.m. OK GNU C++14 TESTS 24 15 204800 1700
70100064 Malomalomalomalo A Feb. 2, 2020, 10:36 p.m. OK GNU C++14 TESTS 24 15 307200 1700
70038640 orz A Feb. 2, 2020, 2:16 p.m. OK GNU C++14 TESTS 24 15 921600 1700
70324704 Sidiq_HA A Feb. 5, 2020, 2:47 a.m. OK GNU C++14 TESTS 24 30 0 1700
71047356 alamin_tushar A Feb. 14, 2020, 8:51 a.m. OK GNU C++14 TESTS 24 30 0 1700
70381956 gkftndlTek A Feb. 5, 2020, 5:19 p.m. OK GNU C++14 TESTS 24 30 0 1700
70229697 abhishek_990 A Feb. 4, 2020, 12:06 p.m. OK GNU C++14 TESTS 24 30 0 1700
70041801 TooNewbie A Feb. 2, 2020, 2:22 p.m. OK GNU C++17 TESTS 24 15 0 1700
70041489 Escarlata A Feb. 2, 2020, 2:21 p.m. OK GNU C++17 TESTS 24 15 0 1700
70117504 GRT_2018 A Feb. 3, 2020, 7:40 a.m. OK GNU C++17 TESTS 24 15 0 1700
70677302 m4h A Feb. 9, 2020, 4 p.m. OK GNU C++17 TESTS 24 15 0 1700
70039273 BohdanPastuschak A Feb. 2, 2020, 2:17 p.m. OK GNU C++17 TESTS 24 15 0 1700
70047555 sagitta A Feb. 2, 2020, 2:33 p.m. OK GNU C++17 TESTS 24 15 0 1700
70036906 waynetuinfor A Feb. 2, 2020, 2:12 p.m. OK GNU C++17 TESTS 24 15 102400 1700
70811089 LinaInverse A Feb. 11, 2020, 8:26 p.m. OK GNU C++17 TESTS 24 15 102400 1700
70103905 goatzyq A Feb. 3, 2020, 1:53 a.m. OK GNU C++17 TESTS 24 15 102400 1700
70051551 Temotoloraia A Feb. 2, 2020, 2:42 p.m. OK GNU C++17 TESTS 24 15 102400 1700
70039024 qwerty787788 A Feb. 2, 2020, 2:16 p.m. OK Java 11 TESTS 24 202 0 1700
70040612 Suzukaze A Feb. 2, 2020, 2:19 p.m. OK Java 11 TESTS 24 217 0 1700
70293961 doroshenkoeng A Feb. 4, 2020, 4:25 p.m. OK Java 11 TESTS 24 218 0 1700
70184276 Kita_The_Dragon A Feb. 3, 2020, 9:02 p.m. OK Java 11 TESTS 24 249 0 1700
70233450 ZeyadKhattab A Feb. 4, 2020, 1:02 p.m. OK Java 11 TESTS 24 327 78950400 1700
70576903 abhinav_002 A Feb. 8, 2020, 4:02 p.m. OK Java 8 TESTS 24 109 0 1700
70129500 himanshubhardwaj169 A Feb. 3, 2020, 10:06 a.m. OK Java 8 TESTS 24 109 0 1700
70154057 polyakoff A Feb. 3, 2020, 1:38 p.m. OK Java 8 TESTS 24 124 0 1700
70470812 beroul A Feb. 6, 2020, 11:45 p.m. OK Java 8 TESTS 24 124 0 1700
70465994 flyingpurplepeopleeater A Feb. 6, 2020, 8:29 p.m. OK Java 8 TESTS 24 124 0 1700
70463179 guillermo_sz A Feb. 6, 2020, 7:24 p.m. OK Java 8 TESTS 24 124 0 1700
70062819 polyakoff A Feb. 2, 2020, 3:12 p.m. OK Java 8 TESTS 24 124 0 1700
70054903 travm12 A Feb. 2, 2020, 2:50 p.m. OK Java 8 TESTS 24 124 0 1700
70048634 toshihoge A Feb. 2, 2020, 2:35 p.m. OK Java 8 TESTS 24 124 0 1700
70043397 BiIIy A Feb. 2, 2020, 2:25 p.m. OK Java 8 TESTS 24 124 0 1700
70038769 Tlatoani A Feb. 2, 2020, 2:16 p.m. OK Kotlin TESTS 24 139 0 1700
70133627 darnley A Feb. 3, 2020, 11:07 a.m. OK Kotlin TESTS 24 202 307200 1700
70039412 darnley A Feb. 2, 2020, 2:17 p.m. OK Kotlin TESTS 24 202 307200 1700
70133755 darnley A Feb. 3, 2020, 11:09 a.m. OK Kotlin TESTS 24 233 307200 1700
70119923 liomvse A Feb. 3, 2020, 8:22 a.m. OK Mono C# TESTS 24 61 512000 1700
70042583 ngtkana A Feb. 2, 2020, 2:23 p.m. OK Mono C# TESTS 24 62 4403200 1700
70079496 lxhgww A Feb. 2, 2020, 4:15 p.m. OK MS C++ TESTS 24 31 0 1700
70416128 vjudge2 A Feb. 6, 2020, 7:09 a.m. OK MS C++ TESTS 24 31 0 1700
70410665 vjudge1 A Feb. 6, 2020, 5:02 a.m. OK MS C++ TESTS 24 31 3993600 1700
70047215 tarattata1 A Feb. 2, 2020, 2:32 p.m. OK MS C++ TESTS 24 46 0 1700
70415456 vjudge1 A Feb. 6, 2020, 6:56 a.m. OK MS C++ TESTS 24 46 0 1700
70419770 vjudge3 A Feb. 6, 2020, 8:19 a.m. OK MS C++ TESTS 24 46 0 1700
70039821 math957963 A Feb. 2, 2020, 2:18 p.m. OK MS C++ TESTS 24 46 1638400 1700
70044895 youx A Feb. 2, 2020, 2:27 p.m. OK MS C++ 2017 TESTS 24 31 0 1700
70050978 pichulia A Feb. 2, 2020, 2:40 p.m. OK MS C++ 2017 TESTS 24 31 0 1700
70051077 Ksenia_C A Feb. 2, 2020, 2:40 p.m. OK MS C++ 2017 TESTS 24 31 102400 1700
70041717 vpike A Feb. 2, 2020, 2:21 p.m. OK MS C++ 2017 TESTS 24 31 307200 1700
70091154 AleksanderBalobanov A Feb. 2, 2020, 6:25 p.m. OK MS C++ 2017 TESTS 24 31 11980800 1700
70086702 wp32pw A Feb. 2, 2020, 5:15 p.m. OK MS C++ 2017 TESTS 24 46 0 1700
70141520 KieuTranCongNguyen A Feb. 3, 2020, 11:46 a.m. OK MS C++ 2017 TESTS 24 46 102400 1700
70102553 Onelier A Feb. 3, 2020, 12:52 a.m. OK MS C++ 2017 TESTS 24 46 307200 1700
70044475 Timonnable A Feb. 2, 2020, 2:27 p.m. OK MS C++ 2017 TESTS 24 46 409600 1700
70041535 P___ A Feb. 2, 2020, 2:21 p.m. OK MS C++ 2017 TESTS 24 93 49254400 1700
70046246 pajenegod A Feb. 2, 2020, 2:30 p.m. OK PyPy 2 TESTS 24 155 1433600 1700
70113839 vjudge3 A Feb. 3, 2020, 6:29 a.m. OK PyPy 2 TESTS 24 202 1228800 1700
70116053 EM1NEM A Feb. 3, 2020, 7:14 a.m. OK PyPy 2 TESTS 24 218 1228800 1700
70043821 Kiri8128 A Feb. 2, 2020, 2:25 p.m. OK PyPy 3 TESTS 24 171 2355200 1700
70048473 titia A Feb. 2, 2020, 2:35 p.m. OK PyPy 3 TESTS 24 186 3072000 1700
70044993 old_boo A Feb. 2, 2020, 2:28 p.m. OK PyPy 3 TESTS 24 202 3072000 1700
70041791 pineriver A Feb. 2, 2020, 2:22 p.m. OK PyPy 3 TESTS 24 217 3891200 1700
70414130 vjudge3 A Feb. 6, 2020, 6:28 a.m. OK PyPy 3 TESTS 24 249 4812800 1700
70045424 nagitaosu A Feb. 2, 2020, 2:28 p.m. OK PyPy 3 TESTS 24 264 4403200 1700
70093946 malylesio A Feb. 2, 2020, 7:25 p.m. OK PyPy 3 TESTS 24 264 6246400 1700
70044103 macaroni A Feb. 2, 2020, 2:26 p.m. OK PyPy 3 TESTS 24 280 6041600 1700
70048093 asvasil A Feb. 2, 2020, 2:34 p.m. OK PyPy 3 TESTS 24 311 5324800 1700
70163910 mkawa2 A Feb. 3, 2020, 3:59 p.m. OK Python 3 TESTS 24 155 512000 1700
70103565 jackowitzd2 A Feb. 3, 2020, 1:39 a.m. OK Python 3 TESTS 24 530 512000 1700
70103748 jackowitzd2 A Feb. 3, 2020, 1:47 a.m. OK Python 3 TESTS 24 545 512000 1700
70043075 sansen A Feb. 2, 2020, 2:24 p.m. OK Rust TESTS 24 30 409600 1700

remove filters

Back to search problems