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 |
---|---|---|---|---|---|---|
1895 | Educational Codeforces Round 157 (Rated for Div. 2) | FINISHED | False | 7200 | 32801099 | Nov. 3, 2023, 2:35 p.m. |
Solved$ |
Index |
Name |
Type |
Tags |
Community Tag |
Rating |
---|---|---|---|---|---|---|
( 1583 ) | E | Infinite Card Game | PROGRAMMING | brute force dfs and similar games graphs greedy sortings |
B"Monocarp and Bicarp are playing a card game. Each card has two parameters: an attack value and a defence value. A card s beats another card t if the attack of s is strictly greater than the defence of t . Monocarp has n cards, the i -th of them has an attack value of mathit{ax}_i and a defence value of mathit{ay}_i . Bicarp has m cards, the j -th of them has an attack value of mathit{bx}_j and a defence value of mathit{by}_j . On the first move, Monocarp chooses one of his cards and plays it. Bicarp has to respond with his own card that beats that card. After that, Monocarp has to respond with a card that beats Bicarp's card. After that, it's Bicarp's turn, and so forth. After a card is beaten, it returns to the hand of the player who played it. It implies that each player always has the same set of cards to play as at the start of the game. The game ends when the current player has no cards that beat the card which their opponent just played, and the current player loses. If the game lasts for 100^{500} moves, it's declared a draw. Both Monocarp and Bicarp play optimally. That is, if a player has a winning strategy regardless of his opponent's moves, he plays for a win. Otherwise, if he has a drawing strategy, he plays for a draw. You are asked to calculate three values: 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 an integer n ( 1 <= n <= 3 cdot 10^5 ) -- the number of cards Monocarp has. The second line contains n integers mathit{ax}_1, mathit{ax}_2, ... , mathit{ax}_n ( 1 <= mathit{ax}_i <= 10^6 ) -- the attack values of Monocarp's cards. The third line contains n integers mathit{ay}_1, mathit{ay}_2, ... , mathit{ay}_n ( 1 <= mathit{ay}_i <= 10^6 ) -- the defence values of Monocarp's cards. The fourth line conta"... |
Educational Codeforces Round 157 Editorial |
Submission Id |
Author(s) |
Index |
Submitted |
Verdict |
Language |
Test Set |
Tests Passed |
Time taken (ms) |
Memory Consumed (bytes) |
Tags |
Rating |
---|---|---|---|---|---|---|---|---|---|---|---|
231204576 | azukun | E | Nov. 3, 2023, 4:33 p.m. | OK | C# 10 | TESTS | 47 | 421 | 79564800 | ||
231209548 | Tdyx | E | Nov. 3, 2023, 4:53 p.m. | OK | C# 10 | TESTS | 47 | 888 | 107929600 | ||
231207345 | rainboy | E | Nov. 3, 2023, 4:41 p.m. | OK | GNU C11 | TESTS | 47 | 389 | 12595200 | ||
231259622 | Aria_Math | E | Nov. 4, 2023, 12:50 a.m. | OK | GNU C++14 | TESTS | 47 | 155 | 18124800 | ||
231262740 | Aria_Math | E | Nov. 4, 2023, 1:39 a.m. | OK | GNU C++14 | TESTS | 47 | 155 | 18124800 | ||
231209267 | Yzm007 | E | Nov. 3, 2023, 4:51 p.m. | OK | GNU C++14 | TESTS | 47 | 373 | 9625600 | ||
231202443 | ch1ck_magnet | E | Nov. 3, 2023, 4:29 p.m. | OK | GNU C++14 | TESTS | 47 | 374 | 7168000 | ||
231258024 | E-ray | E | Nov. 4, 2023, 12:14 a.m. | OK | GNU C++14 | TESTS | 47 | 374 | 26624000 | ||
231196750 | NickH | E | Nov. 3, 2023, 4:18 p.m. | OK | GNU C++14 | TESTS | 47 | 389 | 88166400 | ||
231260114 | a_little_cute | E | Nov. 4, 2023, 1 a.m. | OK | GNU C++14 | TESTS | 47 | 405 | 7270400 | ||
231267882 | a_little_cute | E | Nov. 4, 2023, 2:49 a.m. | OK | GNU C++14 | TESTS | 47 | 405 | 7270400 | ||
231210916 | MasouMelon | E | Nov. 3, 2023, 5:01 p.m. | OK | GNU C++14 | TESTS | 47 | 436 | 7270400 | ||
231205746 | 414sboy | E | Nov. 3, 2023, 4:34 p.m. | OK | GNU C++14 | TESTS | 47 | 452 | 20582400 | ||
231214012 | limbo16 | E | Nov. 3, 2023, 5:20 p.m. | OK | GNU C++17 | TESTS | 47 | 374 | 7782400 | ||
231267802 | yang12138 | E | Nov. 4, 2023, 2:48 a.m. | OK | GNU C++17 | TESTS | 47 | 405 | 12288000 | ||
231228411 | mutharib | E | Nov. 3, 2023, 6:41 p.m. | OK | GNU C++17 | TESTS | 47 | 405 | 14438400 | ||
231198198 | SoulPoet | E | Nov. 3, 2023, 4:21 p.m. | OK | GNU C++17 | TESTS | 47 | 405 | 27750400 | ||
231257582 | EvenToWorldFinal | E | Nov. 4, 2023, 12:03 a.m. | OK | GNU C++17 | TESTS | 47 | 405 | 33075200 | ||
231250222 | Zero0 | E | Nov. 3, 2023, 9:31 p.m. | OK | GNU C++17 | TESTS | 47 | 421 | 11980800 | ||
231250262 | Zero0 | E | Nov. 3, 2023, 9:31 p.m. | OK | GNU C++17 | TESTS | 47 | 421 | 11980800 | ||
231207571 | robert.barbu27 | E | Nov. 3, 2023, 4:42 p.m. | OK | GNU C++17 | TESTS | 47 | 421 | 12390400 | ||
231210551 | Sentiro | E | Nov. 3, 2023, 4:59 p.m. | OK | GNU C++17 | TESTS | 47 | 436 | 22835200 | ||
231197187 | I_love_Michel_Sardou | E | Nov. 3, 2023, 4:19 p.m. | OK | GNU C++17 | TESTS | 47 | 436 | 29491200 | ||
231208129 | zagzig | E | Nov. 3, 2023, 4:45 p.m. | OK | GNU C++17 (64) | TESTS | 47 | 78 | 7270400 | ||
231197967 | zagzig | E | Nov. 3, 2023, 4:21 p.m. | OK | GNU C++17 (64) | TESTS | 47 | 93 | 7270400 | ||
231237501 | chappy1 | E | Nov. 3, 2023, 7:31 p.m. | OK | GNU C++17 (64) | TESTS | 47 | 265 | 10137600 | ||
231218389 | berekuk | E | Nov. 3, 2023, 5:51 p.m. | OK | GNU C++17 (64) | TESTS | 47 | 295 | 15667200 | ||
231211239 | prairie2022 | E | Nov. 3, 2023, 5:03 p.m. | OK | GNU C++17 (64) | TESTS | 47 | 327 | 11980800 | ||
231217634 | berekuk | E | Nov. 3, 2023, 5:46 p.m. | OK | GNU C++17 (64) | TESTS | 47 | 327 | 15667200 | ||
231236515 | Kirill22 | E | Nov. 3, 2023, 7:25 p.m. | OK | GNU C++17 (64) | TESTS | 47 | 327 | 22425600 | ||
231211051 | YocyCraft | E | Nov. 3, 2023, 5:02 p.m. | OK | GNU C++17 (64) | TESTS | 47 | 327 | 40857600 | ||
231256311 | enslaved | E | Nov. 3, 2023, 11:32 p.m. | OK | GNU C++17 (64) | TESTS | 47 | 343 | 35225600 | ||
231196433 | zdc431487 | E | Nov. 3, 2023, 4:17 p.m. | OK | GNU C++17 (64) | TESTS | 47 | 373 | 92774400 | ||
231266762 | aryan.kadyrov | E | Nov. 4, 2023, 2:34 a.m. | OK | GNU C++20 (64) | TESTS | 47 | 78 | 7270400 | ||
231196280 | shinzanmono | E | Nov. 3, 2023, 4:17 p.m. | OK | GNU C++20 (64) | TESTS | 47 | 202 | 7270400 | ||
231247027 | Jasonwei08 | E | Nov. 3, 2023, 8:48 p.m. | OK | GNU C++20 (64) | TESTS | 47 | 202 | 14438400 | ||
231236307 | Fly_37 | E | Nov. 3, 2023, 7:24 p.m. | OK | GNU C++20 (64) | TESTS | 47 | 218 | 9625600 | ||
231213736 | Illumina | E | Nov. 3, 2023, 5:19 p.m. | OK | GNU C++20 (64) | TESTS | 47 | 218 | 14438400 | ||
231197517 | blacksquare144 | E | Nov. 3, 2023, 4:20 p.m. | OK | GNU C++20 (64) | TESTS | 47 | 218 | 21504000 | ||
231199945 | Fysty | E | Nov. 3, 2023, 4:25 p.m. | OK | GNU C++20 (64) | TESTS | 47 | 218 | 24064000 | ||
231254914 | Bro_Hit | E | Nov. 3, 2023, 11 p.m. | OK | GNU C++20 (64) | TESTS | 47 | 233 | 14438400 | ||
231270132 | KM_Parvez | E | Nov. 4, 2023, 3:17 a.m. | OK | GNU C++20 (64) | TESTS | 47 | 234 | 9625600 | ||
231214864 | LJC_ok | E | Nov. 3, 2023, 5:26 p.m. | OK | GNU C++20 (64) | TESTS | 47 | 234 | 12083200 | ||
231210862 | JKJeong | E | Nov. 3, 2023, 5 p.m. | OK | Java 11 | TESTS | 47 | 1856 | 63488000 | ||
231213768 | Dukkha | E | Nov. 3, 2023, 5:19 p.m. | OK | Java 17 | TESTS | 47 | 655 | 30208000 | ||
231213527 | dusty.and.rusty | E | Nov. 3, 2023, 5:17 p.m. | OK | Java 17 | TESTS | 47 | 1887 | 58777600 | ||
231212663 | Dukkha | E | Nov. 3, 2023, 5:12 p.m. | OK | Java 17 | TESTS | 47 | 2012 | 29286400 | ||
231219642 | dusty.and.rusty | E | Nov. 3, 2023, 6 p.m. | OK | Java 17 | TESTS | 47 | 2605 | 82944000 | ||
231244734 | dusty.and.rusty | E | Nov. 3, 2023, 8:25 p.m. | OK | Java 21 | TESTS | 47 | 1481 | 50380800 | ||
231237042 | dusty.and.rusty | E | Nov. 3, 2023, 7:29 p.m. | OK | Java 21 | TESTS | 47 | 2745 | 79462400 | ||
231211553 | 110101011 | E | Nov. 3, 2023, 5:05 p.m. | OK | Java 8 | TESTS | 47 | 685 | 20787200 | ||
231219596 | golions | E | Nov. 3, 2023, 6 p.m. | OK | Java 8 | TESTS | 47 | 873 | 33280000 | ||
231229057 | vajaba | E | Nov. 3, 2023, 6:44 p.m. | OK | MS C++ 2017 | TESTS | 47 | 1169 | 12185600 | ||
231201317 | eepsilon | E | Nov. 3, 2023, 4:27 p.m. | OK | PyPy 3-64 | TESTS | 47 | 826 | 113561600 | ||
231267609 | SoleProprietor | E | Nov. 4, 2023, 2:46 a.m. | OK | PyPy 3-64 | TESTS | 47 | 872 | 66764800 | ||
231209829 | yuki_keshiki | E | Nov. 3, 2023, 4:55 p.m. | OK | PyPy 3-64 | TESTS | 47 | 1918 | 69836800 | ||
231200944 | Shirotsume | E | Nov. 3, 2023, 4:27 p.m. | OK | PyPy 3-64 | TESTS | 47 | 2245 | 207360000 | ||
231199745 | petamingks | E | Nov. 3, 2023, 4:24 p.m. | OK | PyPy 3-64 | TESTS | 47 | 2262 | 116838400 | ||
231208696 | plevande | E | Nov. 3, 2023, 4:48 p.m. | OK | PyPy 3-64 | TESTS | 47 | 2293 | 69939200 | ||
231197190 | tamato | E | Nov. 3, 2023, 4:19 p.m. | OK | PyPy 3-64 | TESTS | 47 | 2979 | 208691200 | ||
231243594 | shade34 | E | Nov. 3, 2023, 8:15 p.m. | OK | PyPy 3-64 | TESTS | 47 | 2994 | 113971200 | ||
231263702 | Spheniscine | E | Nov. 4, 2023, 1:51 a.m. | OK | Rust 2021 | TESTS | 47 | 171 | 8294400 | ||
231213796 | robostac | E | Nov. 3, 2023, 5:19 p.m. | OK | Rust 2021 | TESTS | 47 | 187 | 45363200 | ||
231208400 | shatovoleg | E | Nov. 3, 2023, 4:46 p.m. | OK | Rust 2021 | TESTS | 47 | 343 | 9932800 |
Back to search problems