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
( 5554 ) B Battle of Arrays PROGRAMMING brute force data structures games greedy

Alice and Bob play a turn-based game. Initially, Alice has an array (a) of (n) positive integers, and Bob has an array (b) of (m) positive integers. The players take turns, with Alice moving first. On a player's turn, they must choose one element (x) from their own array and the maximal element (y) from their opponent's array. Then they perform the following operation: If (y \leq x): the element (y) is destroyed (removed from the opponent's array). If (y > x): the element (y) is decreased by (x) (the value of (y) becomes (y - x)). A player wins if, after their move, the opponent's array becomes empty. Assuming both players play optimally, determine the winner. Each input contains multiple test cases. The first line contains the number of test cases (t) ((1 \le t \le 10^5)). The first line of each test case contains two integers (n) and (m) ((1 \le n,m \le 10^5)) — the sizes of Alice's and Bob's arrays respectively. The second line contains (n) integers (a_1, a_2, \ldots, a_n) ((1 \le a_i \le 10^9)) — Alice's array. The third line contains (m) integers (b_1, b_2, \ldots, b_m) ((1 \le b_i \le 10^9)) — Bob's array. It is guaranteed that the sum of (n) over all test cases does not exceed (10^5) and the sum of (m) over all test cases does not exceed (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 Alice moves and decreases Bob's element by (70), so it becomes (20). Then Bob moves and decreases Alice's element by (20), so it becomes (50). Finally, Alice moves, destroys Bob's element, and wins.

Tutorials

Tutorial

Submissions

Submission Id
Author(s)
Index
Submitted
Verdict
Language
Test Set
Tests Passed
Time taken (ms)
Memory Consumed (bytes)
Tags
Rating
353832883 prabhakar.07.07.07 B Dec. 17, 2025, 11:07 a.m. OK C++17 (GCC 7-32) TESTS 40 93 102400
353809253 rf0014 B Dec. 17, 2025, 8:58 a.m. OK C++17 (GCC 7-32) TESTS 40 93 102400
353807005 RaadSharar AmartyaXphy srlabib B Dec. 17, 2025, 8:45 a.m. OK C++17 (GCC 7-32) TESTS 40 93 102400
353847486 haer B Dec. 17, 2025, 12:33 p.m. OK C++17 (GCC 7-32) TESTS 40 109 0
353834269 Lil_Adi B Dec. 17, 2025, 11:14 a.m. OK C++17 (GCC 7-32) TESTS 40 109 0
353923435 Maf_Koira_Den_Vai B Dec. 18, 2025, 4:35 a.m. OK C++17 (GCC 7-32) TESTS 40 109 102400
353834327 Shiveish B Dec. 17, 2025, 11:15 a.m. OK C++17 (GCC 7-32) TESTS 40 109 102400
353822965 proxychainz B Dec. 17, 2025, 10:17 a.m. OK C++17 (GCC 7-32) TESTS 40 109 102400
353821983 Hajime_Umemiya B Dec. 17, 2025, 10:12 a.m. OK C++17 (GCC 7-32) TESTS 40 109 102400
353812465 Beautiful_War B Dec. 17, 2025, 9:17 a.m. OK C++17 (GCC 7-32) TESTS 40 109 102400
353803292 FQR_ B Dec. 17, 2025, 8:24 a.m. OK C++20 (GCC 13-64) TESTS 40 78 102400
353826081 xzz_cat6 dingzibo DycDycDyc B Dec. 17, 2025, 10:33 a.m. OK C++20 (GCC 13-64) TESTS 40 78 2150400
353820094 sherlocksys B Dec. 17, 2025, 10:03 a.m. OK C++20 (GCC 13-64) TESTS 40 93 0
353827482 susshhshsh B Dec. 17, 2025, 10:39 a.m. OK C++20 (GCC 13-64) TESTS 40 93 102400
353823400 IittIec0der B Dec. 17, 2025, 10:19 a.m. OK C++20 (GCC 13-64) TESTS 40 93 102400
353817948 UP84 B Dec. 17, 2025, 9:52 a.m. OK C++20 (GCC 13-64) TESTS 40 93 102400
353814856 dthai2424 Wynz nt_nhan B Dec. 17, 2025, 9:32 a.m. OK C++20 (GCC 13-64) TESTS 40 93 102400
353809752 ilovemymind B Dec. 17, 2025, 9:01 a.m. OK C++20 (GCC 13-64) TESTS 40 93 102400
353809099 Shardul007 B Dec. 17, 2025, 8:58 a.m. OK C++20 (GCC 13-64) TESTS 40 93 102400
353806848 Marchell_Hii djsksbrbf B Dec. 17, 2025, 8:44 a.m. OK C++20 (GCC 13-64) TESTS 40 93 102400
353802944 wind_cross max67 QAQ_QWQ B Dec. 17, 2025, 8:22 a.m. OK C++23 (GCC 14-64, msys2) TESTS 40 78 16179200
353930274 atkubo benben181 B Dec. 18, 2025, 6:09 a.m. OK C++23 (GCC 14-64, msys2) TESTS 40 93 0
353836899 Rsclet duchuan75 B Dec. 17, 2025, 11:30 a.m. OK C++23 (GCC 14-64, msys2) TESTS 40 93 0
353817163 01iveria Camellia_lsy Luoyuan B Dec. 17, 2025, 9:47 a.m. OK C++23 (GCC 14-64, msys2) TESTS 40 93 0
353808958 abee95 ZhouMoretti B Dec. 17, 2025, 8:57 a.m. OK C++23 (GCC 14-64, msys2) TESTS 40 93 0
353808708 Khoja Mousa_Aboubaker B Dec. 17, 2025, 8:55 a.m. OK C++23 (GCC 14-64, msys2) TESTS 40 93 0
353807463 chinmaysg B Dec. 17, 2025, 8:48 a.m. OK C++23 (GCC 14-64, msys2) TESTS 40 93 0
353930463 bera_474 B Dec. 18, 2025, 6:11 a.m. OK C++23 (GCC 14-64, msys2) TESTS 40 93 102400
353929861 nightnebula B Dec. 18, 2025, 6:04 a.m. OK C++23 (GCC 14-64, msys2) TESTS 40 93 102400
353925686 RedmiNote13pro B Dec. 18, 2025, 5:09 a.m. OK C++23 (GCC 14-64, msys2) TESTS 40 93 102400
353806483 Gassa B Dec. 17, 2025, 8:42 a.m. OK D TESTS 40 296 24678400
353818733 Anujbhati310 B Dec. 17, 2025, 9:56 a.m. OK Go TESTS 40 171 7065600
353927220 yiren429 B Dec. 18, 2025, 5:31 a.m. OK Go TESTS 40 312 54476800
353814618 Staelth B Dec. 17, 2025, 9:30 a.m. OK Go TESTS 40 687 5427200
353837946 lyongwolf B Dec. 17, 2025, 11:36 a.m. OK Java 21 TESTS 40 296 1740800
353806809 LOSER225 leen05 abhishekjhaji2004 B Dec. 17, 2025, 8:44 a.m. OK Java 21 TESTS 40 375 5120000
353808895 ZeroDayKnight B Dec. 17, 2025, 8:56 a.m. OK Java 21 TESTS 40 390 3072000
353801157 man-ray B Dec. 17, 2025, 8:11 a.m. OK Java 21 TESTS 40 406 3993600
353808249 Jashwanth1979 B Dec. 17, 2025, 8:52 a.m. OK Java 21 TESTS 40 406 4403200
353807870 sreekar_1608 B Dec. 17, 2025, 8:50 a.m. OK Java 21 TESTS 40 437 2048000
353816351 rudradabar1234 B Dec. 17, 2025, 9:41 a.m. OK Java 21 TESTS 40 437 3276800
353809907 virinci vineetiwari adarshsingh0427 B Dec. 17, 2025, 9:02 a.m. OK Java 21 TESTS 40 437 5632000
353805748 AdityaPandey208 namankansara0611 B Dec. 17, 2025, 8:38 a.m. OK Java 21 TESTS 40 437 5734400
353850949 Ayush8874 B Dec. 17, 2025, 12:54 p.m. OK Java 21 TESTS 40 453 6144000
353809516 yangyang520 B Dec. 17, 2025, 9 a.m. OK Java 8 TESTS 40 375 2867200
353843911 kevin_0911 isha2422 Arpita6379 B Dec. 17, 2025, 12:11 p.m. OK Java 8 TESTS 40 406 7270400
353812081 kit27.bme1 B Dec. 17, 2025, 9:15 a.m. OK Java 8 TESTS 40 468 2662400
353843982 _maz B Dec. 17, 2025, 12:12 p.m. OK JavaScript TESTS 40 437 19968000
353824999 arvindf232 B Dec. 17, 2025, 10:27 a.m. OK Kotlin 2.2 TESTS 40 562 24371200
353827629 ps2006 B Dec. 17, 2025, 10:40 a.m. OK PyPy 3 TESTS 40 1421 13721600
353847537 ACPC_Revenge B Dec. 17, 2025, 12:33 p.m. OK PyPy 3 TESTS 40 1484 13414400
353806683 jigitmax B Dec. 17, 2025, 8:43 a.m. OK PyPy 3-64 TESTS 40 281 36761600
353809637 ez_code 0471740 mezavant B Dec. 17, 2025, 9:01 a.m. OK PyPy 3-64 TESTS 40 312 19968000
353808340 henok_t_k BiniyamEshetu nba_yeabsira B Dec. 17, 2025, 8:53 a.m. OK PyPy 3-64 TESTS 40 312 26828800
353827877 susshhshsh B Dec. 17, 2025, 10:41 a.m. OK PyPy 3-64 TESTS 40 343 36454400
353812390 pulakbagaria jagannathpisharody Aaravdg_07 B Dec. 17, 2025, 9:17 a.m. OK PyPy 3-64 TESTS 40 359 19865600
353850864 minhblabla William_Sommers dat999zx B Dec. 17, 2025, 12:53 p.m. OK PyPy 3-64 TESTS 40 375 20889600
353819545 vk135 B Dec. 17, 2025, 10 a.m. OK PyPy 3-64 TESTS 40 390 20889600
353824550 Yedige8 B Dec. 17, 2025, 10:25 a.m. OK PyPy 3-64 TESTS 40 421 40140800
353849654 JinxedMinced B Dec. 17, 2025, 12:46 p.m. OK PyPy 3-64 TESTS 40 515 22118400
353807564 usaya B Dec. 17, 2025, 8:48 a.m. OK PyPy 3-64 TESTS 40 515 23552000
353819120 Has-Borutocu B Dec. 17, 2025, 9:58 a.m. OK Python 3 TESTS 40 296 26316800
353821963 Siby_R B Dec. 17, 2025, 10:12 a.m. OK Python 3 TESTS 40 312 23142400
353807226 Pan_Ding B Dec. 17, 2025, 8:46 a.m. OK Python 3 TESTS 40 312 27443200
353828096 sbmutnale512 B Dec. 17, 2025, 10:42 a.m. OK Python 3 TESTS 40 375 24576000
353847640 Master-Yug B Dec. 17, 2025, 12:34 p.m. OK Python 3 TESTS 40 390 24064000
353849151 MdKhanBahadurSadi B Dec. 17, 2025, 12:43 p.m. OK Python 3 TESTS 40 406 25497600
353810897 abhinav_26104 rajarshidattapy B Dec. 17, 2025, 9:08 a.m. OK Python 3 TESTS 40 437 23961600
353848360 himanshuchitoria B Dec. 17, 2025, 12:38 p.m. OK Python 3 TESTS 40 484 24473600
353811130 Beitmeorbeitme B Dec. 17, 2025, 9:09 a.m. OK Python 3 TESTS 40 531 18227200
353840643 HaisTous B Dec. 17, 2025, 11:52 a.m. OK Python 3 TESTS 40 578 16896000

remove filters

Back to search problems