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 |
|---|---|---|---|---|---|---|
| ( 13342 ) | A | Hot Potatoes at the Fairy Warehouse | PROGRAMMING | games implementation |
On a quiet afternoon at the Fairy Warehouse, Ithea gathers Chtholly, Nephren, and the other leprechauns for one last game before dinner: Hot Potatoes . There are (2n) leprechauns sitting in a circle, numbered from (1) to (2n) clockwise. They are divided into two teams: leprechauns with odd numbers belong to the Red Team , while those with even numbers belong to the Blue Team . Initially, some leprechauns hold a potato. The game then lasts for (k) rounds. At the beginning of each round, both teams know the current positions of all potatoes. Then, simultaneously, every leprechaun holding a potato does exactly one of the following: Keep the potato, or Pass the potato to the next leprechaun clockwise, provided that the next leprechaun does not hold a potato at the beginning of the round. If the next leprechaun holds a potato at the beginning of the round, the current holder must keep their potato. Whether a potato can be passed depends only on the positions of the potatoes at the beginning of the round. Under these rules, every leprechaun holds at most one potato at any time. When all (k) rounds are over, the final bell rings. Every leprechaun still holding a potato is eliminated from the game. The score of each team is defined as the number of eliminated leprechauns on the other team. All members of each team cooperate and share all available information to maximize their team's score. Find the scores of the Red Team and the Blue Team if both teams play optimally. It can be shown that the scores under optimal play are uniquely determined. Each test contains multiple test cases. The first line contains the number of test cases (t) ((1 \le t \le 10^4)). The description of the test cases follows. The first line of each test case contains two integers (n) and (k) ((1\le n\le 10^5), (1\le k\le 10^9)) — half the number of leprechauns and the number of rounds. The second line contains a binary string (s) of length $$$2 |
| 155840 |
Submission Id |
Author(s) |
Index |
Submitted |
Verdict |
Language |
Test Set |
Tests Passed |
Time taken (ms) |
Memory Consumed (bytes) |
Tags |
Rating |
|---|---|---|---|---|---|---|---|---|---|---|---|
| 386440134 | t3p | A | Aug. 10, 2026, 5:54 a.m. | OK | C++17 (GCC 7-32) | TESTS | 12 | 31 | 0 | ||
| 386434773 | Apelapato67 | A | Aug. 10, 2026, 4:31 a.m. | OK | C++17 (GCC 7-32) | TESTS | 12 | 31 | 0 | ||
| 386429334 | ahmed-abd-elrazik | A | Aug. 10, 2026, 2:46 a.m. | OK | C++17 (GCC 7-32) | TESTS | 12 | 31 | 0 | ||
| 386426403 | milky0002 | A | Aug. 10, 2026, 1:47 a.m. | OK | C++17 (GCC 7-32) | TESTS | 12 | 31 | 0 | ||
| 386423214 | sivarajraja47 | A | Aug. 10, 2026, 12:17 a.m. | OK | C++17 (GCC 7-32) | TESTS | 12 | 31 | 0 | ||
| 386402157 | raja.r2024aiml | A | Aug. 9, 2026, 5:36 p.m. | OK | C++17 (GCC 7-32) | TESTS | 12 | 31 | 0 | ||
| 386373164 | Harshvardhan_Acharya | A | Aug. 9, 2026, 3:39 p.m. | OK | C++17 (GCC 7-32) | TESTS | 12 | 31 | 0 | ||
| 386352034 | dyzets | A | Aug. 9, 2026, 2:58 p.m. | OK | C++17 (GCC 7-32) | TESTS | 12 | 31 | 0 | ||
| 386347639 | fishy15 | A | Aug. 9, 2026, 2:51 p.m. | OK | C++17 (GCC 7-32) | TESTS | 12 | 31 | 0 | ||
| 386347473 | Swistakk | A | Aug. 9, 2026, 2:51 p.m. | OK | C++17 (GCC 7-32) | TESTS | 12 | 31 | 0 | ||
| 386342679 | -nameless- | A | Aug. 9, 2026, 2:45 p.m. | OK | C++20 (GCC 13-64) | TESTS | 12 | 15 | 204800 | ||
| 386423545 | xcc_szy0905 | A | Aug. 10, 2026, 12:30 a.m. | OK | C++20 (GCC 13-64) | TESTS | 12 | 31 | 0 | ||
| 386409631 | atharva27raj2007 | A | Aug. 9, 2026, 6:55 p.m. | OK | C++20 (GCC 13-64) | TESTS | 12 | 31 | 0 | ||
| 386391394 | r_skk | A | Aug. 9, 2026, 4:34 p.m. | OK | C++20 (GCC 13-64) | TESTS | 12 | 31 | 0 | ||
| 386347143 | thanglieu2 | A | Aug. 9, 2026, 2:51 p.m. | OK | C++20 (GCC 13-64) | TESTS | 12 | 31 | 0 | ||
| 386346793 | krigare | A | Aug. 9, 2026, 2:50 p.m. | OK | C++20 (GCC 13-64) | TESTS | 12 | 31 | 0 | ||
| 386343106 | stateCompressed | A | Aug. 9, 2026, 2:46 p.m. | OK | C++20 (GCC 13-64) | TESTS | 12 | 31 | 0 | ||
| 386340596 | jenil0108 | A | Aug. 9, 2026, 2:43 p.m. | OK | C++20 (GCC 13-64) | TESTS | 12 | 31 | 0 | ||
| 386340244 | Dark__Seith | A | Aug. 9, 2026, 2:42 p.m. | OK | C++20 (GCC 13-64) | TESTS | 12 | 31 | 0 | ||
| 386338062 | zrl123456 | A | Aug. 9, 2026, 2:40 p.m. | OK | C++20 (GCC 13-64) | TESTS | 12 | 31 | 0 | ||
| 386434147 | fckaroundndfindout | A | Aug. 10, 2026, 4:18 a.m. | OK | C++23 (GCC 14-64, msys2) | TESTS | 12 | 31 | 0 | ||
| 386429014 | Dfsaot | A | Aug. 10, 2026, 2:40 a.m. | OK | C++23 (GCC 14-64, msys2) | TESTS | 12 | 31 | 0 | ||
| 386423763 | PhirainEX | A | Aug. 10, 2026, 12:38 a.m. | OK | C++23 (GCC 14-64, msys2) | TESTS | 12 | 31 | 0 | ||
| 386402982 | 7White | A | Aug. 9, 2026, 5:43 p.m. | OK | C++23 (GCC 14-64, msys2) | TESTS | 12 | 31 | 0 | ||
| 386401829 | Temperature0.8 | A | Aug. 9, 2026, 5:33 p.m. | OK | C++23 (GCC 14-64, msys2) | TESTS | 12 | 31 | 0 | ||
| 386371338 | khoand25112007 | A | Aug. 9, 2026, 3:35 p.m. | OK | C++23 (GCC 14-64, msys2) | TESTS | 12 | 31 | 0 | ||
| 386360353 | jorgevmg31 | A | Aug. 9, 2026, 3:12 p.m. | OK | C++23 (GCC 14-64, msys2) | TESTS | 12 | 31 | 0 | ||
| 386351401 | aayush01x | A | Aug. 9, 2026, 2:57 p.m. | OK | C++23 (GCC 14-64, msys2) | TESTS | 12 | 31 | 0 | ||
| 386351307 | DreamChaser | A | Aug. 9, 2026, 2:57 p.m. | OK | C++23 (GCC 14-64, msys2) | TESTS | 12 | 31 | 0 | ||
| 386350737 | ma_niu_bi | A | Aug. 9, 2026, 2:56 p.m. | OK | C++23 (GCC 14-64, msys2) | TESTS | 12 | 31 | 0 | ||
| 386339776 | Gassa | A | Aug. 9, 2026, 2:42 p.m. | OK | D | TESTS | 12 | 62 | 3072000 | ||
| 386340858 | pengin_2000 | A | Aug. 9, 2026, 2:43 p.m. | OK | GNU C11 | TESTS | 12 | 31 | 307200 | ||
| 386341869 | codecrasher_ | A | Aug. 9, 2026, 2:44 p.m. | OK | Go | TESTS | 12 | 46 | 2355200 | ||
| 386402429 | saranyasaran2902 | A | Aug. 9, 2026, 5:38 p.m. | OK | Java 21 | TESTS | 12 | 187 | 1433600 | ||
| 386348202 | iam_bk | A | Aug. 9, 2026, 2:52 p.m. | OK | Java 21 | TESTS | 12 | 218 | 102400 | ||
| 386355272 | sefirah | A | Aug. 9, 2026, 3:03 p.m. | OK | Java 21 | TESTS | 12 | 218 | 409600 | ||
| 386347153 | LT1 | A | Aug. 9, 2026, 2:51 p.m. | OK | Java 21 | TESTS | 12 | 234 | 1331200 | ||
| 386335858 | MBBN | A | Aug. 9, 2026, 2:38 p.m. | OK | Java 21 | TESTS | 12 | 281 | 1536000 | ||
| 386402406 | 505atulkumar | A | Aug. 9, 2026, 5:38 p.m. | OK | Java 21 | TESTS | 12 | 296 | 921600 | ||
| 386435026 | 01_kushsingh | A | Aug. 10, 2026, 4:35 a.m. | OK | Java 21 | TESTS | 12 | 312 | 921600 | ||
| 386340833 | AJ123496 | A | Aug. 9, 2026, 2:43 p.m. | OK | Java 21 | TESTS | 12 | 312 | 1126400 | ||
| 386431913 | phoeni_x | A | Aug. 10, 2026, 3:35 a.m. | OK | Java 21 | TESTS | 12 | 328 | 1331200 | ||
| 386341215 | malachi_toney_goat | A | Aug. 9, 2026, 2:43 p.m. | OK | Java 8 | TESTS | 12 | 109 | 0 | ||
| 386350673 | dark_slayer007 | A | Aug. 9, 2026, 2:56 p.m. | OK | Java 8 | TESTS | 12 | 140 | 0 | ||
| 386339104 | Tlatoani | A | Aug. 9, 2026, 2:41 p.m. | OK | Kotlin 2.2 | TESTS | 12 | 171 | 102400 | ||
| 386339123 | arvindf232 | A | Aug. 9, 2026, 2:41 p.m. | OK | Kotlin 2.2 | TESTS | 12 | 187 | 0 | ||
| 386347129 | dparth_7 | A | Aug. 9, 2026, 2:51 p.m. | OK | PyPy 3-64 | TESTS | 12 | 78 | 4915200 | ||
| 386355030 | code.demon | A | Aug. 9, 2026, 3:03 p.m. | OK | PyPy 3-64 | TESTS | 12 | 93 | 4710400 | ||
| 386345256 | Maruzensky | A | Aug. 9, 2026, 2:48 p.m. | OK | PyPy 3-64 | TESTS | 12 | 93 | 6144000 | ||
| 386342690 | Hallowno4 | A | Aug. 9, 2026, 2:45 p.m. | OK | PyPy 3-64 | TESTS | 12 | 109 | 5017600 | ||
| 386369466 | chhillarankit74 | A | Aug. 9, 2026, 3:31 p.m. | OK | PyPy 3-64 | TESTS | 12 | 109 | 5120000 | ||
| 386339713 | Friedrich | A | Aug. 9, 2026, 2:42 p.m. | OK | PyPy 3-64 | TESTS | 12 | 109 | 5734400 | ||
| 386342957 | Alex239 | A | Aug. 9, 2026, 2:45 p.m. | OK | PyPy 3-64 | TESTS | 12 | 109 | 7168000 | ||
| 386336027 | literalchild | A | Aug. 9, 2026, 2:38 p.m. | OK | PyPy 3-64 | TESTS | 12 | 125 | 4812800 | ||
| 386340703 | x0rque | A | Aug. 9, 2026, 2:43 p.m. | OK | PyPy 3-64 | TESTS | 12 | 125 | 6451200 | ||
| 386342161 | PaperMemory | A | Aug. 9, 2026, 2:44 p.m. | OK | PyPy 3-64 | TESTS | 12 | 125 | 6656000 | ||
| 386377676 | de1uxegg | A | Aug. 9, 2026, 3:51 p.m. | OK | Python 3 | TESTS | 12 | 93 | 4505600 | ||
| 386352446 | maworkin | A | Aug. 9, 2026, 2:59 p.m. | OK | Python 3 | TESTS | 12 | 109 | 2969600 | ||
| 386342444 | ecubic | A | Aug. 9, 2026, 2:45 p.m. | OK | Python 3 | TESTS | 12 | 125 | 10137600 | ||
| 386413242 | niskarshmnnit | A | Aug. 9, 2026, 7:46 p.m. | OK | Python 3 | TESTS | 12 | 218 | 4198400 | ||
| 386351149 | d11maan | A | Aug. 9, 2026, 2:57 p.m. | OK | Rust 2024 | TESTS | 12 | 31 | 0 | ||
| 386343619 | trycatchcry | A | Aug. 9, 2026, 2:46 p.m. | OK | Rust 2024 | TESTS | 12 | 31 | 0 | ||
| 386346916 | sansen | A | Aug. 9, 2026, 2:50 p.m. | OK | Rust 2024 | TESTS | 12 | 46 | 0 | ||
| 386342841 | will_wang | A | Aug. 9, 2026, 2:45 p.m. | OK | Rust 2024 | TESTS | 12 | 46 | 0 | ||
| 386341272 | darkkcyan | A | Aug. 9, 2026, 2:43 p.m. | OK | Rust 2024 | TESTS | 12 | 46 | 0 | ||
| 386340096 | DanielAnker | A | Aug. 9, 2026, 2:42 p.m. | OK | Rust 2024 | TESTS | 12 | 46 | 0 | ||
| 386350100 | cvs-650 | A | Aug. 9, 2026, 2:55 p.m. | OK | Rust 2024 | TESTS | 12 | 62 | 0 | ||
| 386346293 | Solalyth | A | Aug. 9, 2026, 2:50 p.m. | OK | Rust 2024 | TESTS | 12 | 62 | 20992000 |
Back to search problems