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 |
---|---|---|---|---|---|---|
1931 | Codeforces Round 925 (Div. 3) | FINISHED | False | 8100 | 29345063 | Feb. 13, 2024, 2:35 p.m. |
Solved$ |
Index |
Name |
Type |
Tags |
Community Tag |
Rating |
---|---|---|---|---|---|---|
( 16972 ) | E | Anna and the Valentine's Day Gift | PROGRAMMING | games greedy math sortings |
B"Sasha gave Anna a list a of n integers for Valentine's Day. Anna doesn't need this list, so she suggests destroying it by playing a game. Players take turns. Sasha is a gentleman, so he gives Anna the right to make the first move. Players can't skip turns. The game ends when Sasha can't make a move, i.e. after Anna's move there is exactly one number left in the list. If this integer is not less than 10^m (i.e., ge 10^m ), Sasha wins. Otherwise, Anna wins. It can be shown that the game will always end. Determine who will win if both players play optimally. The first line contains an integer t ( 1 <= t <= 10^4 ) -- the number of test cases. Then follows the description of the test cases. The first line of each test case contains integers n , m ( 1 <= n <= 2 cdot 10^5 , 0 <= m <= 2 cdot 10^6 ) -- the number of integers in the list and the parameter determining when Sasha wins. The second line of each test case contains n integers a_1, a_2, ldots, a_n ( 1 <= a_i <= 10^9 ) -- the list that Sasha gave to Anna. It is guaranteed that the sum of n for all test cases does not exceed 2 cdot 10^5 . For each test case, output: Consider the first test case. Anna can reverse the integer 2 , then Sasha can concatenate the integers 2 and 14 , obtaining the integer 214 , which is greater than 10^2 = 100 . If Anna had reversed the integer 14 , Sasha would have concatenated the integers 41 and 2 , obtaining the integer 412 , which is greater than 10^2 = 100 . Anna has no other possible moves, so she loses. "... |
125878 |
Submission Id |
Author(s) |
Index |
Submitted |
Verdict |
Language |
Test Set |
Tests Passed |
Time taken (ms) |
Memory Consumed (bytes) |
Tags |
Rating |
---|---|---|---|---|---|---|---|---|---|---|---|
246262174 | Szzzp | E | Feb. 13, 2024, 5:19 p.m. | OK | GNU C11 | TESTS | 20 | 62 | 1024000 | ||
246300095 | NoLegs | E | Feb. 14, 2024, 1:27 a.m. | OK | GNU C++17 | TESTS | 20 | 31 | 3174400 | ||
246300347 | automac | E | Feb. 14, 2024, 1:36 a.m. | OK | GNU C++17 | TESTS | 20 | 46 | 819200 | ||
246261534 | SmallXueHua | E | Feb. 13, 2024, 5:16 p.m. | OK | GNU C++17 | TESTS | 20 | 46 | 819200 | ||
246315033 | manyu19 | E | Feb. 14, 2024, 5:42 a.m. | OK | GNU C++17 | TESTS | 20 | 46 | 819200 | ||
246303766 | Rashedunnabi | E | Feb. 14, 2024, 2:55 a.m. | OK | GNU C++17 | TESTS | 20 | 46 | 1638400 | ||
246302440 | vinay_124 | E | Feb. 14, 2024, 2:27 a.m. | OK | GNU C++17 | TESTS | 20 | 46 | 1638400 | ||
246294390 | Prady | E | Feb. 13, 2024, 10:51 p.m. | OK | GNU C++17 | TESTS | 20 | 46 | 1638400 | ||
246284704 | Atulyagupta | E | Feb. 13, 2024, 8:19 p.m. | OK | GNU C++17 | TESTS | 20 | 46 | 1638400 | ||
246270322 | larush | E | Feb. 13, 2024, 6:10 p.m. | OK | GNU C++17 | TESTS | 20 | 46 | 1638400 | ||
246307291 | WispX888 | E | Feb. 14, 2024, 3:54 a.m. | OK | GNU C++17 | TESTS | 20 | 46 | 1638400 | ||
246304164 | ztwanan20 | E | Feb. 14, 2024, 3:03 a.m. | OK | GNU C++17 (64) | TESTS | 20 | 31 | 2150400 | ||
246310935 | SkySummer | E | Feb. 14, 2024, 4:51 a.m. | OK | GNU C++17 (64) | TESTS | 20 | 46 | 0 | ||
246303348 | nicheng | E | Feb. 14, 2024, 2:47 a.m. | OK | GNU C++17 (64) | TESTS | 20 | 46 | 819200 | ||
246296885 | xingliu | E | Feb. 13, 2024, 11:52 p.m. | OK | GNU C++17 (64) | TESTS | 20 | 46 | 819200 | ||
246305672 | Harison_suen | E | Feb. 14, 2024, 3:29 a.m. | OK | GNU C++17 (64) | TESTS | 20 | 46 | 819200 | ||
246280371 | vjudge3 | E | Feb. 13, 2024, 7:35 p.m. | OK | GNU C++17 (64) | TESTS | 20 | 46 | 1024000 | ||
246310143 | RLVxx001 | E | Feb. 14, 2024, 4:41 a.m. | OK | GNU C++17 (64) | TESTS | 20 | 46 | 1638400 | ||
246306778 | xinyu123_AKIOI | E | Feb. 14, 2024, 3:46 a.m. | OK | GNU C++17 (64) | TESTS | 20 | 46 | 1638400 | ||
246300819 | crescentmoon47 | E | Feb. 14, 2024, 1:48 a.m. | OK | GNU C++17 (64) | TESTS | 20 | 46 | 1638400 | ||
246291358 | vjudge1 | E | Feb. 13, 2024, 9:50 p.m. | OK | GNU C++17 (64) | TESTS | 20 | 46 | 1638400 | ||
246309249 | sa8489 | E | Feb. 14, 2024, 4:27 a.m. | OK | GNU C++20 (64) | TESTS | 20 | 15 | 16076800 | ||
246307581 | Souture | E | Feb. 14, 2024, 3:59 a.m. | OK | GNU C++20 (64) | TESTS | 20 | 30 | 2150400 | ||
246274869 | CodeBreaker__007 | E | Feb. 13, 2024, 6:45 p.m. | OK | GNU C++20 (64) | TESTS | 20 | 30 | 4198400 | ||
246308093 | addict_0x0F | E | Feb. 14, 2024, 4:08 a.m. | OK | GNU C++20 (64) | TESTS | 20 | 31 | 0 | ||
246305128 | youthPaul | E | Feb. 14, 2024, 3:20 a.m. | OK | GNU C++20 (64) | TESTS | 20 | 31 | 819200 | ||
246302765 | thhhhh | E | Feb. 14, 2024, 2:34 a.m. | OK | GNU C++20 (64) | TESTS | 20 | 31 | 819200 | ||
246305644 | vuquoclam | E | Feb. 14, 2024, 3:29 a.m. | OK | GNU C++20 (64) | TESTS | 20 | 31 | 819200 | ||
246273985 | kumud.bhatt444 | E | Feb. 13, 2024, 6:37 p.m. | OK | GNU C++20 (64) | TESTS | 20 | 31 | 819200 | ||
246270406 | zzaijjy | E | Feb. 13, 2024, 6:10 p.m. | OK | GNU C++20 (64) | TESTS | 20 | 31 | 819200 | ||
246282843 | Vadim1111 | E | Feb. 13, 2024, 7:59 p.m. | OK | GNU C++20 (64) | TESTS | 20 | 31 | 819200 | ||
246314771 | ajayg3059 | E | Feb. 14, 2024, 5:39 a.m. | OK | Go | TESTS | 20 | 108 | 10342400 | ||
246271048 | Reckless_Raccoon | E | Feb. 13, 2024, 6:15 p.m. | OK | Go | TESTS | 20 | 124 | 7884800 | ||
246271524 | priyaroy3370 | E | Feb. 13, 2024, 6:18 p.m. | OK | Java 21 | TESTS | 20 | 311 | 102400 | ||
246280293 | dzhi | E | Feb. 13, 2024, 7:34 p.m. | OK | Java 21 | TESTS | 20 | 343 | 4608000 | ||
246290370 | rj3377295 | E | Feb. 13, 2024, 9:35 p.m. | OK | Java 21 | TESTS | 20 | 343 | 16179200 | ||
246268652 | Multi-Thread | E | Feb. 13, 2024, 5:58 p.m. | OK | Java 21 | TESTS | 20 | 358 | 5120000 | ||
246296921 | DriveLilah | E | Feb. 13, 2024, 11:53 p.m. | OK | Java 21 | TESTS | 20 | 358 | 6348800 | ||
246303013 | SilveryZz | E | Feb. 14, 2024, 2:40 a.m. | OK | Java 21 | TESTS | 20 | 358 | 12595200 | ||
246301779 | Parthiv_patel_thota | E | Feb. 14, 2024, 2:12 a.m. | OK | Java 21 | TESTS | 20 | 358 | 15769600 | ||
246277343 | spiralJava_ | E | Feb. 13, 2024, 7:07 p.m. | OK | Java 21 | TESTS | 20 | 373 | 4505600 | ||
246290414 | 4ALL | E | Feb. 13, 2024, 9:35 p.m. | OK | Java 21 | TESTS | 20 | 374 | 5222400 | ||
246258031 | kakacoder | E | Feb. 13, 2024, 5:01 p.m. | OK | Java 21 | TESTS | 20 | 389 | 4812800 | ||
246310274 | amit_roy | E | Feb. 14, 2024, 4:43 a.m. | OK | Java 8 | TESTS | 20 | 155 | 0 | ||
246263288 | bhavya_boda | E | Feb. 13, 2024, 5:25 p.m. | OK | Java 8 | TESTS | 20 | 155 | 17408000 | ||
246274862 | v3n1v1c11v1c1 | E | Feb. 13, 2024, 6:45 p.m. | OK | Java 8 | TESTS | 20 | 248 | 13619200 | ||
246272892 | codeanand17 | E | Feb. 13, 2024, 6:29 p.m. | OK | Java 8 | TESTS | 20 | 358 | 0 | ||
246312281 | coderman2004 | E | Feb. 14, 2024, 5:08 a.m. | OK | Java 8 | TESTS | 20 | 389 | 0 | ||
246275823 | y_a_s | E | Feb. 13, 2024, 6:54 p.m. | OK | Java 8 | TESTS | 20 | 436 | 0 | ||
246267298 | sabalparajay | E | Feb. 13, 2024, 5:50 p.m. | OK | Java 8 | TESTS | 20 | 436 | 0 | ||
246274133 | PlayDate | E | Feb. 13, 2024, 6:39 p.m. | OK | Java 8 | TESTS | 20 | 452 | 0 | ||
246275388 | superyash | E | Feb. 13, 2024, 6:50 p.m. | OK | Java 8 | TESTS | 20 | 655 | 17715200 | ||
246299576 | stillnotyet | E | Feb. 14, 2024, 1:12 a.m. | OK | Kotlin 1.7 | TESTS | 20 | 795 | 64921600 | ||
246266242 | yadavDipesh | E | Feb. 13, 2024, 5:43 p.m. | OK | Kotlin 1.9 | TESTS | 20 | 467 | 1638400 | ||
246294333 | IITeens | E | Feb. 13, 2024, 10:50 p.m. | OK | MS C++ 2017 | TESTS | 20 | 78 | 3276800 | ||
246258702 | 272222255 | E | Feb. 13, 2024, 5:04 p.m. | OK | MS C++ 2017 | TESTS | 20 | 171 | 1638400 | ||
246280441 | Shady_Mo | E | Feb. 13, 2024, 7:36 p.m. | OK | Node.js | TESTS | 20 | 218 | 32358400 | ||
246298970 | ashays | E | Feb. 14, 2024, 12:54 a.m. | OK | PyPy 3 | TESTS | 20 | 436 | 21094400 | ||
246302086 | Tinky1224 | E | Feb. 14, 2024, 2:19 a.m. | OK | PyPy 3-64 | TESTS | 20 | 140 | 31641600 | ||
246297796 | NitroSpear | E | Feb. 14, 2024, 12:18 a.m. | OK | PyPy 3-64 | TESTS | 20 | 155 | 25907200 | ||
246306386 | cybsbbb | E | Feb. 14, 2024, 3:42 a.m. | OK | PyPy 3-64 | TESTS | 20 | 155 | 28672000 | ||
246277933 | jvatsal0709 | E | Feb. 13, 2024, 7:13 p.m. | OK | PyPy 3-64 | TESTS | 20 | 155 | 31539200 | ||
246307583 | udayan8 | E | Feb. 14, 2024, 3:59 a.m. | OK | PyPy 3-64 | TESTS | 20 | 155 | 32051200 | ||
246271587 | gardengnome | E | Feb. 13, 2024, 6:19 p.m. | OK | PyPy 3-64 | TESTS | 20 | 171 | 28364800 | ||
246293920 | DrRhaegal | E | Feb. 13, 2024, 10:41 p.m. | OK | PyPy 3-64 | TESTS | 20 | 186 | 28774400 | ||
246258836 | iN_siDious | E | Feb. 13, 2024, 5:04 p.m. | OK | PyPy 3-64 | TESTS | 20 | 202 | 27852800 | ||
246261029 | Alex239 | E | Feb. 13, 2024, 5:14 p.m. | OK | PyPy 3-64 | TESTS | 20 | 202 | 33792000 | ||
246259286 | VeryLate | E | Feb. 13, 2024, 5:06 p.m. | OK | PyPy 3-64 | TESTS | 20 | 234 | 30822400 | ||
246259510 | OLOGY | E | Feb. 13, 2024, 5:07 p.m. | OK | Python 2 | TESTS | 20 | 358 | 12697600 | ||
246264788 | sathwika_446 | E | Feb. 13, 2024, 5:34 p.m. | OK | Python 3 | TESTS | 20 | 171 | 22528000 | ||
246270109 | demolisherguts | E | Feb. 13, 2024, 6:08 p.m. | OK | Python 3 | TESTS | 20 | 280 | 29081600 | ||
246265716 | samyaksrivastava9 | E | Feb. 13, 2024, 5:40 p.m. | OK | Python 3 | TESTS | 20 | 327 | 28262400 | ||
246259004 | kundan_1209 | E | Feb. 13, 2024, 5:05 p.m. | OK | Python 3 | TESTS | 20 | 342 | 28160000 | ||
246273683 | 2110030331 | E | Feb. 13, 2024, 6:35 p.m. | OK | Python 3 | TESTS | 20 | 358 | 22528000 | ||
246272195 | Volostriv | E | Feb. 13, 2024, 6:23 p.m. | OK | Python 3 | TESTS | 20 | 358 | 22528000 | ||
246257825 | sibisakthi744 | E | Feb. 13, 2024, 5 p.m. | OK | Python 3 | TESTS | 20 | 404 | 28160000 | ||
246313322 | moonsong98 | E | Feb. 14, 2024, 5:21 a.m. | OK | Python 3 | TESTS | 20 | 420 | 42291200 | ||
246302194 | wwgjy | E | Feb. 14, 2024, 2:21 a.m. | OK | Python 3 | TESTS | 20 | 436 | 27750400 | ||
246305046 | qingfeng_r | E | Feb. 14, 2024, 3:19 a.m. | OK | Python 3 | TESTS | 20 | 436 | 28160000 | ||
246305282 | garrafa | E | Feb. 14, 2024, 3:24 a.m. | OK | Ruby 3 | TESTS | 20 | 748 | 41779200 | ||
246269465 | vstiff | E | Feb. 13, 2024, 6:04 p.m. | OK | Rust 2021 | TESTS | 20 | 109 | 10444800 |
Back to search problems