VK Cup 2018 - Round 1

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
923 VK Cup 2018 - Round 1 FINISHED False 7200 211127099 March 10, 2018, 3:35 p.m.

Problems

Solved$
Index
Name
Type
Tags
Community Tag
Rating
( 455 ) E Perpetual Subtraction PROGRAMMING fft math matrices 3100

B'There is a number x initially written on a blackboard. You repeat the following action a fixed amount of times: Determine the distribution of final number given the distribution of initial number and the number of steps. The first line contains two integers, N (1 xe2 x80 x89 xe2 x89 xa4 xe2 x80 x89N xe2 x80 x89 xe2 x89 xa4 xe2 x80 x89105) -- the maximum number written on the blackboard -- and M (0 xe2 x80 x89 xe2 x89 xa4 xe2 x80 x89M xe2 x80 x89 xe2 x89 xa4 xe2 x80 x891018) -- the number of steps to perform. The second line contains N xe2 x80 x89+ xe2 x80 x891 integers P0, xe2 x80 x89P1, xe2 x80 x89..., xe2 x80 x89PN (0 xe2 x80 x89 xe2 x89 xa4 xe2 x80 x89Pi xe2 x80 x89< xe2 x80 x89998244353), where Pi describes the probability that the starting number is i. We can express this probability as irreducible fraction P xe2 x80 x89/ xe2 x80 x89Q, then . It is guaranteed that the sum of all Pis equals 1 (modulo 998244353). Output a single line of N xe2 x80 x89+ xe2 x80 x891 integers, where Ri is the probability that the final number after M steps is i. It can be proven that the probability may always be expressed as an irreducible fraction P xe2 x80 x89/ xe2 x80 x89Q. You are asked to output . In the first case, we start with number 2. After one step, it will be 0, 1 or 2 with probability 1/3 each. In the second case, the number will remain 2 with probability 1/9. With probability 1/9 it stays 2 in the first round and changes to 1 in the next, and with probability 1/6 changes to 1 in the first round and stays in the second. In all other cases the final integer is 0. '...

Tutorials

VK Cup 2018 Round 1 and CF Round #470 (div. 1 & 2) editorial

Submissions

Submission Id
Author(s)
Index
Submitted
Verdict
Language
Test Set
Tests Passed
Time taken (ms)
Memory Consumed (bytes)
Tags
Rating
36708208 yasugongshang E March 29, 2018, 3:18 a.m. OK GNU C++ TESTS 87 389 13414400 3100
36708110 yasugongshang E March 29, 2018, 3:06 a.m. OK GNU C++ TESTS 87 623 62668800 3100
36708095 yasugongshang E March 29, 2018, 3:04 a.m. OK GNU C++ TESTS 87 655 62668800 3100
53084988 luogu_bot1 E April 21, 2019, 8:30 a.m. OK GNU C++11 TESTS 87 218 7884800 3100
50426293 dtcxzyw E Feb. 24, 2019, 11:42 a.m. OK GNU C++11 TESTS 87 233 7168000 3100
49936631 Love_mona E Feb. 15, 2019, 7:34 a.m. OK GNU C++11 TESTS 87 234 10547200 3100
66809276 alpha1022 E Dec. 14, 2019, 12:46 a.m. OK GNU C++11 TESTS 87 265 11366400 3100
57946107 xgzc E July 29, 2019, 2:24 p.m. OK GNU C++11 TESTS 87 280 9420800 3100
47898364 weng_233 E Jan. 4, 2019, 12:24 p.m. OK GNU C++11 TESTS 87 295 6144000 3100
44172693 cor001 E Oct. 12, 2018, 6:56 a.m. OK GNU C++11 TESTS 87 296 8601600 3100
53110616 luogu_bot5 E April 22, 2019, 2:10 a.m. OK GNU C++11 TESTS 87 312 6553600 3100
53110601 daniel14311531 E April 22, 2019, 2:09 a.m. OK GNU C++11 TESTS 87 312 6553600 3100
69190422 Rubbish12345 E Jan. 20, 2020, 1:20 p.m. OK GNU C++11 TESTS 87 327 3993600 3100
46398171 yhx-12243 E Nov. 30, 2018, 10:51 a.m. OK GNU C++14 TESTS 87 218 23347200 3100
53085001 yybyyb E April 21, 2019, 8:30 a.m. OK GNU C++14 TESTS 87 249 7884800 3100
49936761 zsyzsy E Feb. 15, 2019, 7:38 a.m. OK GNU C++14 TESTS 87 264 9625600 3100
65743018 idxcalcal E Nov. 26, 2019, 11:07 a.m. OK GNU C++14 TESTS 87 280 9011200 3100
40978355 ReaLNero1 E July 30, 2018, 4:36 p.m. OK GNU C++14 TESTS 87 295 7884800 3100
56002084 Quang E June 24, 2019, 1:31 p.m. OK GNU C++14 TESTS 87 374 5632000 3100
36237125 apiadu E March 13, 2018, 1:32 a.m. OK GNU C++14 TESTS 87 374 10342400 3100
52888138 superguymj E April 17, 2019, 6:33 a.m. OK GNU C++14 TESTS 87 514 26009600 3100
36882874 jslijin E April 2, 2018, 3:44 p.m. OK GNU C++14 TESTS 87 530 36044800 3100
36209797 Rafbill E March 11, 2018, 8:09 p.m. OK GNU C++14 TESTS 87 654 12185600 3100
52291966 Trisolaris E April 4, 2019, 2:48 a.m. OK GNU C++17 TESTS 87 171 6656000 3100
54506558 Isonan E May 23, 2019, 4:22 a.m. OK GNU C++17 TESTS 87 295 27238400 3100
59134326 nickluo E Aug. 20, 2019, 12:08 p.m. OK GNU C++17 TESTS 87 311 8601600 3100
51847078 luogu_bot2 E March 26, 2019, 5:29 a.m. OK GNU C++17 TESTS 87 343 7168000 3100
51847018 luogu_bot5 E March 26, 2019, 5:27 a.m. OK GNU C++17 TESTS 87 358 7168000 3100
51847002 374272 E March 26, 2019, 5:26 a.m. OK GNU C++17 TESTS 87 358 7168000 3100
64188931 HyscereXD E Nov. 4, 2019, 6:46 a.m. OK GNU C++17 TESTS 87 374 24064000 3100
51844391 iftest614 E March 26, 2019, 2:53 a.m. OK GNU C++17 TESTS 87 420 6041600 3100
47685852 ivan100sic E Dec. 29, 2018, 2:45 p.m. OK GNU C++17 TESTS 87 499 6348800 3100
57985129 Fulisike E July 30, 2019, 11:06 a.m. OK GNU C++17 TESTS 87 1326 44953600 3100
36264646 gnomina007 E March 14, 2018, 4:33 a.m. OK MS C++ TESTS 87 1450 25190400 3100
36264616 gnomina007 E March 14, 2018, 4:29 a.m. OK MS C++ TESTS 87 1699 24371200 3100

remove filters

Back to search problems