VK Cup 2017 - Round 2

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
772 VK Cup 2017 - Round 2 FINISHED False 7200 239466299 April 16, 2017, 3:35 p.m.

Problems

Solved$
Index
Name
Type
Tags
Community Tag
Rating
( 1389 ) C Vulnerable Kerbals PROGRAMMING constructive algorithms dp graphs math number theory 2400

B"You are given an integer m, and a list of n distinct integers between 0 and m xe2 x80 x89- xe2 x80 x891. You would like to construct a sequence satisfying the properties: Construct any sequence satisfying the properties above. The first line of input contains two integers n and m (0 xe2 x80 x89 xe2 x89 xa4 xe2 x80 x89n xe2 x80 x89< xe2 x80 x89m xe2 x80 x89 xe2 x89 xa4 xe2 x80 x89200 xe2 x80 x89000) -- the number of forbidden prefix products and the modulus. If n is non-zero, the next line of input contains n distinct integers between 0 and m xe2 x80 x89- xe2 x80 x891, the forbidden prefix products. If n is zero, this line doesn't exist. On the first line, print the number k, denoting the length of your sequence. On the second line, print k space separated integers, denoting your sequence. For the first case, the prefix products of this sequence modulo m are [1, xe2 x80 x892, xe2 x80 x893, xe2 x80 x894, xe2 x80 x890]. For the second case, the prefix products of this sequence modulo m are [3, xe2 x80 x897, xe2 x80 x894, xe2 x80 x896, xe2 x80 x898, xe2 x80 x890]. "...

Tutorials

VK Cup Round 2 + Codeforces Round #409 Tutorial

Submissions

Submission Id
Author(s)
Index
Submitted
Verdict
Language
Test Set
Tests Passed
Time taken (ms)
Memory Consumed (bytes)
Tags
Rating
40982328 ReaLNero1 C July 30, 2018, 6:22 p.m. OK GNU C++ TESTS 67 78 7577600 2400
27623810 jiyutian C June 7, 2017, 1:52 a.m. OK GNU C++ TESTS 67 78 9830400 2400
26695318 jzymts C April 27, 2017, 3:22 a.m. OK GNU C++ TESTS 67 93 9932800 2400
33132580 DS-K C Dec. 11, 2017, 5:47 p.m. OK GNU C++ TESTS 67 124 7270400 2400
33130861 vjudge3 C Dec. 11, 2017, 5:36 p.m. OK GNU C++ TESTS 67 124 7270400 2400
27148307 black_horse2014 C May 16, 2017, 2:12 a.m. OK GNU C++ TESTS 67 124 7987200 2400
26489918 vjudge1 C April 19, 2017, 6:44 a.m. OK GNU C++ TESTS 67 124 8704000 2400
33133445 vjudge2 C Dec. 11, 2017, 5:53 p.m. OK GNU C++ TESTS 67 139 8089600 2400
26448210 ACMLCZH C April 17, 2017, 7:26 a.m. OK GNU C++ TESTS 67 140 34508800 2400
26433619 FlierKing linrunbo C April 16, 2017, 5:28 p.m. OK GNU C++ TESTS 67 155 11571200 2400
26429328 BotanIQ agsagds C April 16, 2017, 4:43 p.m. OK GNU C++11 TESTS 67 93 4198400 2400
48992915 vjudge3 C Jan. 26, 2019, 3:14 p.m. OK GNU C++11 TESTS 67 93 6758400 2400
34466506 JSZX11556 C Jan. 23, 2018, 3:26 a.m. OK GNU C++11 TESTS 67 93 9625600 2400
27750343 Manchery C June 13, 2017, 6:46 a.m. OK GNU C++11 TESTS 67 108 9011200 2400
33635592 stevenzheng2002 C Dec. 26, 2017, 3:42 a.m. OK GNU C++11 TESTS 67 108 10444800 2400
49197993 luogu_bot3 C Jan. 30, 2019, 11:19 a.m. OK GNU C++11 TESTS 67 109 6758400 2400
48991124 luogu_bot3 C Jan. 26, 2019, 2:28 p.m. OK GNU C++11 TESTS 67 109 9318400 2400
26436462 pab2 C April 16, 2017, 6:58 p.m. OK GNU C++11 TESTS 67 109 9932800 2400
26432638 _XuMuk_ BigBag C April 16, 2017, 5:18 p.m. OK GNU C++11 TESTS 67 109 10649600 2400
26515963 lzw4896s C April 20, 2017, 12:35 p.m. OK GNU C++11 TESTS 67 109 12083200 2400
26690772 aditya1701 C April 26, 2017, 8 p.m. OK GNU C++14 TESTS 67 77 17408000 2400
54752950 bhargav_0085 C May 28, 2019, 1:42 p.m. OK GNU C++14 TESTS 67 78 4608000 2400
26436745 f1u77y C April 16, 2017, 7:01 p.m. OK GNU C++14 TESTS 67 93 5427200 2400
32570272 encore_ C Nov. 23, 2017, 8:58 a.m. OK GNU C++14 TESTS 67 93 7782400 2400
26447197 FallDream C April 17, 2017, 6:25 a.m. OK GNU C++14 TESTS 67 93 8089600 2400
26452137 joyfun C April 17, 2017, 10:48 a.m. OK GNU C++14 TESTS 67 93 8704000 2400
26482937 Sloppy_Nerd C April 18, 2017, 7:17 p.m. OK GNU C++14 TESTS 67 93 9523200 2400
26811847 cabinfever C May 3, 2017, 3:05 a.m. OK GNU C++14 TESTS 67 93 9728000 2400
26446537 I_love_tigersugar C April 17, 2017, 5:48 a.m. OK GNU C++14 TESTS 67 93 10752000 2400
38318684 DeadPillow C May 16, 2018, 11:26 a.m. OK GNU C++14 TESTS 67 93 11468800 2400
49489857 chinmay0906 C Feb. 5, 2019, 9 a.m. OK GNU C++17 TESTS 67 108 8806400 2400
55426909 hongzhiyin C June 11, 2019, 9:28 a.m. OK GNU C++17 TESTS 67 108 9625600 2400
54806038 hjk1030 C May 29, 2019, 2:12 p.m. OK GNU C++17 TESTS 67 109 7168000 2400
58740206 senthil28 C Aug. 13, 2019, 3:31 p.m. OK GNU C++17 TESTS 67 109 8396800 2400
49046396 somebody_else C Jan. 27, 2019, 8:59 a.m. OK GNU C++17 TESTS 67 109 8601600 2400
58604779 jzh817 C Aug. 11, 2019, 1:45 p.m. OK GNU C++17 TESTS 67 124 3174400 2400
69466155 ImForbiddenToSayILoveYou C Jan. 24, 2020, 12:56 p.m. OK GNU C++17 TESTS 67 124 6963200 2400
48987171 vjudge1 C Jan. 26, 2019, 12:50 p.m. OK GNU C++17 TESTS 67 124 7680000 2400
57619111 kongroo C July 24, 2019, 3:25 a.m. OK GNU C++17 TESTS 67 124 8396800 2400
49046408 vjudge5 C Jan. 27, 2019, 8:59 a.m. OK GNU C++17 TESTS 67 124 8396800 2400
69496155 ngfam C Jan. 25, 2020, 4:06 a.m. OK Java 11 TESTS 67 343 16076800 2400
26437138 Sinner C April 16, 2017, 7:06 p.m. OK Java 8 TESTS 67 265 34611200 2400
26457019 alexyz C April 17, 2017, 2:12 p.m. OK Java 8 TESTS 67 358 36761600 2400
26433017 WiBk alex700 C April 16, 2017, 5:22 p.m. OK Java 8 TESTS 67 405 40243200 2400
29837207 mualanhlung017 C Aug. 28, 2017, 1:59 a.m. OK Java 8 TESTS 67 436 4915200 2400
26428521 VArtem Aksenov239 C April 16, 2017, 4:36 p.m. OK Java 8 TESTS 67 498 36864000 2400
26435264 antonkov C April 16, 2017, 6:46 p.m. OK Java 8 TESTS 67 764 67174400 2400
26460379 shalamanov.marin C April 17, 2017, 4:53 p.m. OK Java 8 TESTS 67 982 61235200 2400
26431934 TonySnark C April 16, 2017, 5:10 p.m. OK MS C++ TESTS 67 124 11468800 2400
26433832 Madball Programmer007 C April 16, 2017, 5:30 p.m. OK MS C++ TESTS 67 234 18944000 2400
26451896 Iriskinn C April 17, 2017, 10:37 a.m. OK MS C++ TESTS 67 265 24576000 2400
26483028 TheConfessor C April 18, 2017, 7:25 p.m. OK MS C++ TESTS 67 280 9728000 2400
26430331 nikgaevoy gnomina007 C April 16, 2017, 4:53 p.m. OK MS C++ TESTS 67 436 13414400 2400

remove filters

Back to search problems