Codeforces Round 951 (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
1979 Codeforces Round 951 (Div. 2) FINISHED False 7200 19495463 June 6, 2024, 2:35 p.m.

Problems

Solved$
Index
Name
Type
Tags
Community Tag
Rating
( 29550 ) A Guess the Maximum PROGRAMMING brute force greedy implementation

B'Alice and Bob came up with a rather strange game. They have an array of integers a_1, a_2, ldots, a_n . Alice chooses a certain integer k and tells it to Bob, then the following happens: Help Alice find the maximum k at which she is guaranteed to win. Each test consists of multiple test cases. The first line contains a single integer t ( 1 <= t <= 10^4 ) -- the number of test cases. The description of the test cases follows. The first line of each test case contains a single integer n ( 2 <= n <= 5 cdot 10^4 ) -- the number of elements in the array. The second line of each test case contains n integers a_1, a_2, ldots, a_n ( 1 <= a_i <= 10^9 ) -- the elements of the array. It is guaranteed that the sum of n over all test cases does not exceed 5 cdot 10^4 . For each test case, output one integer -- the maximum integer k at which Alice is guaranteed to win. In the first test case, all possible subsegments that Bob can choose look as follows: [2, 4], [2, 4, 1], [2, 4, 1, 7], [4, 1], [4, 1, 7], [1, 7] . The maximums on the subsegments are respectively equal to 4, 4, 7, 4, 7, 7 . It can be shown that 3 is the largest integer such that any of the maximums will be strictly greater than it. In the third test case, the only segment that Bob can choose is [1, 1] . So the answer is 0 . '...

Tutorials

Codeforces Round 951 (Div. 2) Editorial

Submissions

Submission Id
Author(s)
Index
Submitted
Verdict
Language
Test Set
Tests Passed
Time taken (ms)
Memory Consumed (bytes)
Tags
Rating
264505630 PavolKoman A June 6, 2024, 6:56 p.m. OK C# 10 TESTS 11 109 5529600
264546812 rain_intel A June 7, 2024, 5:55 a.m. OK C# 10 TESTS 11 124 5120000
264529715 FBIWZH A June 7, 2024, 2:38 a.m. OK C++14 (GCC 6-32) TESTS 11 46 0
264529946 Silhouette_L A June 7, 2024, 2:42 a.m. OK C++14 (GCC 6-32) TESTS 11 46 1331200
264534445 9ine A June 7, 2024, 3:45 a.m. OK C++14 (GCC 6-32) TESTS 11 61 0
264499884 TRR A June 6, 2024, 6:03 p.m. OK C++14 (GCC 6-32) TESTS 11 61 512000
264503184 pratham.programming7 A June 6, 2024, 6:30 p.m. OK C++14 (GCC 6-32) TESTS 11 61 2048000
264530671 jxin31415 A June 7, 2024, 2:52 a.m. OK C++14 (GCC 6-32) TESTS 11 62 0
264545737 manideep2004 A June 7, 2024, 5:45 a.m. OK C++14 (GCC 6-32) TESTS 11 62 0
264542772 Ag153 A June 7, 2024, 5:17 a.m. OK C++14 (GCC 6-32) TESTS 11 62 0
264541643 anujasati A June 7, 2024, 5:06 a.m. OK C++14 (GCC 6-32) TESTS 11 62 0
264527796 MartinKclark A June 7, 2024, 2:07 a.m. OK C++14 (GCC 6-32) TESTS 11 62 0
264533435 logi_11 A June 7, 2024, 3:31 a.m. OK C++17 (GCC 7-32) TESTS 11 46 0
264544216 Ohnose A June 7, 2024, 5:31 a.m. OK C++17 (GCC 7-32) TESTS 11 46 0
264541714 Rudra711 A June 7, 2024, 5:06 a.m. OK C++17 (GCC 7-32) TESTS 11 46 0
264540376 arn4v A June 7, 2024, 4:52 a.m. OK C++17 (GCC 7-32) TESTS 11 46 0
264538833 Uhsiv A June 7, 2024, 4:37 a.m. OK C++17 (GCC 7-32) TESTS 11 46 0
264537446 avihet1405 A June 7, 2024, 4:21 a.m. OK C++17 (GCC 7-32) TESTS 11 46 0
264535504 bitluffy A June 7, 2024, 3:58 a.m. OK C++17 (GCC 7-32) TESTS 11 46 0
264534376 Ronak241205 A June 7, 2024, 3:44 a.m. OK C++17 (GCC 7-32) TESTS 11 46 0
264534216 anandverse A June 7, 2024, 3:42 a.m. OK C++17 (GCC 7-32) TESTS 11 46 0
264532412 snavneet561 A June 7, 2024, 3:16 a.m. OK C++17 (GCC 7-32) TESTS 11 46 0
264539910 find_my_dawn A June 7, 2024, 4:48 a.m. OK C++20 (GCC 13-64) TESTS 11 46 0
264547395 strange_sniper A June 7, 2024, 5:59 a.m. OK C++20 (GCC 13-64) TESTS 11 46 0
264547290 heisenburg_10 A June 7, 2024, 5:58 a.m. OK C++20 (GCC 13-64) TESTS 11 46 0
264546132 qweiop A June 7, 2024, 5:49 a.m. OK C++20 (GCC 13-64) TESTS 11 46 0
264545314 mdnrkn A June 7, 2024, 5:41 a.m. OK C++20 (GCC 13-64) TESTS 11 46 0
264542870 EduardoBrito A June 7, 2024, 5:18 a.m. OK C++20 (GCC 13-64) TESTS 11 46 0
264540535 Retired_Isaunoya A June 7, 2024, 4:54 a.m. OK C++20 (GCC 13-64) TESTS 11 46 0
264540532 fs20091003 A June 7, 2024, 4:54 a.m. OK C++20 (GCC 13-64) TESTS 11 46 0
264540112 just_an_alt A June 7, 2024, 4:50 a.m. OK C++20 (GCC 13-64) TESTS 11 46 0
264537605 _Du_ A June 7, 2024, 4:23 a.m. OK C++20 (GCC 13-64) TESTS 11 46 0
264520461 bluemegane A June 6, 2024, 11:03 p.m. OK C# 8 TESTS 11 140 5017600
264534587 I_need_7.0_IELTS A June 7, 2024, 3:47 a.m. OK GNU C11 TESTS 11 62 102400
264542433 arjunpundir A June 7, 2024, 5:13 a.m. OK GNU C11 TESTS 11 62 204800
264487186 liteleliya A June 6, 2024, 4:30 p.m. OK GNU C11 TESTS 11 77 102400
264487528 vansh_oberoi07 A June 6, 2024, 4:31 p.m. OK GNU C11 TESTS 11 77 409600
264541684 vasireddyvenu A June 7, 2024, 5:06 a.m. OK GNU C11 TESTS 11 77 512000
264487230 Humaniac A June 6, 2024, 4:30 p.m. OK GNU C11 TESTS 11 77 716800
264486877 1999_Humayara A June 6, 2024, 4:30 p.m. OK GNU C11 TESTS 11 77 716800
264500496 theshadman007 A June 6, 2024, 6:08 p.m. OK GNU C11 TESTS 11 77 819200
264494406 botayhard A June 6, 2024, 5:27 p.m. OK Go TESTS 11 46 7884800
264531651 nguyenquocthao00 A June 7, 2024, 3:06 a.m. OK Go TESTS 11 62 2560000
264493204 crapcode A June 6, 2024, 5:22 p.m. OK Go TESTS 11 77 716800
264502493 nithin_bharathi A June 6, 2024, 6:25 p.m. OK Java 21 TESTS 11 249 409600
264506135 dzhi A June 6, 2024, 7:02 p.m. OK Java 21 TESTS 11 264 614400
264499300 mohit458 A June 6, 2024, 5:59 p.m. OK Java 21 TESTS 11 265 102400
264518456 Omar_Morsi A June 6, 2024, 10:02 p.m. OK Java 21 TESTS 11 265 307200
264519917 ilentianmc A June 6, 2024, 10:43 p.m. OK Java 21 TESTS 11 265 512000
264511042 codeWithDarshan A June 6, 2024, 8:01 p.m. OK Java 21 TESTS 11 280 409600
264541416 neilchetty A June 7, 2024, 5:03 a.m. OK Java 21 TESTS 11 281 0
264531044 black_rise A June 7, 2024, 2:57 a.m. OK Java 21 TESTS 11 281 512000
264533849 dhruv0902 A June 7, 2024, 3:37 a.m. OK Java 21 TESTS 11 296 307200
264528705 sujalsharma_13 A June 7, 2024, 2:22 a.m. OK Java 21 TESTS 11 296 819200
264546824 optimus1369 A June 7, 2024, 5:55 a.m. OK Java 8 TESTS 11 140 0
264539890 Q_R_Y A June 7, 2024, 4:48 a.m. OK Java 8 TESTS 11 140 0
264504399 Noureldin_Khaled A June 6, 2024, 6:42 p.m. OK Java 8 TESTS 11 140 0
264497097 yashvardhan3 A June 6, 2024, 5:42 p.m. OK Java 8 TESTS 11 140 0
264537935 coderman2004 A June 7, 2024, 4:26 a.m. OK Java 8 TESTS 11 171 0
264517177 rohitssingh17 A June 6, 2024, 9:35 p.m. OK Java 8 TESTS 11 218 0
264536903 marthapavan2002 A June 7, 2024, 4:16 a.m. OK Java 8 TESTS 11 233 0
264509954 chaitanya1023 A June 6, 2024, 7:47 p.m. OK Java 8 TESTS 11 233 0
264525888 XiangTianzhen A June 7, 2024, 1:30 a.m. OK Java 8 TESTS 11 234 0
264529295 Rianj A June 7, 2024, 2:31 a.m. OK Java 8 TESTS 11 249 0
264540628 jluis A June 7, 2024, 4:55 a.m. OK Kotlin 1.9 TESTS 11 218 102400
264530787 gouravasdeo11 A June 7, 2024, 2:54 a.m. OK Kotlin 1.9 TESTS 11 249 0
264496763 restart__ A June 6, 2024, 5:40 p.m. OK Kotlin 1.9 TESTS 11 280 102400
264498816 strategy A June 6, 2024, 5:55 p.m. OK PyPy 3 TESTS 11 171 5632000
264503289 the_rising_mortal A June 6, 2024, 6:31 p.m. OK PyPy 3 TESTS 11 233 6656000
264517773 WalrusRamen21 A June 6, 2024, 9:47 p.m. OK PyPy 3 TESTS 11 233 6758400
264507807 skywalker77 A June 6, 2024, 7:20 p.m. OK PyPy 3 TESTS 11 249 6758400
264494444 rashadalsharpini A June 6, 2024, 5:27 p.m. OK PyPy 3 TESTS 11 265 7065600
264523603 pratham927 A June 7, 2024, 12:36 a.m. OK PyPy 3 TESTS 11 265 8294400
264499644 amishkakru A June 6, 2024, 6:01 p.m. OK PyPy 3 TESTS 11 296 6758400
264515851 itachi_157 A June 6, 2024, 9:11 p.m. OK PyPy 3 TESTS 11 311 7680000
264523441 sNoobGod A June 7, 2024, 12:32 a.m. OK PyPy 3 TESTS 11 312 7680000
264503035 singh.eureka A June 6, 2024, 6:29 p.m. OK PyPy 3-64 TESTS 11 93 7782400
264529610 hxu10 A June 7, 2024, 2:36 a.m. OK PyPy 3-64 TESTS 11 93 7884800
264510113 strashila A June 6, 2024, 7:49 p.m. OK PyPy 3-64 TESTS 11 108 7680000
264504142 RobinFromTheHood A June 6, 2024, 6:40 p.m. OK PyPy 3-64 TESTS 11 108 7782400
264503915 randombernie A June 6, 2024, 6:37 p.m. OK PyPy 3-64 TESTS 11 109 7475200
264525819 smilences A June 7, 2024, 1:28 a.m. OK PyPy 3-64 TESTS 11 109 7680000
264528478 mikeac A June 7, 2024, 2:18 a.m. OK PyPy 3-64 TESTS 11 109 7782400
264497031 gardengnome A June 6, 2024, 5:42 p.m. OK PyPy 3-64 TESTS 11 109 7782400
264523558 MdAbedin A June 7, 2024, 12:35 a.m. OK PyPy 3-64 TESTS 11 109 7884800
264501501 iedfa A June 6, 2024, 6:16 p.m. OK PyPy 3-64 TESTS 11 109 8192000
264524648 biltharesatyendra A June 7, 2024, 1:03 a.m. OK Python 2 TESTS 11 124 1843200
264512877 connorencrypted A June 6, 2024, 8:27 p.m. OK Python 3 TESTS 11 77 5939200
264539316 RookieCookie777 A June 7, 2024, 4:42 a.m. OK Python 3 TESTS 11 93 5939200
264531641 deadshot_24 A June 7, 2024, 3:06 a.m. OK Python 3 TESTS 11 93 5939200
264526829 Farhan.WaheedSS A June 7, 2024, 1:50 a.m. OK Python 3 TESTS 11 93 5939200
264509891 JPcwk A June 6, 2024, 7:46 p.m. OK Python 3 TESTS 11 93 5939200
264503933 thekingamansingh A June 6, 2024, 6:38 p.m. OK Python 3 TESTS 11 93 5939200
264545794 Sneakyyy A June 7, 2024, 5:46 a.m. OK Python 3 TESTS 11 108 5939200
264537962 hs_2024 A June 7, 2024, 4:26 a.m. OK Python 3 TESTS 11 108 5939200
264535829 rewinery A June 7, 2024, 4:03 a.m. OK Python 3 TESTS 11 108 5939200
264520500 ehabnasr406 A June 6, 2024, 11:04 p.m. OK Python 3 TESTS 11 108 5939200
264503806 0x81 A June 6, 2024, 6:36 p.m. OK Ruby 3 TESTS 11 359 10240000
264531480 Avalloni A June 7, 2024, 3:04 a.m. OK Rust 2021 TESTS 11 46 0
264539336 vstiff A June 7, 2024, 4:42 a.m. OK Rust 2021 TESTS 11 62 0

remove filters

Back to search problems