Educational Codeforces Round 57 (Rated for Div. 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
1096 Educational Codeforces Round 57 (Rated for Div. 2) FINISHED False 7200 191431487 Dec. 28, 2018, 2:35 p.m.

Problems

Solved$
Index
Name
Type
Tags
Community Tag
Rating
( 1535 ) G Lucky Tickets PROGRAMMING divide and conquer dp fft 2400

B'All bus tickets in Berland have their numbers. A number consists of n digits ( n is even). Only k decimal digits d_1, d_2, ... , d_k can be used to form ticket numbers. If 0 is among these digits, then numbers may have leading zeroes. For example, if n = 4 and only digits 0 and 4 can be used, then 0000 , 4004 , 4440 are valid ticket numbers, and 0002 , 00 , 44443 are not. A ticket is lucky if the sum of first n / 2 digits is equal to the sum of remaining n / 2 digits. Calculate the number of different lucky tickets in Berland. Since the answer may be big, print it modulo 998244353 . The first line contains two integers n and k (2 <= n <= 2 cdot 10^5, 1 <= k <= 10) -- the number of digits in each ticket number, and the number of different decimal digits that may be used. n is even. The second line contains a sequence of pairwise distinct integers d_1, d_2, ... , d_k (0 <= d_i <= 9) -- the digits that may be used in ticket numbers. The digits are given in arbitrary order. Print the number of lucky ticket numbers, taken modulo 998244353 . In the first example there are 6 lucky ticket numbers: 1111 , 1818 , 1881 , 8118 , 8181 and 8888 . There is only one ticket number in the second example, it consists of 20 digits 6 . This ticket number is lucky, so the answer is 1 . '...

Tutorials

Разбор Educational Codeforces Round 57

Submissions

Submission Id
Author(s)
Index
Submitted
Verdict
Language
Test Set
Tests Passed
Time taken (ms)
Memory Consumed (bytes)
Tags
Rating
47965729 Faimerth G Jan. 5, 2019, 12:01 p.m. OK GNU C11 TESTS 114 327 33177600 2400
55267535 rainboy G June 7, 2019, 2:33 p.m. OK GNU C11 TESTS 114 889 4198400 2400
47672523 Emma194 G Dec. 29, 2018, 7:01 a.m. OK GNU C++11 TESTS 114 312 14438400 2400
47726294 zhuwanman G Dec. 30, 2018, 2:26 p.m. OK GNU C++11 TESTS 114 390 32051200 2400
47793605 HornyIndian G Dec. 31, 2018, 3:06 p.m. OK GNU C++11 TESTS 114 390 32051200 2400
57867507 lopare G July 27, 2019, 10:18 p.m. OK GNU C++11 TESTS 114 421 16076800 2400
57734351 py_ultron G July 25, 2019, 9:29 a.m. OK GNU C++11 TESTS 114 421 16076800 2400
47898166 skip1978 G Jan. 4, 2019, 12:13 p.m. OK GNU C++11 TESTS 114 436 49356800 2400
61055785 ytxytx G Sept. 22, 2019, 8:01 a.m. OK GNU C++11 TESTS 114 436 64102400 2400
47644986 Castor G Dec. 28, 2018, 3:45 p.m. OK GNU C++11 TESTS 114 452 12697600 2400
49180619 maxtir G Jan. 30, 2019, 1:19 a.m. OK GNU C++11 TESTS 114 452 25190400 2400
47893952 tritanngo99 G Jan. 4, 2019, 8:56 a.m. OK GNU C++11 TESTS 114 468 16076800 2400
51447217 yasugongshang G March 18, 2019, 1:03 p.m. OK GNU C++14 TESTS 114 155 144281600 2400
47700940 neal G Dec. 29, 2018, 4:38 p.m. OK GNU C++14 TESTS 114 280 28262400 2400
47708729 neal G Dec. 29, 2018, 11:49 p.m. OK GNU C++14 TESTS 114 280 28262400 2400
47703016 neal G Dec. 29, 2018, 6:05 p.m. OK GNU C++14 TESTS 114 280 28262400 2400
47800221 lucasturci G Dec. 31, 2018, 9:39 p.m. OK GNU C++14 TESTS 114 295 16076800 2400
47672367 neal G Dec. 29, 2018, 6:56 a.m. OK GNU C++14 TESTS 114 296 28262400 2400
47724632 Quang G Dec. 30, 2018, 1:32 p.m. OK GNU C++14 TESTS 114 311 17305600 2400
47724062 Quang G Dec. 30, 2018, 1:12 p.m. OK GNU C++14 TESTS 114 311 23347200 2400
47708522 neal G Dec. 29, 2018, 11:26 p.m. OK GNU C++14 TESTS 114 312 12595200 2400
47792544 MakeIndiaGreat G Dec. 31, 2018, 2:23 p.m. OK GNU C++14 TESTS 114 327 14438400 2400
47721676 moss3s G Dec. 30, 2018, 11:40 a.m. OK GNU C++17 TESTS 114 78 3584000 2400
47721479 moss3s G Dec. 30, 2018, 11:33 a.m. OK GNU C++17 TESTS 114 93 3584000 2400
48654399 ReaLNero1 G Jan. 21, 2019, 1:31 a.m. OK GNU C++17 TESTS 114 93 3584000 2400
47667480 FizzyDavid G Dec. 29, 2018, 2:27 a.m. OK GNU C++17 TESTS 114 109 10854400 2400
47667313 FizzyDavid G Dec. 29, 2018, 2:15 a.m. OK GNU C++17 TESTS 114 124 21606400 2400
47955796 cjnwq G Jan. 5, 2019, 6:02 a.m. OK GNU C++17 TESTS 114 264 21913600 2400
49642239 PauloMiranda98 G Feb. 8, 2019, 11:28 p.m. OK GNU C++17 TESTS 114 295 12595200 2400
49642309 PauloMiranda98 G Feb. 8, 2019, 11:33 p.m. OK GNU C++17 TESTS 114 295 12595200 2400
49642336 PauloMiranda98 G Feb. 8, 2019, 11:36 p.m. OK GNU C++17 TESTS 114 311 12595200 2400
47939310 kuppadapumadhu G Jan. 4, 2019, 5:07 p.m. OK GNU C++17 TESTS 114 358 32358400 2400
48782500 tmwilliamlin168 G Jan. 23, 2019, 7:23 a.m. OK Java 8 TESTS 114 1107 16281600 2400
55267525 Dukkha G June 7, 2019, 2:32 p.m. OK Java 8 TESTS 114 1544 0 2400
47789624 Morgan_Y G Dec. 31, 2018, 12:39 p.m. OK Java 8 TESTS 114 1606 6246400 2400
47829667 iakovlev.zakhar G Jan. 2, 2019, 5:26 a.m. OK Java 8 TESTS 114 1746 57446400 2400
48645217 indy256 G Jan. 20, 2019, 5:08 p.m. OK Java 8 TESTS 114 1855 250060800 2400
47667428 Intrincantation G Dec. 29, 2018, 2:22 a.m. OK Java 8 TESTS 114 1949 16998400 2400
48645270 indy256 G Jan. 20, 2019, 5:09 p.m. OK Java 8 TESTS 114 2089 180224000 2400
47668052 Intrincantation G Dec. 29, 2018, 3:07 a.m. OK Java 8 TESTS 114 2090 18636800 2400
47789072 Morgan_Y G Dec. 31, 2018, 12:21 p.m. OK Java 8 TESTS 114 2106 16384000 2400
47650147 uwi G Dec. 28, 2018, 4:12 p.m. OK Java 8 TESTS 114 2168 59289600 2400
47721157 moss3s G Dec. 30, 2018, 11:21 a.m. OK Kotlin TESTS 114 295 8908800 2400
48156255 peregrinus G Jan. 9, 2019, 5:18 p.m. OK Mono C# TESTS 114 920 84070400 2400
48156387 peregrinus G Jan. 9, 2019, 5:21 p.m. OK Mono C# TESTS 114 1107 92672000 2400
48100437 peregrinus G Jan. 8, 2019, 8:08 p.m. OK Mono C# TESTS 114 1403 158310400 2400
58314948 vjudge5 G Aug. 5, 2019, 2:22 a.m. OK MS C++ TESTS 114 920 32051200 2400
61404679 vjudge5 G Sept. 28, 2019, 6:37 a.m. OK MS C++ TESTS 114 936 14438400 2400
47679441 TiwAirOAO G Dec. 29, 2018, 11:16 a.m. OK MS C++ TESTS 114 997 14438400 2400
54514531 vjudge4 G May 23, 2019, 9:04 a.m. OK MS C++ TESTS 114 1684 88166400 2400
63388186 vjudge3 G Oct. 25, 2019, 2:23 p.m. OK MS C++ TESTS 114 1793 50483200 2400
59767556 siwei G Aug. 30, 2019, 6:38 p.m. OK MS C++ 2017 TESTS 114 2839 134553600 2400
59732803 siwei G Aug. 30, 2019, 3:19 p.m. OK MS C++ 2017 TESTS 114 2854 134553600 2400
59710191 siwei G Aug. 30, 2019, 2:21 p.m. OK MS C++ 2017 TESTS 114 3619 134553600 2400
50802000 c1729 G March 5, 2019, 12:55 a.m. OK PyPy 2 TESTS 114 358 8601600 2400
50801813 c1729 G March 5, 2019, 12:39 a.m. OK PyPy 2 TESTS 114 358 8601600 2400
51057716 pajenegod G March 9, 2019, 12:30 a.m. OK PyPy 2 TESTS 114 764 18636800 2400
50873087 pajenegod G March 6, 2019, 3:54 a.m. OK PyPy 2 TESTS 114 826 18329600 2400
50873235 pajenegod G March 6, 2019, 4:02 a.m. OK PyPy 2 TESTS 114 841 18329600 2400
50821202 pajenegod G March 5, 2019, 1:37 p.m. OK PyPy 2 TESTS 114 873 18227200 2400
50818741 pajenegod G March 5, 2019, 12:38 p.m. OK PyPy 2 TESTS 114 888 18329600 2400
50818011 pajenegod G March 5, 2019, 12:21 p.m. OK PyPy 2 TESTS 114 888 18329600 2400
50897302 pajenegod G March 6, 2019, 3:41 p.m. OK PyPy 2 TESTS 114 889 15974400 2400
50816646 pajenegod G March 5, 2019, 11:48 a.m. OK PyPy 2 TESTS 114 967 18329600 2400
47677353 Dmitriy.Belichenko G Dec. 29, 2018, 10 a.m. OK PyPy 3 TESTS 114 2230 110899200 2400
50804954 meooow G March 5, 2019, 4:32 a.m. OK PyPy 3 TESTS 114 2245 36966400 2400
63680634 sansen G Oct. 28, 2019, 7:50 p.m. OK Rust TESTS 114 779 4198400 2400
47673213 kobae964 G Dec. 29, 2018, 7:28 a.m. OK Rust TESTS 114 826 8704000 2400
47672175 kobae964 G Dec. 29, 2018, 6:49 a.m. OK Rust TESTS 114 826 25497600 2400
47672072 kobae964 G Dec. 29, 2018, 6:44 a.m. OK Rust TESTS 114 842 25497600 2400
47672340 kobae964 G Dec. 29, 2018, 6:54 a.m. OK Rust TESTS 114 857 8704000 2400
47644486 kobae964 G Dec. 28, 2018, 3:43 p.m. OK Rust TESTS 114 873 33894400 2400
63680177 sansen G Oct. 28, 2019, 7:41 p.m. OK Rust TESTS 114 1591 8396800 2400
47673038 kobae964 G Dec. 29, 2018, 7:20 a.m. OK Rust TESTS 114 3447 33894400 2400
47672790 kobae964 G Dec. 29, 2018, 7:11 a.m. OK Rust TESTS 114 3447 33894400 2400
47672373 kobae964 G Dec. 29, 2018, 6:56 a.m. OK Rust TESTS 114 3478 33894400 2400

remove filters

Back to search problems