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 |
---|---|---|---|---|---|---|
1990 | Codeforces Round 960 (Div. 2) | FINISHED | False | 7200 | 15693863 | July 20, 2024, 2:35 p.m. |
Solved$ |
Index |
Name |
Type |
Tags |
Community Tag |
Rating |
---|---|---|---|---|---|---|
( 23519 ) | A | Submission Bait | PROGRAMMING | brute force games greedy sortings |
B'Alice and Bob are playing a game in an array a of size n . They take turns to do operations, with Alice starting first. The player who can not operate will lose. At first, a variable mx is set to 0 . In one operation, a player can do: Determine whether Alice has a winning strategy. The first line contains an integer t ( 1 <= q t <= q 10^3 ) -- the number of test cases. For each test case: For each test case, if Alice has a winning strategy, output "YES". Otherwise, output "NO". You can output the answer in any case (upper or lower). For example, the strings "yEs", "yes", "Yes", and "YES" will be recognized as positive responses. In the first test case, Alice can choose i=1 since a_1=2 ge mx=0 . After Alice 's operation, a=[0,1] and mx=2 . Bob can not do any operation. Alice wins. In the second test case, Alice doesn 't have a winning strategy. For example, if Alice chooses i=1 , after Alice 's operation: a=[0,1] and mx=1 . Then, Bob can choose i=2 since a_2=1 ge mx=1 . After Bob 's operation: a=[0,0] and mx=1 . Alice can not do any operation. Bob wins. '... |
Video Tutorial |
Submission Id |
Author(s) |
Index |
Submitted |
Verdict |
Language |
Test Set |
Tests Passed |
Time taken (ms) |
Memory Consumed (bytes) |
Tags |
Rating |
---|---|---|---|---|---|---|---|---|---|---|---|
271695659 | Avinvini | A | July 21, 2024, 4:41 a.m. | OK | C# 10 | TESTS | 4 | 93 | 2867200 | ||
271657929 | A1ternate | A | July 20, 2024, 7:39 p.m. | OK | C# 10 | TESTS | 4 | 140 | 3993600 | ||
271669562 | Donia99 | A | July 20, 2024, 9:06 p.m. | OK | C++14 (GCC 6-32) | TESTS | 4 | 31 | 0 | ||
271702275 | tangzhu yanbinmy | A | July 21, 2024, 6 a.m. | OK | C++14 (GCC 6-32) | TESTS | 4 | 46 | 0 | ||
271701948 | ashank_22 | A | July 21, 2024, 5:56 a.m. | OK | C++14 (GCC 6-32) | TESTS | 4 | 46 | 0 | ||
271690704 | anuppal602 | A | July 21, 2024, 3:36 a.m. | OK | C++14 (GCC 6-32) | TESTS | 4 | 46 | 0 | ||
271690633 | jellerode | A | July 21, 2024, 3:35 a.m. | OK | C++14 (GCC 6-32) | TESTS | 4 | 46 | 0 | ||
271689232 | codemigod666 | A | July 21, 2024, 3:17 a.m. | OK | C++14 (GCC 6-32) | TESTS | 4 | 46 | 0 | ||
271688632 | Dark_Modest | A | July 21, 2024, 3:09 a.m. | OK | C++14 (GCC 6-32) | TESTS | 4 | 46 | 0 | ||
271688324 | xuxiaxuan | A | July 21, 2024, 3:04 a.m. | OK | C++14 (GCC 6-32) | TESTS | 4 | 46 | 0 | ||
271688245 | shibadianwu | A | July 21, 2024, 3:03 a.m. | OK | C++14 (GCC 6-32) | TESTS | 4 | 46 | 0 | ||
271688116 | SamHJD | A | July 21, 2024, 3:02 a.m. | OK | C++14 (GCC 6-32) | TESTS | 4 | 46 | 0 | ||
271644788 | ankur_27 | A | July 20, 2024, 5:55 p.m. | OK | C++17 (GCC 7-32) | TESTS | 4 | 30 | 0 | ||
271677078 | Daniel-Y | A | July 20, 2024, 11:32 p.m. | OK | C++17 (GCC 7-32) | TESTS | 4 | 30 | 1638400 | ||
271696272 | RomanYakunin | A | July 21, 2024, 4:49 a.m. | OK | C++17 (GCC 7-32) | TESTS | 4 | 31 | 0 | ||
271694578 | Dhruv_98959 | A | July 21, 2024, 4:26 a.m. | OK | C++17 (GCC 7-32) | TESTS | 4 | 31 | 0 | ||
271693673 | pragyaranjan04 | A | July 21, 2024, 4:14 a.m. | OK | C++17 (GCC 7-32) | TESTS | 4 | 31 | 0 | ||
271691925 | arpit_iiitl | A | July 21, 2024, 3:50 a.m. | OK | C++17 (GCC 7-32) | TESTS | 4 | 31 | 0 | ||
271682287 | LikhithMar14 | A | July 21, 2024, 1:31 a.m. | OK | C++17 (GCC 7-32) | TESTS | 4 | 31 | 0 | ||
271655201 | yash_karakoti | A | July 20, 2024, 7:13 p.m. | OK | C++17 (GCC 7-32) | TESTS | 4 | 31 | 0 | ||
271648091 | Specialist_by_2025. | A | July 20, 2024, 6:15 p.m. | OK | C++17 (GCC 7-32) | TESTS | 4 | 31 | 0 | ||
271702874 | Akoasm_X | A | July 21, 2024, 6:05 a.m. | OK | C++17 (GCC 7-32) | TESTS | 4 | 46 | 0 | ||
271641332 | Phantom_Deluxe | A | July 20, 2024, 5:40 p.m. | OK | C++20 (GCC 13-64) | TESTS | 4 | 30 | 0 | ||
271695418 | 233zhang | A | July 21, 2024, 4:37 a.m. | OK | C++20 (GCC 13-64) | TESTS | 4 | 31 | 0 | ||
271694908 | manorath13 | A | July 21, 2024, 4:31 a.m. | OK | C++20 (GCC 13-64) | TESTS | 4 | 31 | 0 | ||
271694879 | minicoder_73 | A | July 21, 2024, 4:30 a.m. | OK | C++20 (GCC 13-64) | TESTS | 4 | 31 | 0 | ||
271693194 | Cr1013 | A | July 21, 2024, 4:07 a.m. | OK | C++20 (GCC 13-64) | TESTS | 4 | 31 | 0 | ||
271693047 | Ladamalina | A | July 21, 2024, 4:05 a.m. | OK | C++20 (GCC 13-64) | TESTS | 4 | 31 | 0 | ||
271691171 | preet_2204 | A | July 21, 2024, 3:41 a.m. | OK | C++20 (GCC 13-64) | TESTS | 4 | 31 | 0 | ||
271686570 | senak2 | A | July 21, 2024, 2:39 a.m. | OK | C++20 (GCC 13-64) | TESTS | 4 | 31 | 0 | ||
271683474 | abhi_mishra | A | July 21, 2024, 1:50 a.m. | OK | C++20 (GCC 13-64) | TESTS | 4 | 31 | 0 | ||
271680863 | AAsAH | A | July 21, 2024, 1:03 a.m. | OK | C++20 (GCC 13-64) | TESTS | 4 | 31 | 0 | ||
271677561 | crapcode | A | July 20, 2024, 11:46 p.m. | OK | GNU C11 | TESTS | 4 | 31 | 102400 | ||
271656488 | atharvatol04 | A | July 20, 2024, 7:26 p.m. | OK | GNU C11 | TESTS | 4 | 46 | 0 | ||
271643869 | lnsuyn | A | July 20, 2024, 5:51 p.m. | OK | GNU C11 | TESTS | 4 | 46 | 0 | ||
271649093 | vansh_oberoi07 | A | July 20, 2024, 6:21 p.m. | OK | GNU C11 | TESTS | 4 | 61 | 307200 | ||
271683552 | remove123 | A | July 21, 2024, 1:51 a.m. | OK | GNU C11 | TESTS | 4 | 62 | 102400 | ||
271683389 | xieti | A | July 21, 2024, 1:49 a.m. | OK | GNU C11 | TESTS | 4 | 62 | 102400 | ||
271654693 | swatishivam23 | A | July 20, 2024, 7:09 p.m. | OK | Java 21 | TESTS | 4 | 202 | 0 | ||
271681813 | SiroKuro | A | July 21, 2024, 1:22 a.m. | OK | Java 21 | TESTS | 4 | 202 | 307200 | ||
271649616 | SD125 | A | July 20, 2024, 6:25 p.m. | OK | Java 21 | TESTS | 4 | 234 | 614400 | ||
271688352 | anujanthwal98765432 | A | July 21, 2024, 3:05 a.m. | OK | Java 21 | TESTS | 4 | 249 | 614400 | ||
271642788 | aza161 | A | July 20, 2024, 5:46 p.m. | OK | Java 21 | TESTS | 4 | 249 | 614400 | ||
271643011 | dzhi | A | July 20, 2024, 5:47 p.m. | OK | Java 21 | TESTS | 4 | 250 | 307200 | ||
271647174 | rj3377295 | A | July 20, 2024, 6:09 p.m. | OK | Java 21 | TESTS | 4 | 264 | 716800 | ||
271666498 | Shivansh_31Mi | A | July 20, 2024, 8:29 p.m. | OK | Java 21 | TESTS | 4 | 265 | 1228800 | ||
271641380 | kunalraj8051 | A | July 20, 2024, 5:40 p.m. | OK | Java 21 | TESTS | 4 | 280 | 307200 | ||
271653497 | messi_10db | A | July 20, 2024, 6:58 p.m. | OK | Java 21 | TESTS | 4 | 280 | 819200 | ||
271687818 | samuelX159 | A | July 21, 2024, 2:58 a.m. | OK | Java 8 | TESTS | 4 | 155 | 0 | ||
271654853 | arajeev210 | A | July 20, 2024, 7:10 p.m. | OK | Java 8 | TESTS | 4 | 155 | 0 | ||
271691182 | Night1324 | A | July 21, 2024, 3:41 a.m. | OK | Java 8 | TESTS | 4 | 156 | 0 | ||
271652288 | kevinliu__ | A | July 20, 2024, 6:47 p.m. | OK | Java 8 | TESTS | 4 | 156 | 0 | ||
271698426 | fulminata | A | July 21, 2024, 5:18 a.m. | OK | Java 8 | TESTS | 4 | 187 | 0 | ||
271698672 | Shivanshway07 | A | July 21, 2024, 5:21 a.m. | OK | Java 8 | TESTS | 4 | 202 | 0 | ||
271696050 | ankitgupta860 | A | July 21, 2024, 4:46 a.m. | OK | Java 8 | TESTS | 4 | 202 | 0 | ||
271682654 | ajaykm000563 | A | July 21, 2024, 1:37 a.m. | OK | Java 8 | TESTS | 4 | 202 | 0 | ||
271653313 | Sami_Th | A | July 20, 2024, 6:57 p.m. | OK | Java 8 | TESTS | 4 | 202 | 0 | ||
271649594 | mn121 | A | July 20, 2024, 6:25 p.m. | OK | Java 8 | TESTS | 4 | 202 | 0 | ||
271652474 | brysonlim22 | A | July 20, 2024, 6:49 p.m. | OK | JavaScript | TESTS | 4 | 93 | 1740800 | ||
271672403 | WalrusRamen21 | A | July 20, 2024, 9:52 p.m. | OK | PyPy 3 | TESTS | 4 | 171 | 5632000 | ||
271695606 | cfkage | A | July 21, 2024, 4:40 a.m. | OK | PyPy 3 | TESTS | 4 | 186 | 4608000 | ||
271690925 | codebender77 | A | July 21, 2024, 3:38 a.m. | OK | PyPy 3 | TESTS | 4 | 186 | 5529600 | ||
271654769 | Sovi_11 | A | July 20, 2024, 7:10 p.m. | OK | PyPy 3 | TESTS | 4 | 187 | 5529600 | ||
271679927 | ktmoon | A | July 21, 2024, 12:45 a.m. | OK | PyPy 3 | TESTS | 4 | 187 | 5939200 | ||
271676866 | Traverser_Steal69 | A | July 20, 2024, 11:27 p.m. | OK | PyPy 3 | TESTS | 4 | 203 | 4710400 | ||
271683509 | ydw | A | July 21, 2024, 1:51 a.m. | OK | PyPy 3 | TESTS | 4 | 218 | 5836800 | ||
271644690 | Muhammed.Samson | A | July 20, 2024, 5:55 p.m. | OK | PyPy 3 | TESTS | 4 | 233 | 7270400 | ||
271680077 | RobinFromTheHood | A | July 21, 2024, 12:49 a.m. | OK | PyPy 3-64 | TESTS | 4 | 77 | 2252800 | ||
271665017 | jvatsal0709 | A | July 20, 2024, 8:13 p.m. | OK | PyPy 3-64 | TESTS | 4 | 93 | 2457600 | ||
271649285 | smilence | A | July 20, 2024, 6:23 p.m. | OK | PyPy 3-64 | TESTS | 4 | 108 | 2355200 | ||
271670627 | jerome_coding | A | July 20, 2024, 9:21 p.m. | OK | PyPy 3-64 | TESTS | 4 | 108 | 3174400 | ||
271679958 | TheBestFromEast | A | July 21, 2024, 12:46 a.m. | OK | PyPy 3-64 | TESTS | 4 | 108 | 3276800 | ||
271653406 | __bharat__ | A | July 20, 2024, 6:57 p.m. | OK | PyPy 3-64 | TESTS | 4 | 109 | 2355200 | ||
271640913 | jgs03177 | A | July 20, 2024, 5:39 p.m. | OK | PyPy 3-64 | TESTS | 4 | 109 | 2457600 | ||
271659172 | Moad101 | A | July 20, 2024, 7:51 p.m. | OK | PyPy 3-64 | TESTS | 4 | 109 | 3072000 | ||
271679665 | TheBestFromEast | A | July 21, 2024, 12:38 a.m. | OK | PyPy 3-64 | TESTS | 4 | 109 | 3174400 | ||
271665414 | Heisenberg2020 | A | July 20, 2024, 8:17 p.m. | OK | PyPy 3-64 | TESTS | 4 | 109 | 4300800 | ||
271652107 | ILikeMice | A | July 20, 2024, 6:45 p.m. | OK | Python 2 | TESTS | 4 | 93 | 0 | ||
271681362 | cmath11 | A | July 21, 2024, 1:14 a.m. | OK | Python 3 | TESTS | 4 | 61 | 0 | ||
271650556 | Osalotioman | A | July 20, 2024, 6:32 p.m. | OK | Python 3 | TESTS | 4 | 61 | 0 | ||
271695199 | Priyansh0209 | A | July 21, 2024, 4:35 a.m. | OK | Python 3 | TESTS | 4 | 62 | 0 | ||
271664584 | ania.kubik | A | July 20, 2024, 8:08 p.m. | OK | Python 3 | TESTS | 4 | 62 | 0 | ||
271696340 | V_SaiDeep | A | July 21, 2024, 4:50 a.m. | OK | Python 3 | TESTS | 4 | 62 | 102400 | ||
271632772 | Subicson_M | A | July 20, 2024, 4:34 p.m. | OK | Python 3 | TESTS | 4 | 62 | 2457600 | ||
271700404 | Mujtaba1122 | A | July 21, 2024, 5:41 a.m. | OK | Python 3 | TESTS | 4 | 77 | 0 | ||
271699701 | anishakmaiya | A | July 21, 2024, 5:33 a.m. | OK | Python 3 | TESTS | 4 | 77 | 0 | ||
271694035 | hongge666 | A | July 21, 2024, 4:19 a.m. | OK | Python 3 | TESTS | 4 | 77 | 0 | ||
271691163 | HaDiBaKeEr | A | July 21, 2024, 3:41 a.m. | OK | Python 3 | TESTS | 4 | 77 | 0 | ||
271696469 | devillove084 | A | July 21, 2024, 4:52 a.m. | OK | Rust 2021 | TESTS | 4 | 62 | 0 |
Back to search problems