2023-2024 ICPC, NERC, Northern Eurasia Onsite (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
1912 2023-2024 ICPC, NERC, Northern Eurasia Onsite (Unrated, Online Mirror, ICPC Rules, Teams Preferred) FINISHED False 18000 29370299 Dec. 13, 2023, 7:35 a.m.

Problems

Solved$
Index
Name
Type
Tags
Community Tag
Rating
( 2551 ) K Kim's Quest PROGRAMMING bitmasks combinatorics dp 1800

B"In the long-forgotten halls of Kombinatoria's ancient academy, a gifted mathematician named Kim is faced with an unusual challenge. They found an old sequence of integers, which is believed to be a cryptic message from the legendary Kombinatoria's Oracle, and Kim wants to decipher its hidden meaning. Kim's mission is to find specific patterns within the sequence, known as Harmonious Subsequences. These are extraordinary subsequences where the sum of every three consecutive numbers is even, and each subsequence must be at least three numbers in length. Given a sequence a_i ( 1 <= i <= n ) of length n , its subsequence of length m is equal to a_{b_1}, a_{b_2}, ldots, a_{b_m} and is uniquely defined by a set of m indices b_j , such that 1 <= b_1 < b_2 < ldots < b_m <= n . Subsequences given by different sets of indices b_j are considered different. There's a twist in Kim's quest: the number of these Harmonious Subsequences could be overwhelming. To report the findings effectively, Kim must calculate the total number of these subsequences, presenting the answer as a remainder after dividing by the number 998 ,244 ,353 . The first line contains a single integer n -- the length of the sequence ( 3 <= n <= 2 cdot 10^5 ). The second line contains n space-separated integers a_i -- the elements of the sequence ( 1 <= a_i <= 2 cdot 10^5 ). Output one number -- the number of Harmonious Subsequences, modulo 998 ,244 ,353 . In the provided input data for the fifth sample, the sequence of numbers is split into three separate lines for clarity, but it should be understood that in the actual test data, the sequence is given in one line. The actual number of Harmonious Subsequences in this example is 4 ,991 ,221 ,765 = 5 x 998 ,244 ,353 , hence the output is zero as a result of finding its remainder after dividing by the number 998 ,244 ,353 . "...

Tutorials

Tutorials (PDF)

Submissions

Submission Id
Author(s)
Index
Submitted
Verdict
Language
Test Set
Tests Passed
Time taken (ms)
Memory Consumed (bytes)
Tags
Rating
236986607 whdywjd Max_s_xaM Sirantic K Dec. 13, 2023, 7:55 a.m. OK GNU C++14 TESTS 30 46 18944000 1800
236985047 ieeMeowCon YunQian zhaohaikun K Dec. 13, 2023, 7:43 a.m. OK GNU C++14 TESTS 30 61 3993600 1800
236999801 duanyuu K Dec. 13, 2023, 9:13 a.m. OK GNU C++14 TESTS 30 62 819200 1800
236988767 scli_weapon K Dec. 13, 2023, 8:07 a.m. OK GNU C++14 TESTS 30 62 819200 1800
236986774 fjashufi AcceptedPower Raymond_7 K Dec. 13, 2023, 7:56 a.m. OK GNU C++14 TESTS 30 62 2457600 1800
236986122 YXHuang bunH2O xsap K Dec. 13, 2023, 7:51 a.m. OK GNU C++14 TESTS 30 62 2457600 1800
237109911 omeganot K Dec. 14, 2023, 1:47 a.m. OK GNU C++14 TESTS 30 62 3993600 1800
236986168 monstersqaq Crying K Dec. 13, 2023, 7:51 a.m. OK GNU C++14 TESTS 30 62 13619200 1800
237106917 QQH K Dec. 14, 2023, 12:07 a.m. OK GNU C++14 TESTS 30 77 0 1800
236995792 CLOCKS_PER_SEC K Dec. 13, 2023, 8:49 a.m. OK GNU C++14 TESTS 30 77 3993600 1800
236999202 yyf_0404 K Dec. 13, 2023, 9:08 a.m. OK GNU C++17 TESTS 30 61 819200 1800
236993600 JomnoiZ K Dec. 13, 2023, 8:39 a.m. OK GNU C++17 TESTS 30 62 0 1800
237017980 mahimero2006 Koyote sdt_corn K Dec. 13, 2023, 10:47 a.m. OK GNU C++17 TESTS 30 62 819200 1800
236986116 maroonrk hos.lyric maspy K Dec. 13, 2023, 7:51 a.m. OK GNU C++17 TESTS 30 62 819200 1800
236992480 BaoJiaoPisu vodacbaoan KhiNaoTotNghiep K Dec. 13, 2023, 8:30 a.m. OK GNU C++17 TESTS 30 62 1638400 1800
236987673 Suika_predator oipotato lwn_16 K Dec. 13, 2023, 8:03 a.m. OK GNU C++17 TESTS 30 62 3993600 1800
236992246 Nyanya_ clfzs ljr1234 K Dec. 13, 2023, 8:28 a.m. OK GNU C++17 TESTS 30 62 7987200 1800
236987703 5af MiracleMaMa red-stone K Dec. 13, 2023, 8:03 a.m. OK GNU C++17 TESTS 30 62 7987200 1800
236996159 Sung.An K Dec. 13, 2023, 8:52 a.m. OK GNU C++17 TESTS 30 62 8806400 1800
237002379 ywjylx K Dec. 13, 2023, 9:24 a.m. OK GNU C++17 TESTS 30 62 10444800 1800
236986863 ITworker_Z K Dec. 13, 2023, 7:57 a.m. OK GNU C++17 (64) TESTS 30 15 512000 1800
237117244 Klinashka K Dec. 14, 2023, 4:27 a.m. OK GNU C++17 (64) TESTS 30 31 819200 1800
237120424 NirvanaYiYun K Dec. 14, 2023, 5:19 a.m. OK GNU C++17 (64) TESTS 30 46 0 1800
237086307 DanRo23 K Dec. 13, 2023, 6:15 p.m. OK GNU C++17 (64) TESTS 30 46 0 1800
236986010 IceKnight1093 K Dec. 13, 2023, 7:50 a.m. OK GNU C++17 (64) TESTS 30 46 0 1800
236989862 koderkushy K Dec. 13, 2023, 8:16 a.m. OK GNU C++17 (64) TESTS 30 46 819200 1800
236989181 Melacau bzzzz zzpcd K Dec. 13, 2023, 8:10 a.m. OK GNU C++17 (64) TESTS 30 46 819200 1800
236986522 Kilo_5723 Tobo tarjen K Dec. 13, 2023, 7:54 a.m. OK GNU C++17 (64) TESTS 30 46 819200 1800
236985812 arnold518 YeongTree Karuna K Dec. 13, 2023, 7:49 a.m. OK GNU C++17 (64) TESTS 30 46 819200 1800
236987258 songke123 K Dec. 13, 2023, 8 a.m. OK GNU C++17 (64) TESTS 30 46 1638400 1800
236996886 yuvrajKharayat Sanat Ryshi K Dec. 13, 2023, 8:58 a.m. OK GNU C++20 (64) TESTS 30 31 0 1800
236991285 feidada fpcsong loujunjie K Dec. 13, 2023, 8:27 a.m. OK GNU C++20 (64) TESTS 30 31 0 1800
237105335 UirTrya K Dec. 13, 2023, 11:08 p.m. OK GNU C++20 (64) TESTS 30 31 819200 1800
237021568 Yzk_CF K Dec. 13, 2023, 11:02 a.m. OK GNU C++20 (64) TESTS 30 31 819200 1800
236998659 sanju77 chethan58 twix_85 K Dec. 13, 2023, 9:03 a.m. OK GNU C++20 (64) TESTS 30 31 819200 1800
236987813 yuki_keshiki cpchenpi K Dec. 13, 2023, 8:04 a.m. OK GNU C++20 (64) TESTS 30 31 819200 1800
236998556 PPangpond pongpunn456 omsincoconut K Dec. 13, 2023, 9:02 a.m. OK GNU C++20 (64) TESTS 30 31 1638400 1800
236993780 mcbanana Gergyg K Dec. 13, 2023, 8:40 a.m. OK GNU C++20 (64) TESTS 30 31 1638400 1800
236992566 drath10 chitransh_itbhu_6102003 MadRat_0 K Dec. 13, 2023, 8:30 a.m. OK GNU C++20 (64) TESTS 30 31 1638400 1800
236985611 paul2008 jucason_xu pp_orange K Dec. 13, 2023, 7:47 a.m. OK GNU C++20 (64) TESTS 30 31 5632000 1800
236995039 yvbf K Dec. 13, 2023, 8:42 a.m. OK Java 8 TESTS 30 202 15360000 1800
236986611 arvindf232 K Dec. 13, 2023, 7:55 a.m. OK Kotlin 1.6 TESTS 30 280 2048000 1800
237014342 Freiden _Anton K Dec. 13, 2023, 10:31 a.m. OK Kotlin 1.9 TESTS 30 623 105472000 1800
237103251 SlavaG K Dec. 13, 2023, 10:09 p.m. OK Kotlin 1.9 TESTS 30 670 61337600 1800
237113876 surajcodeforce K Dec. 14, 2023, 3:23 a.m. OK PyPy 3 TESTS 30 264 16179200 1800
236998509 00zijian K Dec. 13, 2023, 9:02 a.m. OK PyPy 3-64 TESTS 30 109 22937600 1800
236995571 Rumors K Dec. 13, 2023, 8:47 a.m. OK PyPy 3-64 TESTS 30 124 22835200 1800
237000548 mavr K Dec. 13, 2023, 9:19 a.m. OK PyPy 3-64 TESTS 30 124 27238400 1800
237105698 xiaowuc1 K Dec. 13, 2023, 11:22 p.m. OK PyPy 3-64 TESTS 30 311 20070400 1800
237014309 aniketabhiraj2004 K Dec. 13, 2023, 10:30 a.m. OK PyPy 3-64 TESTS 30 592 104243200 1800
237000480 USYDLDH K Dec. 13, 2023, 9:19 a.m. OK PyPy 3-64 TESTS 30 779 112025600 1800
237002792 yefe162 K Dec. 13, 2023, 9:28 a.m. OK PyPy 3-64 TESTS 30 1091 27648000 1800
237121955 HasLion K Dec. 14, 2023, 5:40 a.m. OK Python 3 TESTS 30 2370 21708800 1800
237097278 mikkk K Dec. 13, 2023, 8:28 p.m. OK Rust 2021 TESTS 30 46 13004800 1800
237080683 K Dec. 13, 2023, 5:25 p.m. OK Unknown TESTS 0 0 0 1800
237080675 K Dec. 13, 2023, 5:25 p.m. OK Unknown TESTS 0 0 0 1800
237080511 K Dec. 13, 2023, 5:25 p.m. OK Unknown TESTS 0 0 0 1800
237080306 K Dec. 13, 2023, 5:25 p.m. OK Unknown TESTS 0 0 0 1800
237080190 K Dec. 13, 2023, 5:25 p.m. OK Unknown TESTS 0 0 0 1800
237080148 K Dec. 13, 2023, 5:25 p.m. OK Unknown TESTS 0 0 0 1800
237080025 K Dec. 13, 2023, 5:25 p.m. OK Unknown TESTS 0 0 0 1800
237079926 K Dec. 13, 2023, 5:25 p.m. OK Unknown TESTS 0 0 0 1800
237079898 K Dec. 13, 2023, 5:25 p.m. OK Unknown TESTS 0 0 0 1800
237079893 K Dec. 13, 2023, 5:25 p.m. OK Unknown TESTS 0 0 0 1800

remove filters

Back to search problems