Codeforces Round 259 (Div. 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
453 Codeforces Round 259 (Div. 1) FINISHED False 7200 330705004 Aug. 1, 2014, 3:30 p.m.

Problems

Solved$
Index
Name
Type
Tags
Community Tag
Rating
( 472 ) D Little Pony and Elements of Harmony PROGRAMMING dp matrices 2900

B'The Elements of Harmony are six supernatural artifacts representing subjective aspects of harmony. They are arguably the most powerful force in Equestria. The inside of Elements of Harmony can be seen as a complete graph with n vertices labeled from 0 to n xe2 x80 x89- xe2 x80 x891, where n is a power of two, equal to 2m. The energy in Elements of Harmony is in constant movement. According to the ancient book, the energy of vertex u in time i (ei[u]) equals to: Here b[] is the transformation coefficient -- an array of m xe2 x80 x89+ xe2 x80 x891 integers and f(u, xe2 x80 x89v) is the number of ones in the binary representation of number (u xor v). Given the transformation coefficient and the energy distribution at time 0 (e0[]). Help Twilight Sparkle predict the energy distribution at time t (et[]). The answer can be quite large, so output it modulo p. The first line contains three integers m, t and p (1 xe2 x80 x89 xe2 x89 xa4 xe2 x80 x89m xe2 x80 x89 xe2 x89 xa4 xe2 x80 x8920; 0 xe2 x80 x89 xe2 x89 xa4 xe2 x80 x89t xe2 x80 x89 xe2 x89 xa4 xe2 x80 x891018; 2 xe2 x80 x89 xe2 x89 xa4 xe2 x80 x89p xe2 x80 x89 xe2 x89 xa4 xe2 x80 x89109). The following line contains n (n xe2 x80 x89= xe2 x80 x892m) integers e0[i] (1 xe2 x80 x89 xe2 x89 xa4 xe2 x80 x89e0[i] xe2 x80 x89 xe2 x89 xa4 xe2 x80 x89109; 0 xe2 x80 x89 xe2 x89 xa4 xe2 x80 x89i xe2 x80 x89< xe2 x80 x89n). The next line contains m xe2 x80 x89+ xe2 x80 x891 integers b[i] (0 xe2 x80 x89 xe2 x89 xa4 xe2 x80 x89b[i] xe2 x80 x89 xe2 x89 xa4 xe2 x80 x89109; 0 xe2 x80 x89 xe2 x89 xa4 xe2 x80 x89i xe2 x80 x89 xe2 x89 xa4 xe2 x80 x89m). Output n lines, the i-th line must contain a single integer et[i] modulo p.'...

Tutorials

Codeforces Round #259 Editorial

Submissions

Submission Id
Author(s)
Index
Submitted
Verdict
Language
Test Set
Tests Passed
Time taken (ms)
Memory Consumed (bytes)
Tags
Rating
7352888 hos.lyric D Aug. 5, 2014, 1:26 p.m. OK D TESTS 25 2885 228147200 2900
7320219 weizhaohui D Aug. 1, 2014, 6:04 p.m. OK FPC TESTS 25 5318 176537600 2900
42147598 Scut82 D Aug. 27, 2018, 9:53 a.m. OK GNU C++ TESTS 25 857 12595200 2900
13220396 woyeshizuile D Sept. 25, 2015, 2:34 p.m. OK GNU C++ TESTS 25 857 16793600 2900
7734405 apia D Sept. 10, 2014, 11:37 a.m. OK GNU C++ TESTS 25 872 16793600 2900
7927840 Nanaya D Sept. 23, 2014, 2:29 p.m. OK GNU C++ TESTS 25 873 16793600 2900
7927871 Nanaya D Sept. 23, 2014, 2:32 p.m. OK GNU C++ TESTS 25 904 16793600 2900
7928177 Nanaya D Sept. 23, 2014, 3:03 p.m. OK GNU C++ TESTS 25 935 16793600 2900
7355820 aaaaajack D Aug. 5, 2014, 8:24 p.m. OK GNU C++ TESTS 25 1138 96665600 2900
7320982 ainu7 D Aug. 1, 2014, 6:24 p.m. OK GNU C++ TESTS 25 1326 96665600 2900
7928237 Nanaya D Sept. 23, 2014, 3:10 p.m. OK GNU C++ TESTS 25 1387 48025600 2900
7928280 Nanaya D Sept. 23, 2014, 3:16 p.m. OK GNU C++ TESTS 25 1404 48025600 2900
10233658 Remilia-Scarlet D March 11, 2015, 5:49 a.m. OK GNU C++0x TESTS 25 733 16793600 2900
10233654 Remilia-Scarlet D March 11, 2015, 5:47 a.m. OK GNU C++0x TESTS 25 733 16793600 2900
10233628 Remilia-Scarlet D March 11, 2015, 5:40 a.m. OK GNU C++0x TESTS 25 873 16793600 2900
10233602 Remilia-Scarlet D March 11, 2015, 5:35 a.m. OK GNU C++0x TESTS 25 873 16793600 2900
10233578 Remilia-Scarlet D March 11, 2015, 5:30 a.m. OK GNU C++0x TESTS 25 1622 16793600 2900
10233558 Remilia-Scarlet D March 11, 2015, 5:25 a.m. OK GNU C++0x TESTS 25 1622 16793600 2900
10233549 Remilia-Scarlet D March 11, 2015, 5:22 a.m. OK GNU C++0x TESTS 25 1653 16793600 2900
10233545 Remilia-Scarlet D March 11, 2015, 5:21 a.m. OK GNU C++0x TESTS 25 1918 16793600 2900
7727170 mruxim D Sept. 9, 2014, 10:11 a.m. OK GNU C++0x TESTS 25 1934 88268800 2900
7677324 desert97 D Sept. 3, 2014, 7:48 p.m. OK GNU C++0x TESTS 25 1965 184934400 2900
55293541 RedStar_13 D June 8, 2019, 8:50 a.m. OK GNU C++11 TESTS 25 655 12595200 2900
55297033 RedStar_13 D June 8, 2019, 10:20 a.m. OK GNU C++11 TESTS 25 670 67276800 2900
40988172 ReaLNero1 D July 30, 2018, 9:47 p.m. OK GNU C++11 TESTS 25 733 16793600 2900
17874588 RNS3 D May 12, 2016, 11:36 a.m. OK GNU C++11 TESTS 25 764 19046400 2900
17874579 RNS3 D May 12, 2016, 11:35 a.m. OK GNU C++11 TESTS 25 826 19046400 2900
18258107 Lweb D June 5, 2016, 2:28 p.m. OK GNU C++11 TESTS 25 982 31641600 2900
46577025 zhouyuheng D Dec. 4, 2018, 9:15 a.m. OK GNU C++11 TESTS 25 1028 20889600 2900
46576740 zhouyuheng D Dec. 4, 2018, 9:07 a.m. OK GNU C++11 TESTS 25 1045 20889600 2900
13141116 zyeric D Sept. 22, 2015, 1:14 p.m. OK GNU C++11 TESTS 25 1076 16793600 2900
14225520 woyeshizuile D Nov. 13, 2015, 11:26 a.m. OK GNU C++11 TESTS 25 1388 16793600 2900
34578612 bonfire D Jan. 26, 2018, 2:33 p.m. OK GNU C++14 TESTS 25 1107 22937600 2900
21003006 SakurakoujiRuna D Sept. 29, 2016, 9 p.m. OK GNU C++14 TESTS 25 1122 25395200 2900
21003110 SakurakoujiRuna D Sept. 29, 2016, 9:08 p.m. OK GNU C++14 TESTS 25 1169 25395200 2900
32820417 cyz666 D Dec. 1, 2017, 3:33 a.m. OK GNU C++14 TESTS 25 1263 22937600 2900
32820402 cyz666 D Dec. 1, 2017, 3:31 a.m. OK GNU C++14 TESTS 25 1309 22937600 2900
67269923 ElangBondol D Dec. 20, 2019, 7:45 a.m. OK GNU C++14 TESTS 25 1403 25497600 2900
56640904 Scut82 D July 7, 2019, 1:36 a.m. OK GNU C++14 TESTS 25 1778 33587200 2900
47796671 .ckodser. D Dec. 31, 2018, 5:38 p.m. OK GNU C++14 TESTS 25 2246 185036800 2900
38790042 kazuma D May 31, 2018, 4:42 a.m. OK GNU C++14 TESTS 25 2308 20172800 2900
38934613 kazuma D June 4, 2018, 5:09 a.m. OK GNU C++14 TESTS 25 2339 20172800 2900
66203140 AliShahali1382 D Dec. 2, 2019, 11:05 p.m. OK GNU C++17 TESTS 25 1106 96665600 2900
67122048 karafs D Dec. 17, 2019, 6:37 p.m. OK GNU C++17 TESTS 25 1122 96665600 2900
66203149 AliShahali1382 D Dec. 2, 2019, 11:06 p.m. OK GNU C++17 TESTS 25 1185 96665600 2900
66203145 AliShahali1382 D Dec. 2, 2019, 11:05 p.m. OK GNU C++17 TESTS 25 1185 96665600 2900
69209671 AlexLuchianov D Jan. 20, 2020, 7:24 p.m. OK GNU C++17 TESTS 25 1372 181043200 2900
66203121 AliShahali1382 D Dec. 2, 2019, 11:03 p.m. OK GNU C++17 TESTS 25 1934 96665600 2900
66203067 AliShahali1382 D Dec. 2, 2019, 10:59 p.m. OK GNU C++17 TESTS 25 2074 96665600 2900
47800053 dorostmishe D Dec. 31, 2018, 9:23 p.m. OK GNU C++17 TESTS 25 2292 238182400 2900
66203014 AliShahali1382 D Dec. 2, 2019, 10:55 p.m. OK GNU C++17 TESTS 25 2354 184934400 2900
66203111 AliShahali1382 D Dec. 2, 2019, 11:02 p.m. OK GNU C++17 TESTS 25 2496 96665600 2900
7317194 Petr D Aug. 1, 2014, 4:54 p.m. OK Java 7 TESTS 25 3026 131686400 2900
19012669 DEGwer D July 10, 2016, 3:58 p.m. OK MS C++ TESTS 25 5771 195584000 2900

remove filters

Back to search problems