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 |
---|---|---|---|---|---|---|
1783 | Educational Codeforces Round 141 (Rated for Div. 2) | FINISHED | False | 7200 | 63991463 | Jan. 8, 2023, 2:35 p.m. |
Solved$ |
Index |
Name |
Type |
Tags |
Community Tag |
Rating |
---|---|---|---|---|---|---|
( 9596 ) | C | Yet Another Tournament | PROGRAMMING | binary search greedy sortings |
B"You are participating in Yet Another Tournament. There are n + 1 participants: you and n other opponents, numbered from 1 to n . Each two participants will play against each other exactly once. If the opponent i plays against the opponent j , he wins if and only if i > j . When the opponent i plays against you, everything becomes a little bit complicated. In order to get a win against opponent i , you need to prepare for the match for at least a_i minutes -- otherwise, you lose to that opponent. You have m minutes in total to prepare for matches, but you can prepare for only one match at one moment. In other words, if you want to win against opponents p_1, p_2, ... , p_k , you need to spend a_{p_1} + a_{p_2} + ... + a_{p_k} minutes for preparation -- and if this number is greater than m , you cannot achieve a win against all of these opponents at the same time. The final place of each contestant is equal to the number of contestants with strictly more wins + 1 . For example, if 3 contestants have 5 wins each, 1 contestant has 3 wins and 2 contestants have 1 win each, then the first 3 participants will get the 1 -st place, the fourth one gets the 4 -th place and two last ones get the 5 -th place. Calculate the minimum possible place (lower is better) you can achieve if you can't prepare for the matches more than m minutes in total. The first line contains a single integer t ( 1 <= t <= 10^4 ) -- the number of test cases. The first line of each test case contains two integers n and m ( 1 <= n <= 5 cdot 10^5 ; 0 <= m <= sum limits_{i=1}^{n}{a_i} ) -- the number of your opponents and the total time you have for preparation. The second line of each test case contains n integers a_1, a_2, ... , a_n ( 0 <= a_i <= 1000 ), where a_i is the time"... |
Educational Codeforces Round 141 Editorial |
Submission Id |
Author(s) |
Index |
Submitted |
Verdict |
Language |
Test Set |
Tests Passed |
Time taken (ms) |
Memory Consumed (bytes) |
Tags |
Rating |
---|---|---|---|---|---|---|---|---|---|---|---|
188538531 | TralSun | C | Jan. 9, 2023, 3:49 a.m. | OK | Clang++17 Diagnostics | TESTS | 7 | 1762 | 4505600 | ||
188519866 | Moka50 | C | Jan. 8, 2023, 7:31 p.m. | OK | GNU C11 | TESTS | 7 | 139 | 2048000 | ||
188498516 | sutur | C | Jan. 8, 2023, 4:32 p.m. | OK | GNU C++14 | TESTS | 7 | 93 | 3993600 | ||
188544413 | xieliren2021 | C | Jan. 9, 2023, 5:28 a.m. | OK | GNU C++14 | TESTS | 7 | 109 | 3993600 | ||
188542241 | Williamxzh | C | Jan. 9, 2023, 4:54 a.m. | OK | GNU C++14 | TESTS | 7 | 109 | 3993600 | ||
188533418 | XZC__Bobby | C | Jan. 9, 2023, 1:53 a.m. | OK | GNU C++14 | TESTS | 7 | 109 | 3993600 | ||
188529195 | joshincr | C | Jan. 8, 2023, 11:17 p.m. | OK | GNU C++14 | TESTS | 7 | 109 | 3993600 | ||
188499756 | old_lean | C | Jan. 8, 2023, 4:34 p.m. | OK | GNU C++14 | TESTS | 7 | 109 | 3993600 | ||
188545862 | xieliren2021 | C | Jan. 9, 2023, 5:50 a.m. | OK | GNU C++14 | TESTS | 7 | 109 | 3993600 | ||
188524100 | ivi. | C | Jan. 8, 2023, 8:43 p.m. | OK | GNU C++14 | TESTS | 7 | 124 | 3993600 | ||
188504077 | lost1903 | C | Jan. 8, 2023, 4:54 p.m. | OK | GNU C++14 | TESTS | 7 | 124 | 3993600 | ||
188544110 | Williamxzh | C | Jan. 9, 2023, 5:23 a.m. | OK | GNU C++14 | TESTS | 7 | 124 | 3993600 | ||
188533348 | TeasingMaster | C | Jan. 9, 2023, 1:51 a.m. | OK | GNU C++17 | TESTS | 7 | 62 | 9113600 | ||
188504264 | Lv_x | C | Jan. 8, 2023, 4:55 p.m. | OK | GNU C++17 | TESTS | 7 | 93 | 3993600 | ||
188523537 | SzypkiBill | C | Jan. 8, 2023, 8:32 p.m. | OK | GNU C++17 | TESTS | 7 | 93 | 5427200 | ||
188497592 | gravito69 | C | Jan. 8, 2023, 4:31 p.m. | OK | GNU C++17 | TESTS | 7 | 108 | 3993600 | ||
188545250 | rajat397 | C | Jan. 9, 2023, 5:41 a.m. | OK | GNU C++17 | TESTS | 7 | 108 | 8294400 | ||
188545719 | To_be_self | C | Jan. 9, 2023, 5:48 a.m. | OK | GNU C++17 | TESTS | 7 | 109 | 2048000 | ||
188534389 | xyh_522 | C | Jan. 9, 2023, 2:18 a.m. | OK | GNU C++17 | TESTS | 7 | 109 | 3993600 | ||
188522991 | NourhanHanna | C | Jan. 8, 2023, 8:22 p.m. | OK | GNU C++17 | TESTS | 7 | 109 | 3993600 | ||
188526726 | buttcheek24 | C | Jan. 8, 2023, 9:49 p.m. | OK | GNU C++17 | TESTS | 7 | 109 | 3993600 | ||
188544606 | toughCar | C | Jan. 9, 2023, 5:31 a.m. | OK | GNU C++17 | TESTS | 7 | 109 | 3993600 | ||
188517349 | 1potato2potato | C | Jan. 8, 2023, 6:55 p.m. | OK | GNU C++17 (64) | TESTS | 7 | 77 | 3993600 | ||
188507355 | yyyyyyyyyyyy | C | Jan. 8, 2023, 5:18 p.m. | OK | GNU C++17 (64) | TESTS | 7 | 77 | 7987200 | ||
188543705 | arnold27 | C | Jan. 9, 2023, 5:17 a.m. | OK | GNU C++17 (64) | TESTS | 7 | 77 | 7987200 | ||
188505404 | _BugSlayer_ | C | Jan. 8, 2023, 5:03 p.m. | OK | GNU C++17 (64) | TESTS | 7 | 77 | 7987200 | ||
188538184 | Gepengjie007 | C | Jan. 9, 2023, 3:42 a.m. | OK | GNU C++17 (64) | TESTS | 7 | 77 | 8499200 | ||
188513733 | ANACO_DAGERXA | C | Jan. 8, 2023, 6:15 p.m. | OK | GNU C++17 (64) | TESTS | 7 | 77 | 34099200 | ||
188517142 | notyour_young | C | Jan. 8, 2023, 6:53 p.m. | OK | GNU C++17 (64) | TESTS | 7 | 78 | 3993600 | ||
188511695 | ljuba | C | Jan. 8, 2023, 5:55 p.m. | OK | GNU C++17 (64) | TESTS | 7 | 78 | 3993600 | ||
188539977 | luogu_bot2 | C | Jan. 9, 2023, 4:15 a.m. | OK | GNU C++17 (64) | TESTS | 7 | 78 | 3993600 | ||
188534474 | Hytidel | C | Jan. 9, 2023, 2:20 a.m. | OK | GNU C++17 (64) | TESTS | 7 | 78 | 3993600 | ||
188531924 | Haven_ | C | Jan. 9, 2023, 1:07 a.m. | OK | GNU C++20 (64) | TESTS | 7 | 30 | 9011200 | ||
188511567 | v0idRust | C | Jan. 8, 2023, 5:54 p.m. | OK | GNU C++20 (64) | TESTS | 7 | 46 | 2048000 | ||
188531813 | threethreetwothree | C | Jan. 9, 2023, 1:03 a.m. | OK | GNU C++20 (64) | TESTS | 7 | 46 | 16384000 | ||
188495593 | parsa-golestani | C | Jan. 8, 2023, 4:27 p.m. | OK | GNU C++20 (64) | TESTS | 7 | 61 | 6041600 | ||
188514632 | Sig0001 | C | Jan. 8, 2023, 6:23 p.m. | OK | GNU C++20 (64) | TESTS | 7 | 62 | 3993600 | ||
188535105 | sanxun | C | Jan. 9, 2023, 2:35 a.m. | OK | GNU C++20 (64) | TESTS | 7 | 62 | 3993600 | ||
188504751 | rgnerdplayer | C | Jan. 8, 2023, 4:59 p.m. | OK | GNU C++20 (64) | TESTS | 7 | 62 | 3993600 | ||
188502506 | Mehedi99 | C | Jan. 8, 2023, 4:45 p.m. | OK | GNU C++20 (64) | TESTS | 7 | 62 | 3993600 | ||
188496117 | SJC_ | C | Jan. 8, 2023, 4:28 p.m. | OK | GNU C++20 (64) | TESTS | 7 | 62 | 3993600 | ||
188539052 | Ivan_len | C | Jan. 9, 2023, 3:59 a.m. | OK | GNU C++20 (64) | TESTS | 7 | 62 | 6041600 | ||
188505765 | serndipty_ | C | Jan. 8, 2023, 5:06 p.m. | OK | Java 11 | TESTS | 7 | 280 | 512000 | ||
188504486 | x21svage | C | Jan. 8, 2023, 4:57 p.m. | OK | Java 11 | TESTS | 7 | 342 | 13721600 | ||
188524123 | dzhi | C | Jan. 8, 2023, 8:44 p.m. | OK | Java 11 | TESTS | 7 | 436 | 28467200 | ||
188524183 | dzhi | C | Jan. 8, 2023, 8:45 p.m. | OK | Java 11 | TESTS | 7 | 483 | 28467200 | ||
188495874 | pakkapapad | C | Jan. 8, 2023, 4:27 p.m. | OK | Java 11 | TESTS | 7 | 857 | 716800 | ||
188496903 | zgw | C | Jan. 8, 2023, 4:29 p.m. | OK | Java 11 | TESTS | 7 | 857 | 15155200 | ||
188503032 | kritikmodi | C | Jan. 8, 2023, 4:48 p.m. | OK | Java 11 | TESTS | 7 | 1028 | 30105600 | ||
188513277 | Srikanth1777 | C | Jan. 8, 2023, 6:10 p.m. | OK | Java 17 | TESTS | 7 | 343 | 18534400 | ||
188513445 | Srikanth1777 | C | Jan. 8, 2023, 6:12 p.m. | OK | Java 17 | TESTS | 7 | 420 | 18329600 | ||
188513729 | visitpage | C | Jan. 8, 2023, 6:14 p.m. | OK | Java 17 | TESTS | 7 | 514 | 21504000 | ||
188506761 | FloatingOcean | C | Jan. 8, 2023, 5:13 p.m. | OK | Java 17 | TESTS | 7 | 794 | 204800 | ||
188513372 | Swapniltri | C | Jan. 8, 2023, 6:11 p.m. | OK | Java 8 | TESTS | 7 | 187 | 6758400 | ||
188543485 | priyaroy3370 | C | Jan. 9, 2023, 5:14 a.m. | OK | Java 8 | TESTS | 7 | 248 | 15769600 | ||
188507886 | megaspazz | C | Jan. 8, 2023, 5:23 p.m. | OK | Java 8 | TESTS | 7 | 467 | 14950400 | ||
188522209 | UniversalAdmin | C | Jan. 8, 2023, 8:07 p.m. | OK | Java 8 | TESTS | 7 | 514 | 20992000 | ||
188531687 | 1091857051 | C | Jan. 9, 2023, 12:58 a.m. | OK | Java 8 | TESTS | 7 | 686 | 75673600 | ||
188508845 | ktropin | C | Jan. 8, 2023, 5:31 p.m. | OK | Mono C# | TESTS | 7 | 436 | 53657600 | ||
188497364 | gaspar.kristijan | C | Jan. 8, 2023, 4:30 p.m. | OK | MS C++ 2017 | TESTS | 7 | 389 | 19251200 | ||
188499978 | Pays | C | Jan. 8, 2023, 4:34 p.m. | OK | MS C++ 2017 | TESTS | 7 | 421 | 8089600 | ||
188508823 | honakakaka | C | Jan. 8, 2023, 5:31 p.m. | OK | MS C++ 2017 | TESTS | 7 | 529 | 20275200 | ||
188511154 | EtherealMidnight | C | Jan. 8, 2023, 5:51 p.m. | OK | MS C++ 2017 | TESTS | 7 | 811 | 3993600 | ||
188535673 | kuangren777 | C | Jan. 9, 2023, 2:47 a.m. | OK | PyPy 3 | TESTS | 7 | 280 | 33587200 | ||
188530834 | hxu10 | C | Jan. 9, 2023, 12:24 a.m. | OK | PyPy 3 | TESTS | 7 | 311 | 35430400 | ||
188496419 | Araldo | C | Jan. 8, 2023, 4:28 p.m. | OK | PyPy 3 | TESTS | 7 | 950 | 44748800 | ||
188509561 | Alex239 | C | Jan. 8, 2023, 5:37 p.m. | OK | PyPy 3 | TESTS | 7 | 1497 | 38707200 | ||
188518144 | Lyle0711 | C | Jan. 8, 2023, 7:05 p.m. | OK | PyPy 3 | TESTS | 7 | 1918 | 57548800 | ||
188528885 | tan_delhi | C | Jan. 8, 2023, 11:05 p.m. | OK | PyPy 3 | TESTS | 7 | 1934 | 39219200 | ||
188504845 | InariInDream | C | Jan. 8, 2023, 4:59 p.m. | OK | PyPy 3-64 | TESTS | 7 | 202 | 55808000 | ||
188529636 | nabovtl | C | Jan. 8, 2023, 11:33 p.m. | OK | PyPy 3-64 | TESTS | 7 | 217 | 50176000 | ||
188528140 | SoleProprietor | C | Jan. 8, 2023, 10:37 p.m. | OK | PyPy 3-64 | TESTS | 7 | 217 | 51712000 | ||
188529657 | nabovtl | C | Jan. 8, 2023, 11:34 p.m. | OK | PyPy 3-64 | TESTS | 7 | 218 | 50585600 | ||
188535010 | ankit_x | C | Jan. 9, 2023, 2:33 a.m. | OK | PyPy 3-64 | TESTS | 7 | 218 | 55705600 | ||
188496438 | Yansou | C | Jan. 8, 2023, 4:28 p.m. | OK | PyPy 3-64 | TESTS | 7 | 233 | 53452800 | ||
188498123 | ossau_guildo | C | Jan. 8, 2023, 4:32 p.m. | OK | PyPy 3-64 | TESTS | 7 | 233 | 54067200 | ||
188534944 | ankit_x | C | Jan. 9, 2023, 2:31 a.m. | OK | PyPy 3-64 | TESTS | 7 | 233 | 55808000 | ||
188538528 | zjcccc | C | Jan. 9, 2023, 3:49 a.m. | OK | PyPy 3-64 | TESTS | 7 | 249 | 67788800 | ||
188509343 | katonyonko | C | Jan. 8, 2023, 5:35 p.m. | OK | PyPy 3-64 | TESTS | 7 | 296 | 58982400 | ||
188523313 | YuraK | C | Jan. 8, 2023, 8:28 p.m. | OK | Python 3 | TESTS | 7 | 374 | 29798400 | ||
188514242 | iron_nicko | C | Jan. 8, 2023, 6:19 p.m. | OK | Python 3 | TESTS | 7 | 420 | 29286400 | ||
188503634 | nguyetpvt | C | Jan. 8, 2023, 4:52 p.m. | OK | Python 3 | TESTS | 7 | 483 | 29286400 | ||
188536567 | nagarjuna97c | C | Jan. 9, 2023, 3:08 a.m. | OK | Python 3 | TESTS | 7 | 483 | 30208000 | ||
188495599 | Norghauzen | C | Jan. 8, 2023, 4:27 p.m. | OK | Python 3 | TESTS | 7 | 561 | 29286400 | ||
188497822 | MikeyTooYoung | C | Jan. 8, 2023, 4:31 p.m. | OK | Python 3 | TESTS | 7 | 608 | 29184000 | ||
188538335 | SnobbyDragon | C | Jan. 9, 2023, 3:46 a.m. | OK | Python 3 | TESTS | 7 | 608 | 42803200 | ||
188509819 | Alex239 | C | Jan. 8, 2023, 5:39 p.m. | OK | Python 3 | TESTS | 7 | 920 | 63283200 | ||
188537074 | williamcz | C | Jan. 9, 2023, 3:18 a.m. | OK | Python 3 | TESTS | 7 | 1247 | 29184000 | ||
188523318 | abcsumits | C | Jan. 8, 2023, 8:28 p.m. | OK | Python 3 | TESTS | 7 | 1606 | 57548800 | ||
188503993 | magurofly | C | Jan. 8, 2023, 4:54 p.m. | OK | Ruby 3 | TESTS | 7 | 779 | 49152000 | ||
188512123 | zeronosu77108_ | C | Jan. 8, 2023, 5:59 p.m. | OK | Rust 2021 | TESTS | 7 | 140 | 29900800 | ||
188497626 | magurofly | C | Jan. 8, 2023, 4:31 p.m. | OK | Rust 2021 | TESTS | 7 | 187 | 29696000 |
Back to search problems