2019-2020 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
1267 2019-2020 ICPC, NERC, Northern Eurasia Finals (Unrated, Online Mirror, ICPC Rules, Teams Preferred) FINISHED False 18000 156639599 Dec. 1, 2019, 7 a.m.

Problems

Solved$
Index
Name
Type
Tags
Community Tag
Rating
( 1959 ) K Key Storage PROGRAMMING combinatorics math 2200

B"Karl is developing a key storage service. Each user has a positive integer key. Karl knows that storing keys in plain text is bad practice. So, instead of storing a key, he decided to store a fingerprint of a key. However, using some existing fingerprint algorithm looked too boring to him, so he invented his own one. Karl's fingerprint is calculated by the following process: divide the given integer by 2, then divide the result by 3, then divide the result by 4, and so on, until we get a result that equals zero (we are speaking about integer division each time). The fingerprint is defined as the multiset of the remainders of these divisions. For example, this is how Karl's fingerprint algorithm is applied to the key 11: 11 divided by 2 has remainder 1 and result 5, then 5 divided by 3 has remainder 2 and result 1, and 1 divided by 4 has remainder 1 and result 0. Thus, the key 11 produces the sequence of remainders [1, 2, 1] and has the fingerprint multiset {1, 1, 2 } . Ksenia wants to prove that Karl's fingerprint algorithm is not very good. For example, she found that both keys 178800 and 123456 produce the fingerprint of {0, 0, 0, 0, 2, 3, 3, 4 } . Thus, users are at risk of fingerprint collision with some commonly used and easy to guess keys like 123456. Ksenia wants to make her words more persuasive. She wants to calculate the number of other keys that have the same fingerprint as the keys in the given list of some commonly used keys. Your task is to help her. The first line contains an integer t ( 1 <= t <= 50 ,000 ) -- the number of commonly used keys to examine. Each of the next t lines contains one integer k_i ( 1 <= k_i <= 10^{18} ) -- the key itself. For each of the keys print one integer -- the number of other keys that have the same fingerprint. The other key with the same fingerprint as 11 is 15. 15 produces a sequence of remainders [1, 1, 2] . So both numbers have the finge"...

Tutorials

nerc-2019-tutorial.pdf

Submissions

Submission Id
Author(s)
Index
Submitted
Verdict
Language
Test Set
Tests Passed
Time taken (ms)
Memory Consumed (bytes)
Tags
Rating
66133029 dream_maker cxr_o__o_cxr yyf0309 K Dec. 1, 2019, 11:13 a.m. OK GNU C++11 TESTS 18 62 0 2200
66111690 qem lzr_010506 Asm.Def K Dec. 1, 2019, 9:29 a.m. OK GNU C++11 TESTS 18 62 0 2200
66109266 djh123 msuwakow Logey K Dec. 1, 2019, 9:10 a.m. OK GNU C++11 TESTS 18 62 0 2200
66101066 KMAASZRAA Atreus Kalam K Dec. 1, 2019, 8:26 a.m. OK GNU C++11 TESTS 18 62 0 2200
66132845 yang12138 K Dec. 1, 2019, 11:09 a.m. OK GNU C++11 TESTS 18 77 0 2200
66135246 Hunter_Will Charlie_shadow Usefully_XunYu K Dec. 1, 2019, 11:56 a.m. OK GNU C++11 TESTS 18 78 0 2200
66132674 wbs501 lyh uniea K Dec. 1, 2019, 11:05 a.m. OK GNU C++11 TESTS 18 78 0 2200
66116136 xqly 156250lcy K Dec. 1, 2019, 9:51 a.m. OK GNU C++11 TESTS 18 93 0 2200
66115989 FrostStar 8300590 liyang21 K Dec. 1, 2019, 9:48 a.m. OK GNU C++11 TESTS 18 93 0 2200
66105717 sjcakioi sjc061031 htc001 K Dec. 1, 2019, 8:51 a.m. OK GNU C++11 TESTS 18 93 0 2200
66101225 jakedavis K Dec. 1, 2019, 8:29 a.m. OK GNU C++14 TESTS 18 77 0 2200
66100852 PinkRabbit K Dec. 1, 2019, 8:22 a.m. OK GNU C++14 TESTS 18 77 0 2200
66099628 Roundgod sy_chen calabash_boy K Dec. 1, 2019, 8:17 a.m. OK GNU C++14 TESTS 18 77 0 2200
66121045 Kerim.K K Dec. 1, 2019, 10:10 a.m. OK GNU C++14 TESTS 18 78 0 2200
66109596 OAHOBOHAO Origenes emmah K Dec. 1, 2019, 9:18 a.m. OK GNU C++14 TESTS 18 78 0 2200
66100990 liuhzh26 ImpcO lyons K Dec. 1, 2019, 8:25 a.m. OK GNU C++14 TESTS 18 78 0 2200
66109387 tusg25 TheOneYouWant zeyunow K Dec. 1, 2019, 9:12 a.m. OK GNU C++14 TESTS 18 92 0 2200
66121338 Hell_Eclipse JSZX11556 sega_hsj K Dec. 1, 2019, 10:16 a.m. OK GNU C++14 TESTS 18 93 0 2200
66111958 975678774 xyw5vplus1 CoolKey K Dec. 1, 2019, 9:35 a.m. OK GNU C++14 TESTS 18 93 0 2200
66109628 Qing_Yang K Dec. 1, 2019, 9:18 a.m. OK GNU C++14 TESTS 18 93 0 2200
66100656 Twishkle.Aevdark K Dec. 1, 2019, 8:19 a.m. OK GNU C++17 TESTS 18 62 0 2200
66094313 little_waxberry yht_boyfriend ppc_qjd K Dec. 1, 2019, 7:46 a.m. OK GNU C++17 TESTS 18 62 0 2200
66103955 kalpitk vntshh kr_abhinav K Dec. 1, 2019, 8:40 a.m. OK GNU C++17 TESTS 18 77 0 2200
66090997 gisp_zjz K Dec. 1, 2019, 7:17 a.m. OK GNU C++17 TESTS 18 77 102400 2200
66129331 chenxw_GGSDDU cavary_cl xxjAc K Dec. 1, 2019, 10:46 a.m. OK GNU C++17 TESTS 18 78 0 2200
66116017 HeRaNO krazy ZXyang K Dec. 1, 2019, 9:48 a.m. OK GNU C++17 TESTS 18 78 0 2200
66097166 chenyeyuan YangDavid CN_zwang2002 K Dec. 1, 2019, 8:03 a.m. OK GNU C++17 TESTS 18 78 0 2200
66095096 abc473848880 Gromah KeyID K Dec. 1, 2019, 7:50 a.m. OK GNU C++17 TESTS 18 78 102400 2200
66129603 Mitsuhaw K Dec. 1, 2019, 10:53 a.m. OK GNU C++17 TESTS 18 93 0 2200
66109346 knandy aayush9 cerberus97 K Dec. 1, 2019, 9:11 a.m. OK GNU C++17 TESTS 18 93 0 2200
66116493 insert_cool_handle K Dec. 1, 2019, 9:58 a.m. OK Java 11 TESTS 18 545 0 2200
66123735 knightL K Dec. 1, 2019, 10:22 a.m. OK Kotlin TESTS 18 826 614400 2200
66118877 peregrinus BrainFreeze K Dec. 1, 2019, 10:08 a.m. OK Mono C# TESTS 18 764 74035200 2200
66132909 compute dyume LIN88 K Dec. 1, 2019, 11:10 a.m. OK PyPy 3 TESTS 18 1075 8499200 2200
66105350 luismriq K Dec. 1, 2019, 8:44 a.m. OK Python 3 TESTS 18 2433 307200 2200

remove filters

Back to search problems