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 |
|---|---|---|---|---|---|---|
| 2255 | Codeforces Round 1116 (Div. 1) | FINISHED | False | 9000 | 2820275 | Aug. 9, 2026, 2:35 p.m. |
Solved |
Index |
Name |
Type |
Tags |
Community Tag |
Rating |
|---|---|---|---|---|---|---|
| ( 1560 ) | C | Even If the World Turns | PROGRAMMING | communication greedy interactive math number theory |
This is a run-twice (communication) problem. At the Fairy Warehouse, Nygglatho prepared an unusual game for Chtholly and Willem. They would be separated and unable to exchange a single word. Between them there would be only a black-and-white picture — one that Nygglatho could shift, rotate, reflect, or even invert its colors. Nygglatho saw it as a test of how well they understood each other. Chtholly and Willem perhaps saw only another kind of promise. No matter how the world turned, they would still find the same place. The two players are Chtholly and Willem. The jury, acting as Nygglatho, first communicates with Chtholly. After Chtholly finishes, the jury communicates with Willem. Chtholly and Willem may agree on the strategy they will use beforehand, but they cannot directly pass information to each other. In each test case, Nygglatho prepares a black-and-white picture consisting of (n \times n) cells and chooses a target cell (x). The rows and columns are numbered from (1) to (n). The picture contains (w) black cells. It is guaranteed that (\gcd(n,w)=1). Nygglatho first shows the picture and the target cell (x) to Chtholly. Chtholly must choose two cells and swap their colors. The two cells are allowed to be the same. If they are the same, or if they have the same color, the picture does not change. She cannot send Willem any other information. Swapping colors does not move the target cell. Nygglatho then secretly transforms the picture. She may perform the following operations any number of times, possibly zero, in any order: Choose two integers (d_r) and (d_c) ((0\le d_r,d_c \lt n)) and cyclically shifts the picture. Every cell ((r,c)) moves to (\left(\left(r-1+d_r\right)\bmod n+1,\left(c-1+d_c\right)\bmod n+1\right)); Rotate the picture clockwise by (90^\circ). One such rotation moves every cell ((r,c)) to ((c,n+1-r)); Reflect the picture across its vertical axis. Such a reflection moves e |
| 155840 |
Submission Id |
Author(s) |
Index |
Submitted |
Verdict |
Language |
Test Set |
Tests Passed |
Time taken (ms) |
Memory Consumed (bytes) |
Tags |
Rating |
|---|---|---|---|---|---|---|---|---|---|---|---|
| 386376267 | how_to_solve_D_Div2 | C | Aug. 9, 2026, 3:47 p.m. | OK | C++17 (GCC 7-32) | TESTS | 42 | 46 | 0 | ||
| 386376752 | supercoder888 | C | Aug. 9, 2026, 3:48 p.m. | OK | C++17 (GCC 7-32) | TESTS | 42 | 46 | 102400 | ||
| 386405098 | MHaque | C | Aug. 9, 2026, 6:05 p.m. | OK | C++17 (GCC 7-32) | TESTS | 42 | 62 | 0 | ||
| 386364171 | n_xeapop | C | Aug. 9, 2026, 3:20 p.m. | OK | C++17 (GCC 7-32) | TESTS | 42 | 62 | 0 | ||
| 386359932 | cowgoodsheep | C | Aug. 9, 2026, 3:12 p.m. | OK | C++17 (GCC 7-32) | TESTS | 42 | 62 | 0 | ||
| 386434877 | dojiboy9 | C | Aug. 10, 2026, 4:33 a.m. | OK | C++17 (GCC 7-32) | TESTS | 42 | 62 | 102400 | ||
| 386431184 | hmm789 | C | Aug. 10, 2026, 3:21 a.m. | OK | C++17 (GCC 7-32) | TESTS | 42 | 62 | 102400 | ||
| 386379022 | zungle | C | Aug. 9, 2026, 3:54 p.m. | OK | C++17 (GCC 7-32) | TESTS | 42 | 62 | 102400 | ||
| 386378029 | MinhPham2204 | C | Aug. 9, 2026, 3:52 p.m. | OK | C++17 (GCC 7-32) | TESTS | 42 | 62 | 102400 | ||
| 386369921 | LYD090202 | C | Aug. 9, 2026, 3:32 p.m. | OK | C++17 (GCC 7-32) | TESTS | 42 | 62 | 102400 | ||
| 386429121 | Sakura_xyz | C | Aug. 10, 2026, 2:42 a.m. | OK | C++20 (GCC 13-64) | TESTS | 42 | 46 | 102400 | ||
| 386393202 | msab3f | C | Aug. 9, 2026, 4:41 p.m. | OK | C++20 (GCC 13-64) | TESTS | 42 | 46 | 102400 | ||
| 386388691 | bstiat. | C | Aug. 9, 2026, 4:24 p.m. | OK | C++20 (GCC 13-64) | TESTS | 42 | 46 | 102400 | ||
| 386376712 | noya2 | C | Aug. 9, 2026, 3:48 p.m. | OK | C++20 (GCC 13-64) | TESTS | 42 | 46 | 102400 | ||
| 386365320 | PelicanPilot | C | Aug. 9, 2026, 3:22 p.m. | OK | C++20 (GCC 13-64) | TESTS | 42 | 46 | 102400 | ||
| 386396908 | jinxiangxiang | C | Aug. 9, 2026, 4:56 p.m. | OK | C++20 (GCC 13-64) | TESTS | 42 | 46 | 716800 | ||
| 386366009 | natsugiri | C | Aug. 9, 2026, 3:23 p.m. | OK | C++20 (GCC 13-64) | TESTS | 42 | 46 | 716800 | ||
| 386354359 | CryptoQuant | C | Aug. 9, 2026, 3:02 p.m. | OK | C++20 (GCC 13-64) | TESTS | 42 | 46 | 716800 | ||
| 386375873 | eyadhjarray111 | C | Aug. 9, 2026, 3:46 p.m. | OK | C++20 (GCC 13-64) | TESTS | 42 | 46 | 3276800 | ||
| 386431138 | mwen | C | Aug. 10, 2026, 3:20 a.m. | OK | C++20 (GCC 13-64) | TESTS | 42 | 62 | 102400 | ||
| 386410658 | ryoku_ | C | Aug. 9, 2026, 7:09 p.m. | OK | C++23 (GCC 14-64, msys2) | TESTS | 42 | 46 | 0 | ||
| 386426239 | jtrh | C | Aug. 10, 2026, 1:44 a.m. | OK | C++23 (GCC 14-64, msys2) | TESTS | 42 | 46 | 102400 | ||
| 386410567 | ali2005_syr | C | Aug. 9, 2026, 7:07 p.m. | OK | C++23 (GCC 14-64, msys2) | TESTS | 42 | 46 | 102400 | ||
| 386397773 | reirugan | C | Aug. 9, 2026, 4:59 p.m. | OK | C++23 (GCC 14-64, msys2) | TESTS | 42 | 46 | 102400 | ||
| 386392805 | CuteCube | C | Aug. 9, 2026, 4:40 p.m. | OK | C++23 (GCC 14-64, msys2) | TESTS | 42 | 46 | 102400 | ||
| 386388179 | k1suxu | C | Aug. 9, 2026, 4:23 p.m. | OK | C++23 (GCC 14-64, msys2) | TESTS | 42 | 46 | 102400 | ||
| 386375803 | freeloop2 | C | Aug. 9, 2026, 3:46 p.m. | OK | C++23 (GCC 14-64, msys2) | TESTS | 42 | 46 | 102400 | ||
| 386375382 | Acheronlt | C | Aug. 9, 2026, 3:45 p.m. | OK | C++23 (GCC 14-64, msys2) | TESTS | 42 | 46 | 102400 | ||
| 386372732 | Natsuzora | C | Aug. 9, 2026, 3:38 p.m. | OK | C++23 (GCC 14-64, msys2) | TESTS | 42 | 46 | 102400 | ||
| 386370494 | Dispensable | C | Aug. 9, 2026, 3:33 p.m. | OK | C++23 (GCC 14-64, msys2) | TESTS | 42 | 46 | 102400 | ||
| 386382481 | Gassa | C | Aug. 9, 2026, 4:05 p.m. | OK | D | TESTS | 42 | 125 | 10752000 | ||
| 386377780 | codecrasher_ | C | Aug. 9, 2026, 3:51 p.m. | OK | Go | TESTS | 42 | 78 | 2457600 | ||
| 386381083 | LT1 | C | Aug. 9, 2026, 4 p.m. | OK | Java 21 | TESTS | 42 | 250 | 1024000 | ||
| 386355149 | MBBN | C | Aug. 9, 2026, 3:03 p.m. | OK | Java 21 | TESTS | 42 | 265 | 819200 | ||
| 386360829 | AJ123496 | C | Aug. 9, 2026, 3:13 p.m. | OK | Java 21 | TESTS | 42 | 390 | 1331200 | ||
| 386386165 | malachi_toney_goat | C | Aug. 9, 2026, 4:16 p.m. | OK | Java 8 | TESTS | 42 | 156 | 0 | ||
| 386363000 | dark_slayer007 | C | Aug. 9, 2026, 3:18 p.m. | OK | Java 8 | TESTS | 42 | 156 | 13004800 | ||
| 386355692 | arvindf232 | C | Aug. 9, 2026, 3:04 p.m. | OK | Kotlin 2.2 | TESTS | 42 | 312 | 307200 | ||
| 386372948 | x0rque | C | Aug. 9, 2026, 3:39 p.m. | OK | PyPy 3-64 | TESTS | 42 | 171 | 9216000 | ||
| 386396547 | Maruzensky | C | Aug. 9, 2026, 4:55 p.m. | OK | PyPy 3-64 | TESTS | 42 | 171 | 38195200 | ||
| 386373897 | PaperMemory | C | Aug. 9, 2026, 3:41 p.m. | OK | PyPy 3-64 | TESTS | 42 | 187 | 8806400 | ||
| 386424067 | Little_Sheep_Yawn | C | Aug. 10, 2026, 12:48 a.m. | OK | PyPy 3-64 | TESTS | 42 | 187 | 12083200 | ||
| 386379584 | Hallowno4 | C | Aug. 9, 2026, 3:56 p.m. | OK | PyPy 3-64 | TESTS | 42 | 203 | 8806400 | ||
| 386360819 | toam | C | Aug. 9, 2026, 3:13 p.m. | OK | PyPy 3-64 | TESTS | 42 | 218 | 29388800 | ||
| 386385276 | chhillarankit74 | C | Aug. 9, 2026, 4:13 p.m. | OK | PyPy 3-64 | TESTS | 42 | 218 | 40857600 | ||
| 386358483 | conqueror_of_tourist | C | Aug. 9, 2026, 3:09 p.m. | OK | PyPy 3-64 | TESTS | 42 | 234 | 39219200 | ||
| 386383530 | ecubic | C | Aug. 9, 2026, 4:08 p.m. | OK | PyPy 3-64 | TESTS | 42 | 250 | 27648000 | ||
| 386393152 | __baozii__ | C | Aug. 9, 2026, 4:41 p.m. | OK | PyPy 3-64 | TESTS | 42 | 265 | 9523200 | ||
| 386371348 | de1uxegg | C | Aug. 9, 2026, 3:35 p.m. | OK | Python 3 | TESTS | 42 | 140 | 4300800 | ||
| 386369398 | maworkin | C | Aug. 9, 2026, 3:31 p.m. | OK | Python 3 | TESTS | 42 | 343 | 921600 | ||
| 386387465 | trycatchcry | C | Aug. 9, 2026, 4:21 p.m. | OK | Rust 2024 | TESTS | 42 | 46 | 0 | ||
| 386380629 | cvs-650 | C | Aug. 9, 2026, 3:59 p.m. | OK | Rust 2024 | TESTS | 42 | 62 | 0 | ||
| 386376514 | d11maan | C | Aug. 9, 2026, 3:48 p.m. | OK | Rust 2024 | TESTS | 42 | 62 | 0 | ||
| 386373270 | will_wang | C | Aug. 9, 2026, 3:40 p.m. | OK | Rust 2024 | TESTS | 42 | 78 | 0 | ||
| 386381509 | darkkcyan | C | Aug. 9, 2026, 4:02 p.m. | OK | Rust 2024 | TESTS | 42 | 78 | 10444800 | ||
| 386374274 | DanielAnker | C | Aug. 9, 2026, 3:42 p.m. | OK | Rust 2024 | TESTS | 42 | 109 | 0 |
Back to search problems