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 |
---|---|---|---|---|---|---|
1856 | Codeforces Round 890 (Div. 2) supported by Constructor Institute | FINISHED | False | 7200 | 45933863 | Aug. 5, 2023, 2:35 p.m. |
Solved$ |
Index |
Name |
Type |
Tags |
Community Tag |
Rating |
---|---|---|---|---|---|---|
( 13117 ) | C | To Become Max | PROGRAMMING | binary search brute force data structures dp |
B'You are given an array of integers a of length n . In one operation you: Find the maximum possible value of max(a_1, a_2, ldots a_n) that you can get after performing this operation at most k times. Each test contains multiple test cases. The first line of input contains a single integer t ( 1 <= t <= 100 ) -- the number of test cases. The description of the test cases follows. The first line of each test case contains two integers n and k ( 2 <= n <= 1000 , 1 <= k <= 10^{8} ) -- the length of the array a and the maximum number of operations that can be performed. The second line of each test case contains n integers a_1,a_2, ldots,a_n ( 1 <= a_i <= 10^{8} ) -- the elements of the array a . It is guaranteed that the sum of n over all test cases does not exceed 1000 . For each test case output a single integer -- the maximum possible maximum of the array after performing at most k operations. In the first test case, one possible optimal sequence of operations is: [ color{red}{1}, 3, 3] rightarrow [2, color{red}{3}, 3] rightarrow [ color{red}{2}, 4, 3] rightarrow [ color{red}{3}, 4, 3] rightarrow [4, 4, 3] . In the second test case, one possible optimal sequence of operations is: [1, color{red}{3}, 4, 5, 1] rightarrow [1, color{red}{4}, 4, 5, 1] rightarrow [1, 5, color{red}{4}, 5, 1] rightarrow [1, 5, color{red}{5}, 5, 1] rightarrow [1, color{red}{5}, 6, 5, 1] rightarrow [1, color{red}{6}, 6, 5, 1] rightarrow [1, 7, 6, 5, 1] . '... |
Codeforces Round #890 (Div. 2) Editorial |
Submission Id |
Author(s) |
Index |
Submitted |
Verdict |
Language |
Test Set |
Tests Passed |
Time taken (ms) |
Memory Consumed (bytes) |
Tags |
Rating |
---|---|---|---|---|---|---|---|---|---|---|---|
217359148 | Tdyx | C | Aug. 5, 2023, 5:39 p.m. | OK | C# 10 | TESTS | 49 | 62 | 307200 | ||
217367023 | tahtarovserver | C | Aug. 5, 2023, 6:36 p.m. | OK | C# 10 | TESTS | 49 | 77 | 204800 | ||
217405127 | lAMaLOSER | C | Aug. 6, 2023, 4:56 a.m. | OK | C# 10 | TESTS | 49 | 171 | 409600 | ||
217351295 | MonDellBit | C | Aug. 5, 2023, 4:33 p.m. | OK | C# 8 | TESTS | 48 | 124 | 204800 | ||
217398513 | khongvaodcLQD2023 | C | Aug. 6, 2023, 3:08 a.m. | OK | C# 8 | TESTS | 49 | 124 | 204800 | ||
217356351 | zpt666 | C | Aug. 5, 2023, 5:25 p.m. | OK | Clang++17 Diagnostics | TESTS | 48 | 374 | 8294400 | ||
217380680 | eastnman | C | Aug. 5, 2023, 8:57 p.m. | OK | FPC | TESTS | 49 | 31 | 819200 | ||
217381137 | ruban | C | Aug. 5, 2023, 9:05 p.m. | OK | FPC | TESTS | 49 | 234 | 11366400 | ||
217392331 | 1435730 | C | Aug. 6, 2023, 1:14 a.m. | OK | GNU C11 | TESTS | 49 | 31 | 0 | ||
217351535 | Jubayer__ | C | Aug. 5, 2023, 4:34 p.m. | OK | GNU C11 | TESTS | 48 | 62 | 102400 | ||
217356270 | MenezesDM | C | Aug. 5, 2023, 5:24 p.m. | OK | GNU C11 | TESTS | 48 | 78 | 0 | ||
217399126 | halehu | C | Aug. 6, 2023, 3:20 a.m. | OK | GNU C++14 | TESTS | 49 | 15 | 0 | ||
217396396 | MongoRolls | C | Aug. 6, 2023, 2:32 a.m. | OK | GNU C++14 | TESTS | 49 | 15 | 0 | ||
217366369 | pcajourney | C | Aug. 5, 2023, 6:30 p.m. | OK | GNU C++14 | TESTS | 49 | 15 | 0 | ||
217361084 | pcajourney | C | Aug. 5, 2023, 5:51 p.m. | OK | GNU C++14 | TESTS | 49 | 15 | 0 | ||
217350931 | leminhphuc349 | C | Aug. 5, 2023, 4:33 p.m. | OK | GNU C++14 | TESTS | 48 | 15 | 0 | ||
217401951 | DgutGWK | C | Aug. 6, 2023, 4:06 a.m. | OK | GNU C++14 | TESTS | 49 | 15 | 0 | ||
217364813 | kartik8800 | C | Aug. 5, 2023, 6:18 p.m. | OK | GNU C++14 | TESTS | 49 | 15 | 102400 | ||
217351034 | Ahmedmadbouly186 | C | Aug. 5, 2023, 4:33 p.m. | OK | GNU C++14 | TESTS | 48 | 15 | 102400 | ||
217404427 | Harsh_Dagar__ | C | Aug. 6, 2023, 4:45 a.m. | OK | GNU C++14 | TESTS | 49 | 15 | 102400 | ||
217361513 | duyanhk35itctq | C | Aug. 5, 2023, 5:53 p.m. | OK | GNU C++14 | TESTS | 49 | 15 | 1228800 | ||
217365553 | gogo11 | C | Aug. 5, 2023, 6:24 p.m. | OK | GNU C++17 | TESTS | 49 | 15 | 0 | ||
217360383 | Eslam_Fayez | C | Aug. 5, 2023, 5:46 p.m. | OK | GNU C++17 | TESTS | 49 | 15 | 0 | ||
217358028 | igor_the_creator | C | Aug. 5, 2023, 5:32 p.m. | OK | GNU C++17 | TESTS | 49 | 15 | 0 | ||
217355927 | LGXXGL | C | Aug. 5, 2023, 5:24 p.m. | OK | GNU C++17 | TESTS | 48 | 15 | 0 | ||
217351013 | srinith | C | Aug. 5, 2023, 4:33 p.m. | OK | GNU C++17 | TESTS | 48 | 15 | 0 | ||
217366072 | fireheart17 | C | Aug. 5, 2023, 6:27 p.m. | OK | GNU C++17 | TESTS | 49 | 15 | 0 | ||
217371028 | PPLLTT | C | Aug. 5, 2023, 7:12 p.m. | OK | GNU C++17 | TESTS | 49 | 15 | 0 | ||
217365970 | CSHwang | C | Aug. 5, 2023, 6:27 p.m. | OK | GNU C++17 | TESTS | 49 | 15 | 0 | ||
217401458 | bijiEnak | C | Aug. 6, 2023, 3:58 a.m. | OK | GNU C++17 | TESTS | 49 | 15 | 102400 | ||
217401356 | case_la | C | Aug. 6, 2023, 3:56 a.m. | OK | GNU C++17 | TESTS | 49 | 15 | 102400 | ||
217365775 | Lenin-s_air | C | Aug. 5, 2023, 6:25 p.m. | OK | GNU C++17 (64) | TESTS | 49 | 15 | 0 | ||
217404439 | suneqa | C | Aug. 6, 2023, 4:46 a.m. | OK | GNU C++17 (64) | TESTS | 49 | 15 | 0 | ||
217394557 | moursalinme | C | Aug. 6, 2023, 1:59 a.m. | OK | GNU C++17 (64) | TESTS | 49 | 15 | 0 | ||
217385298 | I_Will_Succeed_Some_Day | C | Aug. 5, 2023, 10:18 p.m. | OK | GNU C++17 (64) | TESTS | 49 | 15 | 0 | ||
217384116 | tulare789 | C | Aug. 5, 2023, 9:58 p.m. | OK | GNU C++17 (64) | TESTS | 49 | 15 | 0 | ||
217380720 | timerglOoOt | C | Aug. 5, 2023, 8:58 p.m. | OK | GNU C++17 (64) | TESTS | 49 | 15 | 0 | ||
217377502 | vs474026 | C | Aug. 5, 2023, 8:16 p.m. | OK | GNU C++17 (64) | TESTS | 49 | 15 | 0 | ||
217377033 | metelkov | C | Aug. 5, 2023, 8:10 p.m. | OK | GNU C++17 (64) | TESTS | 49 | 15 | 0 | ||
217375151 | OEENRS_ | C | Aug. 5, 2023, 7:50 p.m. | OK | GNU C++17 (64) | TESTS | 49 | 15 | 0 | ||
217370671 | tryptophan | C | Aug. 5, 2023, 7:08 p.m. | OK | GNU C++17 (64) | TESTS | 49 | 15 | 0 | ||
217409224 | abcpony | C | Aug. 6, 2023, 5:50 a.m. | OK | GNU C++20 (64) | TESTS | 49 | 15 | 0 | ||
217408804 | ITHZ | C | Aug. 6, 2023, 5:45 a.m. | OK | GNU C++20 (64) | TESTS | 49 | 15 | 0 | ||
217408738 | ressoa | C | Aug. 6, 2023, 5:45 a.m. | OK | GNU C++20 (64) | TESTS | 49 | 15 | 0 | ||
217408392 | rescue_me | C | Aug. 6, 2023, 5:40 a.m. | OK | GNU C++20 (64) | TESTS | 49 | 15 | 0 | ||
217407776 | ZoTH | C | Aug. 6, 2023, 5:32 a.m. | OK | GNU C++20 (64) | TESTS | 49 | 15 | 0 | ||
217407691 | Eshaan19 | C | Aug. 6, 2023, 5:31 a.m. | OK | GNU C++20 (64) | TESTS | 49 | 15 | 0 | ||
217407595 | asiful_Islam | C | Aug. 6, 2023, 5:30 a.m. | OK | GNU C++20 (64) | TESTS | 49 | 15 | 0 | ||
217409612 | Mhkhancou | C | Aug. 6, 2023, 5:54 a.m. | OK | GNU C++20 (64) | TESTS | 49 | 15 | 0 | ||
217410289 | AkTtt | C | Aug. 6, 2023, 6:02 a.m. | OK | GNU C++20 (64) | TESTS | 49 | 15 | 0 | ||
217410310 | boon1 | C | Aug. 6, 2023, 6:02 a.m. | OK | GNU C++20 (64) | TESTS | 49 | 15 | 0 | ||
217402013 | GodFather_ | C | Aug. 6, 2023, 4:07 a.m. | OK | Java 11 | TESTS | 49 | 187 | 0 | ||
217368032 | IceWolf898 | C | Aug. 5, 2023, 6:45 p.m. | OK | Java 11 | TESTS | 49 | 187 | 0 | ||
217364908 | prabhjout | C | Aug. 5, 2023, 6:19 p.m. | OK | Java 11 | TESTS | 49 | 187 | 0 | ||
217363024 | jooncco | C | Aug. 5, 2023, 6:04 p.m. | OK | Java 11 | TESTS | 49 | 187 | 0 | ||
217388579 | snkv | C | Aug. 5, 2023, 11:35 p.m. | OK | Java 11 | TESTS | 49 | 202 | 0 | ||
217364601 | bobib | C | Aug. 5, 2023, 6:17 p.m. | OK | Java 11 | TESTS | 49 | 202 | 0 | ||
217351195 | princeayush04 | C | Aug. 5, 2023, 4:33 p.m. | OK | Java 11 | TESTS | 48 | 202 | 0 | ||
217361689 | S8UL_1963 | C | Aug. 5, 2023, 5:55 p.m. | OK | Java 11 | TESTS | 49 | 217 | 0 | ||
217387197 | snkv | C | Aug. 5, 2023, 11 p.m. | OK | Java 11 | TESTS | 49 | 218 | 0 | ||
217351495 | barbar1k | C | Aug. 5, 2023, 4:34 p.m. | OK | Java 11 | TESTS | 48 | 218 | 0 | ||
217363348 | jooncco | C | Aug. 5, 2023, 6:07 p.m. | OK | Java 17 | TESTS | 49 | 202 | 614400 | ||
217384938 | imvivekthakur | C | Aug. 5, 2023, 10:10 p.m. | OK | Java 17 | TESTS | 49 | 202 | 716800 | ||
217359665 | egor4444ik | C | Aug. 5, 2023, 5:42 p.m. | OK | Java 17 | TESTS | 49 | 202 | 716800 | ||
217351462 | Utsav82 | C | Aug. 5, 2023, 4:33 p.m. | OK | Java 17 | TESTS | 48 | 202 | 716800 | ||
217383823 | ShresCodes | C | Aug. 5, 2023, 9:52 p.m. | OK | Java 17 | TESTS | 49 | 218 | 819200 | ||
217372419 | Kiwiegg | C | Aug. 5, 2023, 7:23 p.m. | OK | Java 17 | TESTS | 49 | 233 | 819200 | ||
217409161 | 2110030317 | C | Aug. 6, 2023, 5:49 a.m. | OK | Java 17 | TESTS | 49 | 233 | 1126400 | ||
217394423 | wizardleen | C | Aug. 6, 2023, 1:57 a.m. | OK | Java 17 | TESTS | 49 | 233 | 24473600 | ||
217373189 | Suraj1607 | C | Aug. 5, 2023, 7:31 p.m. | OK | Java 17 | TESTS | 49 | 249 | 819200 | ||
217394567 | r01234 | C | Aug. 6, 2023, 2 a.m. | OK | Java 17 | TESTS | 49 | 265 | 716800 | ||
217405613 | WvemiY9 | C | Aug. 6, 2023, 5:03 a.m. | OK | Java 8 | TESTS | 49 | 108 | 0 | ||
217409096 | formidablechief_27 | C | Aug. 6, 2023, 5:49 a.m. | OK | Java 8 | TESTS | 49 | 140 | 0 | ||
217381215 | yousef03 | C | Aug. 5, 2023, 9:06 p.m. | OK | Java 8 | TESTS | 49 | 155 | 0 | ||
217405518 | bleach__ | C | Aug. 6, 2023, 5:02 a.m. | OK | Java 8 | TESTS | 49 | 171 | 46182400 | ||
217401769 | NimiSora | C | Aug. 6, 2023, 4:03 a.m. | OK | Java 8 | TESTS | 49 | 202 | 0 | ||
217401448 | NimiSora | C | Aug. 6, 2023, 3:57 a.m. | OK | Java 8 | TESTS | 49 | 202 | 0 | ||
217357275 | czm233 | C | Aug. 5, 2023, 5:28 p.m. | OK | MS C++ 2017 | TESTS | 48 | 62 | 102400 | ||
217392201 | VioletVal | C | Aug. 6, 2023, 1:11 a.m. | OK | PyPy 3 | TESTS | 49 | 139 | 2764800 | ||
217369767 | tr1ten | C | Aug. 5, 2023, 7 p.m. | OK | PyPy 3 | TESTS | 49 | 577 | 2764800 | ||
217351803 | karthiksunil64 | C | Aug. 5, 2023, 4:34 p.m. | OK | PyPy 3 | TESTS | 48 | 1559 | 6451200 | ||
217385849 | SoleProprietor | C | Aug. 5, 2023, 10:31 p.m. | OK | PyPy 3-64 | TESTS | 49 | 62 | 1945600 | ||
217385219 | injust | C | Aug. 5, 2023, 10:16 p.m. | OK | PyPy 3-64 | TESTS | 49 | 62 | 2150400 | ||
217384782 | injust | C | Aug. 5, 2023, 10:07 p.m. | OK | PyPy 3-64 | TESTS | 49 | 77 | 2150400 | ||
217383426 | injust | C | Aug. 5, 2023, 9:45 p.m. | OK | PyPy 3-64 | TESTS | 49 | 77 | 2252800 | ||
217383769 | injust | C | Aug. 5, 2023, 9:51 p.m. | OK | PyPy 3-64 | TESTS | 49 | 77 | 3072000 | ||
217382531 | tntfifaufc | C | Aug. 5, 2023, 9:28 p.m. | OK | PyPy 3-64 | TESTS | 49 | 78 | 2969600 | ||
217388970 | RobinFromTheHood | C | Aug. 5, 2023, 11:45 p.m. | OK | PyPy 3-64 | TESTS | 49 | 92 | 4096000 | ||
217356087 | flexr | C | Aug. 5, 2023, 5:24 p.m. | OK | PyPy 3-64 | TESTS | 48 | 93 | 3379200 | ||
217357839 | VAnDm12345 | C | Aug. 5, 2023, 5:31 p.m. | OK | PyPy 3-64 | TESTS | 49 | 93 | 3481600 | ||
217352214 | dark_eldenring | C | Aug. 5, 2023, 4:34 p.m. | OK | PyPy 3-64 | TESTS | 48 | 93 | 3481600 | ||
217373510 | ravi.gaikar88 | C | Aug. 5, 2023, 7:35 p.m. | OK | Python 3 | TESTS | 49 | 358 | 0 | ||
217351707 | IAmNotNoorik | C | Aug. 5, 2023, 4:34 p.m. | OK | Python 3 | TESTS | 48 | 685 | 0 | ||
217356611 | thakur_01 | C | Aug. 5, 2023, 5:26 p.m. | OK | Python 3 | TESTS | 48 | 1091 | 307200 | ||
217350816 | -----x | C | Aug. 5, 2023, 4:32 p.m. | OK | Python 3 | TESTS | 48 | 1107 | 0 | ||
217365653 | prateek.goel.cs.2019 | C | Aug. 5, 2023, 6:24 p.m. | OK | Python 3 | TESTS | 49 | 1154 | 3276800 | ||
217363604 | 21wh1a05h8 | C | Aug. 5, 2023, 6:09 p.m. | OK | Python 3 | TESTS | 49 | 1528 | 0 | ||
217351992 | tukohh | C | Aug. 5, 2023, 4:34 p.m. | OK | Ruby 3 | TESTS | 48 | 826 | 204800 | ||
217356179 | haihamabossu | C | Aug. 5, 2023, 5:24 p.m. | OK | Rust 2021 | TESTS | 48 | 31 | 102400 |
Back to search problems