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
( 697 ) J Jinx or Jackpot PROGRAMMING brute force dp math probabilities

Jack is in his favourite casino and has (1000) dollars. The casino has literally nothing but a single slot machine. Jack knows the history of this casino. Once upon a time, the future owner of the casino was walking and suddenly saw an array of (n) integer choices (p_{1}, \dots, p_{n}) each from (0) to (100). He picked an index (i) ((1 \leq i \leq n)) uniformly at random and thought that it was a good idea to create a casino in which there is only one slot machine with jackpot probability of (\frac{p_i}{100}). And he created it. Jack knows the array of choices (p_{1}, \dots, p_{n}) that suddenly appeared to the owner during the walk, but he does not know which (i) the owner picked. However, the chosen index (i) is fixed forever; the slot machine always uses the same (p_i) as explained below. On the slot machine, Jack can bet (x) dollars, where (x) is a non-negative integer, and pull the lever. Then: With probability (\frac{p_i}{100}) it will be a jackpot, and the slot machine returns (2x) dollars to him, so he gains (x) dollars. With probability (1 - \frac{p_i}{100}) it will be a jinx, and the slot machine returns nothing to him, so he loses (x) dollars. Even if Jack bets (0) dollars, he will understand whether it was a jinx or a jackpot. Also, the slot machine is not very durable, so Jack can play at most (k) rounds on it. Find the maximum expected profit Jack can achieve by an optimal strategy. Here a profit is defined as the final amount of money Jack has minus his initial (1000) dollars. Of course, Jack can't make a bet that is more than his current balance. The first line contains two integers (n) and (k) ((1 \leq n \leq 100\,000); (1 \leq k \leq 30)) — the number of choices and the limit on the number of rounds. The second line contains (n) integers (p_{1}, \dots, p_{n}) ((0 \le p_i \le 100)) — the choices. Output a single real number —

Tutorials

Tutorial

Submissions

Submission Id
Author(s)
Index
Submitted
Verdict
Language
Test Set
Tests Passed
Time taken (ms)
Memory Consumed (bytes)
Tags
Rating
353850634 neel_patel10 J Dec. 17, 2025, 12:52 p.m. OK C++17 (GCC 7-32) TESTS 49 46 102400
353838277 soumyadiptocodes masti ihgazi J Dec. 17, 2025, 11:38 a.m. OK C++17 (GCC 7-32) TESTS 49 46 102400
353832553 chenluNi lanthe0 Coast23 J Dec. 17, 2025, 11:05 a.m. OK C++17 (GCC 7-32) TESTS 49 46 102400
353832373 CrossFire1 Eason_He Haitang0520 J Dec. 17, 2025, 11:04 a.m. OK C++17 (GCC 7-32) TESTS 49 46 614400
353837314 TrQuocAnn J Dec. 17, 2025, 11:32 a.m. OK C++17 (GCC 7-32) TESTS 49 62 0
353837198 MatthewCode J Dec. 17, 2025, 11:32 a.m. OK C++17 (GCC 7-32) TESTS 49 62 102400
353808900 hansery J Dec. 17, 2025, 8:56 a.m. OK C++17 (GCC 7-32) TESTS 49 62 102400
353835284 hloya_ygrt J Dec. 17, 2025, 11:20 a.m. OK C++17 (GCC 7-32) TESTS 49 62 204800
353810044 Ananya_CodeNova J Dec. 17, 2025, 9:03 a.m. OK C++17 (GCC 7-32) TESTS 49 78 102400
353809949 CDNova J Dec. 17, 2025, 9:03 a.m. OK C++17 (GCC 7-32) TESTS 49 78 102400
353823336 weirdflexbutok hemanth6 SaltyDonut J Dec. 17, 2025, 10:19 a.m. OK C++20 (GCC 13-64) TESTS 49 46 0
353922174 danya111 J Dec. 18, 2025, 4:12 a.m. OK C++20 (GCC 13-64) TESTS 49 46 102400
353849844 Atlantis124 Atlantis_s J Dec. 17, 2025, 12:47 p.m. OK C++20 (GCC 13-64) TESTS 49 46 102400
353830675 antonis.white J Dec. 17, 2025, 10:56 a.m. OK C++20 (GCC 13-64) TESTS 49 46 102400
353829756 EthanHyatt J Dec. 17, 2025, 10:51 a.m. OK C++20 (GCC 13-64) TESTS 49 46 102400
353810703 StarSilk J Dec. 17, 2025, 9:07 a.m. OK C++20 (GCC 13-64) TESTS 49 46 102400
353805842 Hachikoo J Dec. 17, 2025, 8:39 a.m. OK C++20 (GCC 13-64) TESTS 49 46 102400
353810365 btoandizi J Dec. 17, 2025, 9:05 a.m. OK C++20 (GCC 13-64) TESTS 49 46 409600
353823106 mo_onrabbit2 J Dec. 17, 2025, 10:17 a.m. OK C++20 (GCC 13-64) TESTS 49 46 2150400
353926808 STB6 J Dec. 18, 2025, 5:25 a.m. OK C++20 (GCC 13-64) TESTS 49 62 102400
353841566 ta2ly.id guoxiangyu J Dec. 17, 2025, 11:57 a.m. OK C++23 (GCC 14-64, msys2) TESTS 49 31 819200
353848072 manojrajput2065 J Dec. 17, 2025, 12:36 p.m. OK C++23 (GCC 14-64, msys2) TESTS 49 46 0
353833891 jinjiangyu zzz13579zzz rhineofts J Dec. 17, 2025, 11:12 a.m. OK C++23 (GCC 14-64, msys2) TESTS 49 46 0
353823184 muradftullazada OrudjovCPP raizhekimov2010 J Dec. 17, 2025, 10:18 a.m. OK C++23 (GCC 14-64, msys2) TESTS 49 46 0
353817346 BaarishBoy J Dec. 17, 2025, 9:48 a.m. OK C++23 (GCC 14-64, msys2) TESTS 49 46 0
353921782 IamBATMAN1313 J Dec. 18, 2025, 4:04 a.m. OK C++23 (GCC 14-64, msys2) TESTS 49 46 102400
353919945 False0099 J Dec. 18, 2025, 3:29 a.m. OK C++23 (GCC 14-64, msys2) TESTS 49 46 102400
353850161 AsanAshirov J Dec. 17, 2025, 12:49 p.m. OK C++23 (GCC 14-64, msys2) TESTS 49 46 102400
353843997 lad1chka Pashteticus LOL_I_AM_SERZH J Dec. 17, 2025, 12:12 p.m. OK C++23 (GCC 14-64, msys2) TESTS 49 46 102400
353829925 anmichi J Dec. 17, 2025, 10:52 a.m. OK C++23 (GCC 14-64, msys2) TESTS 49 46 102400
353812580 ZeroDayKnight J Dec. 17, 2025, 9:18 a.m. OK Java 21 TESTS 49 218 1536000
353840702 godfred J Dec. 17, 2025, 11:52 a.m. OK Java 21 TESTS 49 281 6041600
353851131 dabhishekyadav J Dec. 17, 2025, 12:55 p.m. OK Java 21 TESTS 49 375 1331200
353841845 Power_Rangers_ J Dec. 17, 2025, 11:59 a.m. OK Java 21 TESTS 49 484 81203200
353805933 Gowtham_0408 J Dec. 17, 2025, 8:39 a.m. OK Java 21 TESTS 49 2359 2150400
353812972 yangyang520 J Dec. 17, 2025, 9:20 a.m. OK Java 8 TESTS 49 125 0
353836167 arvindf232 J Dec. 17, 2025, 11:25 a.m. OK Kotlin 2.2 TESTS 49 171 0
353814684 Rusia299 J Dec. 17, 2025, 9:31 a.m. OK PyPy 3-64 TESTS 49 93 14028800
353839094 dyppp J Dec. 17, 2025, 11:43 a.m. OK PyPy 3-64 TESTS 49 125 13721600
353835810 Not_PyPy J Dec. 17, 2025, 11:23 a.m. OK PyPy 3-64 TESTS 49 125 14028800
353824210 golomb J Dec. 17, 2025, 10:23 a.m. OK PyPy 3-64 TESTS 49 140 10444800
353813692 Maxduan __baozii__ J Dec. 17, 2025, 9:25 a.m. OK PyPy 3-64 TESTS 49 203 9830400
353847650 crown_seeker J Dec. 17, 2025, 12:34 p.m. OK PyPy 3-64 TESTS 49 343 14336000
353818007 vk135 J Dec. 17, 2025, 9:52 a.m. OK PyPy 3-64 TESTS 49 375 10444800
353824322 987 J Dec. 17, 2025, 10:23 a.m. OK PyPy 3-64 TESTS 49 2812 116838400
353838334 SharkOuttie13 J Dec. 17, 2025, 11:38 a.m. OK Python 3 TESTS 49 78 7065600
353813445 patelvinnu.112 kashish2210 J Dec. 17, 2025, 9:23 a.m. OK Python 3 TESTS 49 78 10035200
353818214 Rahul5914 J Dec. 17, 2025, 9:53 a.m. OK Python 3 TESTS 49 93 9728000

remove filters

Back to search problems