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
( 628 ) G Greta's Game PROGRAMMING binary search dp math

Greta and Alice are the two permanent hosts of the hit comedy show "QuestExpert". For this season they invited (n) programmers to complete quests, set by Alice. After that they all meet in a studio to review how well they did and complete the final studio quest. Today, the studio quest that Alice came up with is as follows: first, all (n) participants stand in a circle in order from (1) to (n) counter-clockwise. Then Alice holds some number of rounds. In each round, every participant writes down an integer on a piece of paper. After that, Alice checks the numbers and for each (i) from (1) to (n), if the (i)-th participant's number is strictly larger than the number of the next participant in counter-clockwise order (participant number ((i \bmod n) + 1)), then the (i)-th and the ((i \bmod n) + 1)-st participants both receive one point. After all rounds are complete, Alice calculates the total number of points for each participant and reports them to Greta. It turned out that the (i)-th participant scored (a_i) points. Greta thinks that math games are boring, and this one took too long. To prove her wrong, Alice decides to cheat a little and instead of telling Greta the real number of rounds, she will tell her the minimum possible number of rounds that could still result in the (i)-th participant scoring (a_i) points for each (i). Help Alice determine this number. 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 participants ((2 \le n \le 5 \cdot 10^5)). The second line contains (n) integers (a_1, a_2, \ldots, a_n), denoting the final scores of the participants ((0 \le a_i \le 10^9)). It is guaranteed that those scores were achieved in the described game with at least one rou

Tutorials

Tutorial

Submissions

Submission Id
Author(s)
Index
Submitted
Verdict
Language
Test Set
Tests Passed
Time taken (ms)
Memory Consumed (bytes)
Tags
Rating
353821451 antonis.white G Dec. 17, 2025, 10:09 a.m. OK C++17 (GCC 7-32) TESTS 38 140 6041600
353816232 sunrise1024 fanglong thomaswmy G Dec. 17, 2025, 9:40 a.m. OK C++17 (GCC 7-32) TESTS 38 140 6041600
353836200 MatthewCode G Dec. 17, 2025, 11:26 a.m. OK C++17 (GCC 7-32) TESTS 38 156 4096000
353829460 11Gaurav1 G Dec. 17, 2025, 10:49 a.m. OK C++17 (GCC 7-32) TESTS 38 156 4198400
353817952 piyush.23bai10346 G Dec. 17, 2025, 9:52 a.m. OK C++17 (GCC 7-32) TESTS 38 156 10137600
353840470 dillion sayglenn OneBigNick G Dec. 17, 2025, 11:50 a.m. OK C++17 (GCC 7-32) TESTS 38 171 4096000
353838940 TrQuocAnn G Dec. 17, 2025, 11:42 a.m. OK C++17 (GCC 7-32) TESTS 38 171 4096000
353819695 oyzr liuxy2357 RDFZchenyy G Dec. 17, 2025, 10:01 a.m. OK C++17 (GCC 7-32) TESTS 38 171 4096000
353810940 potato167 G Dec. 17, 2025, 9:08 a.m. OK C++17 (GCC 7-32) TESTS 38 171 4096000
353816608 Ananya_CodeNova G Dec. 17, 2025, 9:43 a.m. OK C++17 (GCC 7-32) TESTS 38 171 6144000
353848355 BinarCat Alvian G Dec. 17, 2025, 12:38 p.m. OK C++20 (GCC 13-64) TESTS 38 125 102400
353843987 MdRuhulAminMajed054 G Dec. 17, 2025, 12:12 p.m. OK C++20 (GCC 13-64) TESTS 38 125 4096000
353842170 Swallows G Dec. 17, 2025, noon OK C++20 (GCC 13-64) TESTS 38 125 4096000
353806901 Rubikun G Dec. 17, 2025, 8:45 a.m. OK C++20 (GCC 13-64) TESTS 38 125 4096000
353812363 r_20 G Dec. 17, 2025, 9:17 a.m. OK C++20 (GCC 13-64) TESTS 38 125 4198400
353839544 weirdflexbutok hemanth6 SaltyDonut G Dec. 17, 2025, 11:45 a.m. OK C++20 (GCC 13-64) TESTS 38 125 8089600
353834790 blazzingrocky sharanyabaidya2020 souhardya2023 G Dec. 17, 2025, 11:17 a.m. OK C++20 (GCC 13-64) TESTS 38 125 8089600
353816763 Bruklyn G Dec. 17, 2025, 9:44 a.m. OK C++20 (GCC 13-64) TESTS 38 125 8089600
353825009 elffuhs_R G Dec. 17, 2025, 10:27 a.m. OK C++20 (GCC 13-64) TESTS 38 125 8908800
353841111 lad1chka Pashteticus LOL_I_AM_SERZH G Dec. 17, 2025, 11:54 a.m. OK C++20 (GCC 13-64) TESTS 38 125 10137600
353826620 MtSaka G Dec. 17, 2025, 10:35 a.m. OK C++23 (GCC 14-64, msys2) TESTS 38 46 4505600
353808286 Mitsukasa_Ayase kiana810 namespace_std G Dec. 17, 2025, 8:52 a.m. OK C++23 (GCC 14-64, msys2) TESTS 38 109 6041600
353832650 anteknne2 jakubm MinioBuB G Dec. 17, 2025, 11:06 a.m. OK C++23 (GCC 14-64, msys2) TESTS 38 109 11673600
353839227 Arpia mythofys kolorvxl G Dec. 17, 2025, 11:43 a.m. OK C++23 (GCC 14-64, msys2) TESTS 38 125 102400
353838050 csk2005 toshit3q34 ac2u G Dec. 17, 2025, 11:37 a.m. OK C++23 (GCC 14-64, msys2) TESTS 38 125 2252800
353925861 Siddarth_MSR G Dec. 18, 2025, 5:11 a.m. OK C++23 (GCC 14-64, msys2) TESTS 38 125 4300800
353813298 Boboge Fantasy_Blue geospiza G Dec. 17, 2025, 9:23 a.m. OK C++23 (GCC 14-64, msys2) TESTS 38 125 4300800
353922604 ali2005_syr G Dec. 18, 2025, 4:20 a.m. OK C++23 (GCC 14-64, msys2) TESTS 38 125 12185600
353843397 Wish_dream masy2011 lzh999 G Dec. 17, 2025, 12:08 p.m. OK C++23 (GCC 14-64, msys2) TESTS 38 125 24268800
353827914 mr.ahmadabdullah123 Behram._bk Unknown_but_wali_ G Dec. 17, 2025, 10:42 a.m. OK C++23 (GCC 14-64, msys2) TESTS 38 140 204800
353840106 Gassa G Dec. 17, 2025, 11:48 a.m. OK D TESTS 38 234 53248000
353813178 ZeroDayKnight G Dec. 17, 2025, 9:22 a.m. OK Java 21 TESTS 38 421 20582400
353836820 godfred G Dec. 17, 2025, 11:29 a.m. OK Java 21 TESTS 38 437 19968000
353852110 dabhishekyadav G Dec. 17, 2025, 1 p.m. OK Java 21 TESTS 38 468 21196800
353814651 yangyang520 G Dec. 17, 2025, 9:31 a.m. OK Java 8 TESTS 38 250 34816000
353838457 arvindf232 G Dec. 17, 2025, 11:39 a.m. OK Kotlin 2.2 TESTS 38 265 7168000
353816165 golomb G Dec. 17, 2025, 9:40 a.m. OK PyPy 3-64 TESTS 38 187 55910400
353847324 Not_PyPy G Dec. 17, 2025, 12:32 p.m. OK PyPy 3-64 TESTS 38 218 59596800
353849913 crown_seeker G Dec. 17, 2025, 12:47 p.m. OK PyPy 3-64 TESTS 38 234 69427200
353824201 Rusia299 G Dec. 17, 2025, 10:23 a.m. OK PyPy 3-64 TESTS 38 234 70144000
353818641 dyppp G Dec. 17, 2025, 9:55 a.m. OK PyPy 3-64 TESTS 38 234 71782400
353812573 keisuke6 hirayuu_cf G Dec. 17, 2025, 9:18 a.m. OK PyPy 3-64 TESTS 38 296 70860800
353851902 rohcoding dp_unrated Saarth G Dec. 17, 2025, 12:59 p.m. OK PyPy 3-64 TESTS 38 312 70860800
353851180 16777216 G Dec. 17, 2025, 12:55 p.m. OK PyPy 3-64 TESTS 38 375 71680000
353830455 ez_code 0471740 mezavant G Dec. 17, 2025, 10:54 a.m. OK PyPy 3-64 TESTS 38 890 92364800
353815624 Rahul5914 G Dec. 17, 2025, 9:37 a.m. OK Python 3 TESTS 38 343 82124800
353836406 SharkOuttie13 G Dec. 17, 2025, 11:27 a.m. OK Python 3 TESTS 38 500 78950400

remove filters

Back to search problems