2025-2026 ICPC, NERC, Northern Eurasia Finals (Unrated, Online Mirror, ICPC Rules, Teams Preferred)

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
2181 2025-2026 ICPC, NERC, Northern Eurasia Finals (Unrated, Online Mirror, ICPC Rules, Teams Preferred) FINISHED False 18000 10446923 Dec. 17, 2025, 8:05 a.m.

Problems

Solved
Index
Name
Type
Tags
Community Tag
Rating
( 3456 ) F Fragmented Nim PROGRAMMING games

The classical game of Nim goes as follows. There are (n) piles of stones, and pile (i) initially consists of (a_i) stones. Alice and Bob take turns; Alice goes first. On their turn, a player chooses any non-empty pile and removes any positive number of stones from it. The player who takes the last stone wins. After playing a lot of Nim, Alice and Bob decided to vary the rules a little bit. In this variation, the player whose turn it is does not choose a pile — their opponent does it for them! However, the player still gets to decide the number of stones to remove from that pile. Alice still moves first. On Alice's turn Bob chooses any non-empty pile, and then Alice removes any positive number of stones from it. Similarly, on Bob's turn Alice chooses any non-empty pile, and then Bob removes any positive number of stones from it. For the given configuration of stones in the piles, determine who will win if both players follow the optimal strategy. 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 a single integer (n), denoting the number of piles ((1 \le n \le 2 \cdot 10^5)). The second line contains (n) integers (a_1, a_2, \ldots, a_n), denoting the number of stones in the piles ((1 \le a_i \le 10^9)). It is guaranteed that the sum of (n) over all test cases does not exceed (2 \cdot 10^5). For each test case, print the name of the winner of the game if both players follow the optimal strategy: " Alice " or " Bob ". In the first test case, here's one possible way the game could proceed: Bob chooses the first pile. Alice removes (1) stone from it. Alice chooses the third pile. Bob removes (2) stones from it. Bob chooses the third pile. Alice removes (1) stone from it. Alice chooses the second pile. Bob removes (2) stones from it and wins. In the sec

Tutorials

Tutorial

Submissions

Submission Id
Author(s)
Index
Submitted
Verdict
Language
Test Set
Tests Passed
Time taken (ms)
Memory Consumed (bytes)
Tags
Rating
353828313 xzz_cat6 dingzibo DycDycDyc F Dec. 17, 2025, 10:44 a.m. OK C++17 (GCC 7-32) TESTS 66 62 5017600
353806745 ez_code 0471740 mezavant F Dec. 17, 2025, 8:44 a.m. OK C++17 (GCC 7-32) TESTS 66 78 0
353851193 ameydongre F Dec. 17, 2025, 12:55 p.m. OK C++17 (GCC 7-32) TESTS 66 78 102400
353841071 tarunbhatia2809 F Dec. 17, 2025, 11:54 a.m. OK C++17 (GCC 7-32) TESTS 66 78 102400
353840604 ItzsleepyXD F Dec. 17, 2025, 11:51 a.m. OK C++17 (GCC 7-32) TESTS 66 78 102400
353837455 skrishnaa F Dec. 17, 2025, 11:33 a.m. OK C++17 (GCC 7-32) TESTS 66 78 102400
353836628 5thClassWasGood F Dec. 17, 2025, 11:28 a.m. OK C++17 (GCC 7-32) TESTS 66 78 102400
353835554 ASHU_005 F Dec. 17, 2025, 11:22 a.m. OK C++17 (GCC 7-32) TESTS 66 78 102400
353829909 Tech_100 F Dec. 17, 2025, 10:52 a.m. OK C++17 (GCC 7-32) TESTS 66 78 102400
353828494 CodingLagg pranavjh krishsaini_777 F Dec. 17, 2025, 10:44 a.m. OK C++17 (GCC 7-32) TESTS 66 78 102400
353817497 lad1chka Pashteticus LOL_I_AM_SERZH F Dec. 17, 2025, 9:49 a.m. OK C++20 (GCC 13-64) TESTS 66 62 102400
353815662 BinarCat Alvian F Dec. 17, 2025, 9:37 a.m. OK C++20 (GCC 13-64) TESTS 66 62 102400
353811171 opal_Inwza007x F Dec. 17, 2025, 9:10 a.m. OK C++20 (GCC 13-64) TESTS 66 62 102400
353811140 UP84 F Dec. 17, 2025, 9:09 a.m. OK C++20 (GCC 13-64) TESTS 66 62 102400
353806948 Rice_tawara459 noya2 shobonvip F Dec. 17, 2025, 8:45 a.m. OK C++20 (GCC 13-64) TESTS 66 62 102400
353806862 btoandizi F Dec. 17, 2025, 8:44 a.m. OK C++20 (GCC 13-64) TESTS 66 62 921600
353831615 practice.cpp1 F Dec. 17, 2025, 11:01 a.m. OK C++20 (GCC 13-64) TESTS 66 78 0
353808942 Nhrot Icorx0 Vincenzo26 F Dec. 17, 2025, 8:57 a.m. OK C++20 (GCC 13-64) TESTS 66 78 0
353808438 SanguineChameleon F Dec. 17, 2025, 8:53 a.m. OK C++20 (GCC 13-64) TESTS 66 78 0
353920645 rashi_r F Dec. 18, 2025, 3:42 a.m. OK C++20 (GCC 13-64) TESTS 66 78 102400
353815328 CongMinh2002 daukhoi daiquoc F Dec. 17, 2025, 9:35 a.m. OK C++23 (GCC 14-64, msys2) TESTS 66 62 0
353831105 hanhat_venom lowtiernoob F Dec. 17, 2025, 10:58 a.m. OK C++23 (GCC 14-64, msys2) TESTS 66 62 102400
353827887 virtual_self. AizaKKK nzy2006 F Dec. 17, 2025, 10:41 a.m. OK C++23 (GCC 14-64, msys2) TESTS 66 62 102400
353804135 MtSaka F Dec. 17, 2025, 8:29 a.m. OK C++23 (GCC 14-64, msys2) TESTS 66 62 409600
353924350 Leeeee F Dec. 18, 2025, 4:50 a.m. OK C++23 (GCC 14-64, msys2) TESTS 66 78 0
353852009 WhiteM bogdan. anatolieursu F Dec. 17, 2025, 1 p.m. OK C++23 (GCC 14-64, msys2) TESTS 66 78 0
353851504 Cindia wjh123000 yzy123443 F Dec. 17, 2025, 12:57 p.m. OK C++23 (GCC 14-64, msys2) TESTS 66 78 0
353842713 marajul313 F Dec. 17, 2025, 12:04 p.m. OK C++23 (GCC 14-64, msys2) TESTS 66 78 0
353838431 Dhur_miya F Dec. 17, 2025, 11:39 a.m. OK C++23 (GCC 14-64, msys2) TESTS 66 78 0
353838181 EgoistPrime F Dec. 17, 2025, 11:37 a.m. OK C++23 (GCC 14-64, msys2) TESTS 66 78 0
353811496 Gassa F Dec. 17, 2025, 9:12 a.m. OK D TESTS 66 109 15872000
353812716 zap4eg F Dec. 17, 2025, 9:19 a.m. OK Go TESTS 66 62 10240000
353838994 Staelth F Dec. 17, 2025, 11:42 a.m. OK Go TESTS 66 687 4710400
353816358 khuepr123 F Dec. 17, 2025, 9:41 a.m. OK Haskell TESTS 66 93 6348800
353828053 Power_Rangers_ F Dec. 17, 2025, 10:42 a.m. OK Java 21 TESTS 66 250 4915200
353851320 lyongwolf F Dec. 17, 2025, 12:56 p.m. OK Java 21 TESTS 66 281 1843200
353848956 Sagar_TH_81 F Dec. 17, 2025, 12:42 p.m. OK Java 21 TESTS 66 281 3891200
353851321 NeelmaniPandey09 F Dec. 17, 2025, 12:56 p.m. OK Java 21 TESTS 66 281 4403200
353833003 Gowtham_0408 F Dec. 17, 2025, 11:07 a.m. OK Java 21 TESTS 66 296 4812800
353810734 ZeroDayKnight F Dec. 17, 2025, 9:07 a.m. OK Java 21 TESTS 66 312 3993600
353816467 virinci vineetiwari adarshsingh0427 F Dec. 17, 2025, 9:42 a.m. OK Java 21 TESTS 66 312 4812800
353813237 AdityaPandey208 namankansara0611 F Dec. 17, 2025, 9:22 a.m. OK Java 21 TESTS 66 312 4812800
353812371 godfred F Dec. 17, 2025, 9:17 a.m. OK Java 21 TESTS 66 312 5120000
353842756 dabhishekyadav F Dec. 17, 2025, 12:04 p.m. OK Java 21 TESTS 66 343 4300800
353811258 yangyang520 F Dec. 17, 2025, 9:10 a.m. OK Java 8 TESTS 66 187 9728000
353828414 Exotic.joe F Dec. 17, 2025, 10:44 a.m. OK Java 8 TESTS 66 421 0
353821622 Arun_20055 F Dec. 17, 2025, 10:10 a.m. OK Java 8 TESTS 66 421 0
353821047 Enba2006 F Dec. 17, 2025, 10:07 a.m. OK Java 8 TESTS 66 421 0
353815631 kit27.bme48 F Dec. 17, 2025, 9:37 a.m. OK Java 8 TESTS 66 421 0
353831270 monika0107 F Dec. 17, 2025, 10:59 a.m. OK Java 8 TESTS 66 437 0
353820622 Sri_ragavi_28 F Dec. 17, 2025, 10:05 a.m. OK Java 8 TESTS 66 437 0
353816797 Mazhathi F Dec. 17, 2025, 9:44 a.m. OK Java 8 TESTS 66 437 0
353821601 Priyadharshiniii F Dec. 17, 2025, 10:10 a.m. OK Java 8 TESTS 66 468 0
353811217 Monika_2006 F Dec. 17, 2025, 9:10 a.m. OK Java 8 TESTS 66 484 0
353829634 arvindf232 F Dec. 17, 2025, 10:50 a.m. OK Kotlin 2.2 TESTS 66 187 0
353827520 Yedige8 F Dec. 17, 2025, 10:40 a.m. OK PyPy 3-64 TESTS 66 125 19865600
353826808 Rcharlie F Dec. 17, 2025, 10:36 a.m. OK PyPy 3-64 TESTS 66 125 19865600
353811883 987 F Dec. 17, 2025, 9:14 a.m. OK PyPy 3-64 TESTS 66 125 27238400
353814312 Rusia299 F Dec. 17, 2025, 9:29 a.m. OK PyPy 3-64 TESTS 66 125 30105600
353818135 pulakbagaria jagannathpisharody Aaravdg_07 F Dec. 17, 2025, 9:52 a.m. OK PyPy 3-64 TESTS 66 140 27443200
353823505 realaashil F Dec. 17, 2025, 10:19 a.m. OK PyPy 3-64 TESTS 66 140 30310400
353832396 Ludis mer_on F Dec. 17, 2025, 11:04 a.m. OK PyPy 3-64 TESTS 66 140 30515200
353833766 Not_PyPy F Dec. 17, 2025, 11:12 a.m. OK PyPy 3-64 TESTS 66 140 30720000
353812965 dyppp F Dec. 17, 2025, 9:20 a.m. OK PyPy 3-64 TESTS 66 140 30822400
353827084 LightHouse1 F Dec. 17, 2025, 10:38 a.m. OK PyPy 3-64 TESTS 66 171 27136000
353827014 Master-Yug F Dec. 17, 2025, 10:37 a.m. OK Python 3 TESTS 66 125 25702400
353919515 Shyam414 F Dec. 18, 2025, 3:21 a.m. OK Python 3 TESTS 66 125 26726400
353840770 Asema208 lolkek3310 SimpleStone228 F Dec. 17, 2025, 11:52 a.m. OK Python 3 TESTS 66 125 26726400
353812441 PP2412 F Dec. 17, 2025, 9:17 a.m. OK Python 3 TESTS 66 125 26726400
353833585 SharkOuttie13 F Dec. 17, 2025, 11:11 a.m. OK Python 3 TESTS 66 140 19660800
353831791 MdKhanBahadurSadi F Dec. 17, 2025, 11:01 a.m. OK Python 3 TESTS 66 140 26726400
353821325 darsh40405 Syphon77 Jatin_Raghav F Dec. 17, 2025, 10:09 a.m. OK Python 3 TESTS 66 140 28672000
353824727 Siby_R F Dec. 17, 2025, 10:25 a.m. OK Python 3 TESTS 66 156 20582400
353821364 prohorse F Dec. 17, 2025, 10:09 a.m. OK Python 3 TESTS 66 156 26726400
353812738 rohith_25 F Dec. 17, 2025, 9:19 a.m. OK Python 3 TESTS 66 156 26726400
353838495 Anujbhati310 F Dec. 17, 2025, 11:39 a.m. OK Rust 2024 TESTS 66 62 3379200

remove filters

Back to search problems