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 |
---|---|---|---|---|---|---|
1650 | Codeforces Round 776 (Div. 3) | FINISHED | False | 8100 | 90429863 | March 8, 2022, 2:35 p.m. |
Solved$ |
Index |
Name |
Type |
Tags |
Community Tag |
Rating |
---|---|---|---|---|---|---|
( 4210 ) | E | Rescheduling the Exam | PROGRAMMING | binary search data structures greedy implementation math sortings |
B'Now Dmitry has a session, and he has to pass n exams. The session starts on day 1 and lasts d days. The i th exam will take place on the day of a_i ( 1 <= a_i <= d ), all a_i -- are different. For the session schedule, Dmitry considers a special value mu -- the smallest of the rest times before the exam for all exams. For example, for the image above, mu=1 . In other words, for the schedule, he counts exactly n numbers -- how many days he rests between the exam i-1 and i (for i=0 between the start of the session and the exam i ). Then it finds mu -- the minimum among these n numbers. Dmitry believes that he can improve the schedule of the session. He may ask to change the date of one exam (change one arbitrary value of a_i ). Help him change the date so that all a_i remain different, and the value of mu is as large as possible. For example, for the schedule above, it is most advantageous for Dmitry to move the second exam to the very end of the session. The new schedule will take the form: Dmitry can leave the proposed schedule unchanged (if there is no way to move one exam so that it will lead to an improvement in the situation). The first line of input data contains an integer t ( 1 <= t <= 10^4 ) -- the number of input test cases. The descriptions of test cases follow. An empty line is written in the test before each case. The first line of each test case contains two integers n and d ( 2 <= n <= 2 cdot 10^5, 1 <= d <= 10^9 ) -- the number of exams and the length of the session, respectively. The second line of each test case contains n integers a_i ( 1 <= a_i <= d, a_i < a_{i+1} ), where the i -th number means the date of the i -th exam. It is guaranteed that the sum of n for all test cases does not exceed 2 cdot 10^5 . For each test case, output the maximum'... |
100712 |
Submission Id |
Author(s) |
Index |
Submitted |
Verdict |
Language |
Test Set |
Tests Passed |
Time taken (ms) |
Memory Consumed (bytes) |
Tags |
Rating |
---|---|---|---|---|---|---|---|---|---|---|---|
148903344 | mathlee | E | March 8, 2022, 4:40 p.m. | OK | GNU C++14 | TESTS | 29 | 46 | 819200 | ||
148947308 | default111 | E | March 9, 2022, 5:13 a.m. | OK | GNU C++14 | TESTS | 29 | 46 | 2764800 | ||
148905475 | crazyzhk | E | March 8, 2022, 4:45 p.m. | OK | GNU C++14 | TESTS | 29 | 61 | 1638400 | ||
148944436 | Harshkohli15 | E | March 9, 2022, 4:25 a.m. | OK | GNU C++14 | TESTS | 29 | 61 | 3174400 | ||
148946239 | 202014060207 | E | March 9, 2022, 4:57 a.m. | OK | GNU C++14 | TESTS | 29 | 61 | 11980800 | ||
148916237 | DGJG | E | March 8, 2022, 5:54 p.m. | OK | GNU C++14 | TESTS | 29 | 62 | 819200 | ||
148910206 | _ragnar0k_ | E | March 8, 2022, 5:03 p.m. | OK | GNU C++14 | TESTS | 29 | 62 | 819200 | ||
148906772 | lickelon | E | March 8, 2022, 4:48 p.m. | OK | GNU C++14 | TESTS | 29 | 62 | 819200 | ||
148902924 | zzk123 | E | March 8, 2022, 4:39 p.m. | OK | GNU C++14 | TESTS | 29 | 62 | 819200 | ||
148947549 | yashpal_sparton | E | March 9, 2022, 5:17 a.m. | OK | GNU C++14 | TESTS | 29 | 62 | 1638400 | ||
148936121 | yurenwuyu | E | March 9, 2022, 1:14 a.m. | OK | GNU C++17 | TESTS | 29 | 46 | 2457600 | ||
148936726 | ashina_issin | E | March 9, 2022, 1:31 a.m. | OK | GNU C++17 | TESTS | 29 | 61 | 1638400 | ||
148906777 | aaaaki | E | March 8, 2022, 4:48 p.m. | OK | GNU C++17 | TESTS | 29 | 61 | 1638400 | ||
148942547 | Tartarus | E | March 9, 2022, 3:49 a.m. | OK | GNU C++17 | TESTS | 29 | 61 | 2457600 | ||
148941842 | fallow.man | E | March 9, 2022, 3:35 a.m. | OK | GNU C++17 | TESTS | 29 | 61 | 3993600 | ||
148938258 | Sakura_mw | E | March 9, 2022, 2:15 a.m. | OK | GNU C++17 | TESTS | 29 | 61 | 4198400 | ||
148942399 | modiii | E | March 9, 2022, 3:46 a.m. | OK | GNU C++17 | TESTS | 29 | 62 | 819200 | ||
148942031 | qqqqc | E | March 9, 2022, 3:39 a.m. | OK | GNU C++17 | TESTS | 29 | 62 | 819200 | ||
148937283 | Knowledge_LLZ | E | March 9, 2022, 1:49 a.m. | OK | GNU C++17 | TESTS | 29 | 62 | 819200 | ||
148927697 | jukhega_nahi | E | March 8, 2022, 8:41 p.m. | OK | GNU C++17 | TESTS | 29 | 62 | 819200 | ||
148946909 | InFaNg | E | March 9, 2022, 5:07 a.m. | OK | GNU C++17 (64) | TESTS | 29 | 46 | 1638400 | ||
148938483 | keeping_running | E | March 9, 2022, 2:21 a.m. | OK | GNU C++17 (64) | TESTS | 29 | 46 | 1638400 | ||
148919374 | aniket_kundu | E | March 8, 2022, 6:30 p.m. | OK | GNU C++17 (64) | TESTS | 29 | 46 | 1638400 | ||
148918241 | rgnerdplayer | E | March 8, 2022, 6:16 p.m. | OK | GNU C++17 (64) | TESTS | 29 | 46 | 1638400 | ||
148904395 | asd12 | E | March 8, 2022, 4:43 p.m. | OK | GNU C++17 (64) | TESTS | 29 | 46 | 1638400 | ||
148937843 | thusloop | E | March 9, 2022, 2:04 a.m. | OK | GNU C++17 (64) | TESTS | 29 | 46 | 1843200 | ||
148931797 | kal013 | E | March 8, 2022, 10:19 p.m. | OK | GNU C++17 (64) | TESTS | 29 | 46 | 2457600 | ||
148936717 | blank_monster | E | March 9, 2022, 1:31 a.m. | OK | GNU C++17 (64) | TESTS | 29 | 46 | 2969600 | ||
148937927 | rollx | E | March 9, 2022, 2:06 a.m. | OK | GNU C++17 (64) | TESTS | 29 | 46 | 3174400 | ||
148943884 | anmichi | E | March 9, 2022, 4:15 a.m. | OK | GNU C++17 (64) | TESTS | 29 | 46 | 3788800 | ||
148907645 | eptzd | E | March 8, 2022, 4:49 p.m. | OK | GNU C++20 (64) | TESTS | 29 | 31 | 819200 | ||
148942590 | ueurwieuzzzzz | E | March 9, 2022, 3:50 a.m. | OK | GNU C++20 (64) | TESTS | 29 | 31 | 2969600 | ||
148936822 | Zhora_.004 | E | March 9, 2022, 1:34 a.m. | OK | GNU C++20 (64) | TESTS | 29 | 31 | 2969600 | ||
148944868 | liuxi7086 | E | March 9, 2022, 4:33 a.m. | OK | GNU C++20 (64) | TESTS | 29 | 31 | 3174400 | ||
148930605 | memoryallocator | E | March 8, 2022, 9:44 p.m. | OK | GNU C++20 (64) | TESTS | 29 | 31 | 3174400 | ||
148903783 | gu76h | E | March 8, 2022, 4:41 p.m. | OK | GNU C++20 (64) | TESTS | 29 | 31 | 3174400 | ||
148929945 | 7oSkaaa | E | March 8, 2022, 9:29 p.m. | OK | GNU C++20 (64) | TESTS | 29 | 31 | 4608000 | ||
148903816 | Jameslyu | E | March 8, 2022, 4:41 p.m. | OK | GNU C++20 (64) | TESTS | 29 | 31 | 4710400 | ||
148906277 | almothana | E | March 8, 2022, 4:47 p.m. | OK | GNU C++20 (64) | TESTS | 29 | 31 | 5017600 | ||
148906418 | Andreikkaa | E | March 8, 2022, 4:47 p.m. | OK | GNU C++20 (64) | TESTS | 29 | 31 | 5632000 | ||
148948608 | ND_ | E | March 9, 2022, 5:32 a.m. | OK | Java 11 | TESTS | 29 | 187 | 0 | ||
148949392 | __Serendipity | E | March 9, 2022, 5:42 a.m. | OK | Java 11 | TESTS | 29 | 218 | 0 | ||
148904255 | Khater | E | March 8, 2022, 4:42 p.m. | OK | Java 11 | TESTS | 29 | 249 | 0 | ||
148926260 | pras7946 | E | March 8, 2022, 8:15 p.m. | OK | Java 11 | TESTS | 29 | 264 | 0 | ||
148933671 | Andwerp | E | March 8, 2022, 11:52 p.m. | OK | Java 11 | TESTS | 29 | 327 | 2150400 | ||
148908944 | soumit915 | E | March 8, 2022, 4:56 p.m. | OK | Java 11 | TESTS | 29 | 343 | 0 | ||
148944920 | adi_daredevil | E | March 9, 2022, 4:34 a.m. | OK | Java 8 | TESTS | 29 | 171 | 5632000 | ||
148918248 | gagan_6730 | E | March 8, 2022, 6:16 p.m. | OK | Java 8 | TESTS | 29 | 187 | 8089600 | ||
148923135 | VishuTomar | E | March 8, 2022, 7:24 p.m. | OK | Java 8 | TESTS | 29 | 202 | 7987200 | ||
148913986 | invincible777 | E | March 8, 2022, 5:32 p.m. | OK | Java 8 | TESTS | 29 | 390 | 65740800 | ||
148923002 | VishuTomar | E | March 8, 2022, 7:22 p.m. | OK | Java 8 | TESTS | 29 | 561 | 9420800 | ||
148906816 | khwrzm | E | March 8, 2022, 4:48 p.m. | OK | Java 8 | TESTS | 29 | 592 | 38502400 | ||
148909514 | NerfThis | E | March 8, 2022, 4:59 p.m. | OK | Java 8 | TESTS | 29 | 624 | 3686400 | ||
148911439 | NerfThis | E | March 8, 2022, 5:12 p.m. | OK | Java 8 | TESTS | 29 | 654 | 3686400 | ||
148911853 | LeoPro | E | March 8, 2022, 5:15 p.m. | OK | Kotlin 1.5 | TESTS | 29 | 389 | 20582400 | ||
148913557 | xjcl | E | March 8, 2022, 5:29 p.m. | OK | Kotlin 1.5 | TESTS | 29 | 623 | 21811200 | ||
148918859 | Golovanov399 | E | March 8, 2022, 6:24 p.m. | OK | Kotlin 1.5 | TESTS | 29 | 1591 | 21299200 | ||
148903471 | Alexey | E | March 8, 2022, 4:41 p.m. | OK | MS C++ 2017 | TESTS | 29 | 171 | 819200 | ||
148908463 | El_Presidente | E | March 8, 2022, 4:53 p.m. | OK | MS C++ 2017 | TESTS | 29 | 186 | 2560000 | ||
148913222 | skimono | E | March 8, 2022, 5:26 p.m. | OK | MS C++ 2017 | TESTS | 29 | 686 | 9728000 | ||
148942679 | A_Pier | E | March 9, 2022, 3:52 a.m. | OK | MS C++ 2017 | TESTS | 29 | 889 | 7270400 | ||
148948337 | kwin | E | March 9, 2022, 5:29 a.m. | OK | PyPy 3 | TESTS | 29 | 295 | 18432000 | ||
148908652 | prime.1729 | E | March 8, 2022, 4:54 p.m. | OK | PyPy 3 | TESTS | 29 | 311 | 18534400 | ||
148903812 | sw_enthusiast | E | March 8, 2022, 4:41 p.m. | OK | PyPy 3 | TESTS | 29 | 873 | 86220800 | ||
148912353 | kojihashimoto | E | March 8, 2022, 5:19 p.m. | OK | PyPy 3 | TESTS | 29 | 904 | 22835200 | ||
148943630 | nitish420 | E | March 9, 2022, 4:10 a.m. | OK | PyPy 3-64 | TESTS | 29 | 218 | 37068800 | ||
148923784 | sakshatmali | E | March 8, 2022, 7:34 p.m. | OK | PyPy 3-64 | TESTS | 29 | 280 | 43929600 | ||
148923321 | zouyu9631 | E | March 8, 2022, 7:27 p.m. | OK | PyPy 3-64 | TESTS | 29 | 295 | 32460800 | ||
148940885 | abhijeet.panihar.cse20 | E | March 9, 2022, 3:16 a.m. | OK | PyPy 3-64 | TESTS | 29 | 326 | 34918400 | ||
148907641 | mintplz | E | March 8, 2022, 4:49 p.m. | OK | PyPy 3-64 | TESTS | 29 | 342 | 25702400 | ||
148943363 | nitish420 | E | March 9, 2022, 4:05 a.m. | OK | PyPy 3-64 | TESTS | 29 | 373 | 38297600 | ||
148932275 | unknownSolver | E | March 8, 2022, 10:36 p.m. | OK | PyPy 3-64 | TESTS | 29 | 374 | 38707200 | ||
148917106 | unknownSolver | E | March 8, 2022, 6:04 p.m. | OK | PyPy 3-64 | TESTS | 29 | 405 | 39731200 | ||
148949496 | AbnerShen | E | March 9, 2022, 5:44 a.m. | OK | PyPy 3-64 | TESTS | 29 | 529 | 28262400 | ||
148921388 | bot_yaya | E | March 8, 2022, 6:58 p.m. | OK | PyPy 3-64 | TESTS | 29 | 530 | 32665600 | ||
148938648 | titan1432 | E | March 9, 2022, 2:26 a.m. | OK | Python 3 | TESTS | 29 | 265 | 20480000 | ||
148950000 | Dixit_here | E | March 9, 2022, 5:51 a.m. | OK | Python 3 | TESTS | 29 | 639 | 16486400 |
Back to search problems