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
( 601 ) D Varying Kibibits PROGRAMMING bitmasks dp 2700

B'You are given n integers a1, xe2 x80 x89a2, xe2 x80 x89..., xe2 x80 x89an. Denote this list of integers as T. Let f(L) be a function that takes in a non-empty list of integers L. The function will output another integer as follows: For example f(10, xe2 x80 x899) xe2 x80 x89= xe2 x80 x890, f(123, xe2 x80 x89321) xe2 x80 x89= xe2 x80 x89121, f(530, xe2 x80 x89932, xe2 x80 x8981) xe2 x80 x89= xe2 x80 x8930. Define the function In other words, G(x) is the sum of squares of sum of elements of nonempty subsequences of T that evaluate to x when plugged into f modulo 1 xe2 x80 x89000 xe2 x80 x89000 xe2 x80 x89007, then multiplied by x. The last multiplication is not modded. You would like to compute G(0), xe2 x80 x89G(1), xe2 x80 x89..., xe2 x80 x89G(999 xe2 x80 x89999). To reduce the output size, print the value , where denotes the bitwise XOR operator. The first line contains the integer n (1 xe2 x80 x89 xe2 x89 xa4 xe2 x80 x89n xe2 x80 x89 xe2 x89 xa4 xe2 x80 x891 xe2 x80 x89000 xe2 x80 x89000) -- the size of list T. The next line contains n space-separated integers, a1, xe2 x80 x89a2, xe2 x80 x89..., xe2 x80 x89an (0 xe2 x80 x89 xe2 x89 xa4 xe2 x80 x89ai xe2 x80 x89 xe2 x89 xa4 xe2 x80 x89999 xe2 x80 x89999) -- the elements of the list. Output a single integer, the answer to the problem. For the first sample, the nonzero values of G are G(121) xe2 x80 x89= xe2 x80 x89144 xe2 x80 x89611 xe2 x80 x89577, G(123) xe2 x80 x89= xe2 x80 x8958 xe2 x80 x89401 xe2 x80 x89999, G(321) xe2 x80 x89= xe2 x80 x89279 xe2 x80 x89403 xe2 x80 x89857, G(555) xe2 x80 x89= xe2 x80 x89170 xe2 x80 x89953 xe2 x80 x89875. The bitwise XOR of these numbers is equal to 292 xe2 x80 x89711 xe2 x80 x89924. For example, , since the subsequences [123] and [123, xe2 x80 x89555] evaluate to 123 when plugged into f. For the second sample, we have For the last sample, we have , where is the binomial coefficient. '...

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
40982322 ReaLNero1 D July 30, 2018, 6:22 p.m. OK GNU C++ TESTS 69 234 20070400 2700
35782781 litble D Feb. 28, 2018, 11:39 a.m. OK GNU C++ TESTS 69 234 22118400 2700
42268970 luogu_bot3 D Aug. 30, 2018, 7:05 a.m. OK GNU C++ TESTS 69 249 19968000 2700
35777557 vjudge3 D Feb. 28, 2018, 7:48 a.m. OK GNU C++ TESTS 69 265 25907200 2700
35777278 TimeLimitExceed D Feb. 28, 2018, 7:37 a.m. OK GNU C++ TESTS 69 265 25907200 2700
27626441 jiyutian D June 7, 2017, 6:23 a.m. OK GNU C++ TESTS 69 296 19865600 2700
42268949 luogu_bot1 D Aug. 30, 2018, 7:05 a.m. OK GNU C++ TESTS 69 452 20070400 2700
42268951 luogu_bot2 D Aug. 30, 2018, 7:05 a.m. OK GNU C++ TESTS 69 467 20070400 2700
42268908 luogu_bot3 D Aug. 30, 2018, 7:03 a.m. OK GNU C++ TESTS 69 467 20070400 2700
27148856 black_horse2014 D May 16, 2017, 3:03 a.m. OK GNU C++ TESTS 69 483 20070400 2700
51418133 FlashHu D March 17, 2019, 3:06 p.m. OK GNU C++11 TESTS 69 171 16588800 2700
51299107 FlashHu D March 14, 2019, 1:38 p.m. OK GNU C++11 TESTS 69 217 16588800 2700
56776893 xielinhan D July 10, 2019, 3:15 a.m. OK GNU C++11 TESTS 69 217 19968000 2700
50739639 yybyyb D March 3, 2019, 2:41 p.m. OK GNU C++11 TESTS 69 218 24064000 2700
50787396 luogu_bot5 D March 4, 2019, 1:57 p.m. OK GNU C++11 TESTS 69 218 27852800 2700
50783698 cx233666 D March 4, 2019, 12:31 p.m. OK GNU C++11 TESTS 69 218 27852800 2700
50787298 luogu_bot3 D March 4, 2019, 1:55 p.m. OK GNU C++11 TESTS 69 234 24064000 2700
50736235 darkfire D March 3, 2019, 1:02 p.m. OK GNU C++11 TESTS 69 234 44134400 2700
51076938 207M D March 9, 2019, 9:41 a.m. OK GNU C++11 TESTS 69 249 20070400 2700
47260298 luogu_bot4 D Dec. 19, 2018, 12:06 p.m. OK GNU C++11 TESTS 69 249 20070400 2700
61904435 djq_fpc D Oct. 5, 2019, 9:21 a.m. OK GNU C++14 TESTS 69 483 20070400 2700
31937593 King_George D Nov. 1, 2017, 3:53 a.m. OK GNU C++14 TESTS 69 483 20070400 2700
27061878 toster1287 D May 12, 2017, 8:23 p.m. OK GNU C++14 TESTS 69 514 20070400 2700
27061867 the_art_of_war D May 12, 2017, 8:22 p.m. OK GNU C++14 TESTS 69 514 20070400 2700
26599965 apiadu D April 23, 2017, 9:22 a.m. OK GNU C++14 TESTS 69 514 22016000 2700
35766067 wfj_2048 D Feb. 27, 2018, 2:45 p.m. OK GNU C++14 TESTS 69 530 21913600 2700
54744017 NiroBC D May 28, 2019, 9:35 a.m. OK GNU C++14 TESTS 69 530 28057600 2700
59865614 Nson D Sept. 1, 2019, 5:02 p.m. OK GNU C++14 TESTS 69 545 60108800 2700
35766210 wfj_2048 D Feb. 27, 2018, 2:49 p.m. OK GNU C++14 TESTS 69 546 21913600 2700
61904115 djq_fpc D Oct. 5, 2019, 9:17 a.m. OK GNU C++14 TESTS 69 576 20070400 2700
54808074 hjk1030 D May 29, 2019, 3:16 p.m. OK GNU C++17 TESTS 69 390 16076800 2700
62083301 ivan100sic D Oct. 7, 2019, 10:41 p.m. OK GNU C++17 TESTS 69 436 24064000 2700
50572114 kefaa2 antontrygubO_o D Feb. 27, 2019, 3:59 p.m. OK GNU C++17 TESTS 69 498 44134400 2700
50643045 fcwww D March 1, 2019, 2:44 p.m. OK GNU C++17 TESTS 69 576 32051200 2700
50642373 fcwww D March 1, 2019, 2:27 p.m. OK GNU C++17 TESTS 69 654 32051200 2700
61245415 tfg D Sept. 24, 2019, 11:20 p.m. OK GNU C++17 TESTS 69 733 12083200 2700
62532609 Umi D Oct. 13, 2019, 8:08 p.m. OK GNU C++17 TESTS 69 1887 40140800 2700
49088542 patak D Jan. 28, 2019, 8:05 a.m. OK GNU C++17 TESTS 69 1918 32358400 2700
55838719 I_love_Kuroni D June 20, 2019, 4:46 p.m. OK GNU C++17 TESTS 69 2994 40038400 2700
26435926 VArtem D April 16, 2017, 6:52 p.m. OK Java 8 TESTS 69 2152 110899200 2700

remove filters

Back to search problems