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 |
---|---|---|---|---|---|---|
1065 | Educational Codeforces Round 52 (Rated for Div. 2) | FINISHED | False | 7200 | 192553799 | Oct. 11, 2018, 2:50 p.m. |
Solved$ |
Index |
Name |
Type |
Tags |
Community Tag |
Rating |
---|---|---|---|---|---|---|
( 1081 ) | E | Side Transmutations | PROGRAMMING | combinatorics strings | 2200 |
B'Consider some set of distinct characters A and some string S , consisting of exactly n characters, where each character is present in A . You are given an array of m integers b ( b_1 < b_2 < ... < b_m ). You are allowed to perform the following move on the string S : For example, let 's take a look at S = "abcdefghi" and k = 2 . Pr_2 = "ab", Su_2 = "hi". Reversed Pr_2 = "ba", Su_2 = "ih". Thus, the resulting S is "ihcdefgba". The move can be performed arbitrary number of times (possibly zero). Any i can be selected multiple times over these moves. Let 's call some strings S and T equal if and only if there exists such a sequence of moves to transmute string S to string T . For the above example strings "abcdefghi" and "ihcdefgba" are equal. Also note that this implies S = S . The task is simple. Count the number of distinct strings. The answer can be huge enough, so calculate it modulo 998244353 . The first line contains three integers n , m and |A| ( 2 <= n <= 10^9 , 1 <= m <= min( frac n 2, 2 cdot 10^5) , 1 <= |A| <= 10^9 ) -- the length of the strings, the size of the array b and the size of the set A , respectively. The second line contains m integers b_1, b_2, ... , b_m ( 1 <= b_i <= frac n 2 , b_1 < b_2 < ... < b_m ). Print a single integer -- the number of distinct strings of length n with characters from set A modulo 998244353 . Here are all the distinct strings for the first example. The chosen letters 'a ' and 'b ' are there just to show that the characters in A are different. '... |
Educational Codeforces Round 52 Editorial |
Submission Id |
Author(s) |
Index |
Submitted |
Verdict |
Language |
Test Set |
Tests Passed |
Time taken (ms) |
Memory Consumed (bytes) |
Tags |
Rating |
---|---|---|---|---|---|---|---|---|---|---|---|
44182309 | libra9z | E | Oct. 12, 2018, 11:49 a.m. | OK | GNU C11 | TESTS | 19 | 77 | 819200 | 2200 | |
49838231 | rainboy | E | Feb. 12, 2019, 5:09 p.m. | OK | GNU C11 | TESTS | 19 | 93 | 0 | 2200 | |
47100942 | ljnk975 | E | Dec. 16, 2018, 10:42 a.m. | OK | GNU C11 | TESTS | 19 | 218 | 1638400 | 2200 | |
47288405 | fks20011206 | E | Dec. 20, 2018, 7:42 a.m. | OK | GNU C++11 | TESTS | 19 | 46 | 614400 | 2200 | |
47288403 | luogu_bot1 | E | Dec. 20, 2018, 7:42 a.m. | OK | GNU C++11 | TESTS | 19 | 46 | 614400 | 2200 | |
44338537 | ErkkiErkko | E | Oct. 15, 2018, 12:38 a.m. | OK | GNU C++11 | TESTS | 19 | 46 | 819200 | 2200 | |
44256620 | Hany01 | E | Oct. 13, 2018, 12:34 p.m. | OK | GNU C++11 | TESTS | 19 | 61 | 819200 | 2200 | |
46428038 | LJC00118 | E | Dec. 1, 2018, 2:51 a.m. | OK | GNU C++11 | TESTS | 19 | 61 | 921600 | 2200 | |
44683520 | yasugongshang | E | Oct. 22, 2018, 8:06 a.m. | OK | GNU C++11 | TESTS | 19 | 61 | 1638400 | 2200 | |
44258482 | menjiantong | E | Oct. 13, 2018, 1:22 p.m. | OK | GNU C++11 | TESTS | 19 | 61 | 1638400 | 2200 | |
68340424 | vjudge3 | E | Jan. 7, 2020, 3:01 a.m. | OK | GNU C++11 | TESTS | 19 | 62 | 819200 | 2200 | |
68340405 | Lenstar | E | Jan. 7, 2020, 3:01 a.m. | OK | GNU C++11 | TESTS | 19 | 62 | 819200 | 2200 | |
44751254 | ReaLNero1 | E | Oct. 23, 2018, 8:03 p.m. | OK | GNU C++11 | TESTS | 19 | 62 | 819200 | 2200 | |
44178578 | remoon | E | Oct. 12, 2018, 10:04 a.m. | OK | GNU C++14 | TESTS | 19 | 78 | 819200 | 2200 | |
61971194 | Scut82 | E | Oct. 6, 2019, 9:08 a.m. | OK | GNU C++14 | TESTS | 19 | 93 | 0 | 2200 | |
44485593 | scy_666 | E | Oct. 18, 2018, 12:18 p.m. | OK | GNU C++14 | TESTS | 19 | 93 | 819200 | 2200 | |
44430914 | Grunt | E | Oct. 17, 2018, 7:35 a.m. | OK | GNU C++14 | TESTS | 19 | 93 | 819200 | 2200 | |
44174332 | tmwilliamlin168 | E | Oct. 12, 2018, 7:58 a.m. | OK | GNU C++14 | TESTS | 19 | 93 | 819200 | 2200 | |
45350171 | C1ariS | E | Nov. 6, 2018, 7:01 a.m. | OK | GNU C++14 | TESTS | 19 | 93 | 819200 | 2200 | |
47309304 | Shayan | E | Dec. 20, 2018, 6:41 p.m. | OK | GNU C++14 | TESTS | 19 | 93 | 819200 | 2200 | |
44149785 | buko | E | Oct. 11, 2018, 4:42 p.m. | OK | GNU C++14 | TESTS | 19 | 93 | 819200 | 2200 | |
45114279 | KhaleD_ | E | Oct. 30, 2018, 8:19 p.m. | OK | GNU C++14 | TESTS | 19 | 93 | 819200 | 2200 | |
48268186 | fedimser | E | Jan. 11, 2019, 10:11 p.m. | OK | GNU C++14 | TESTS | 19 | 93 | 1638400 | 2200 | |
51552644 | idxcalccalc | E | March 20, 2019, 2:13 a.m. | OK | GNU C++17 | TESTS | 19 | 62 | 1126400 | 2200 | |
44182618 | libra9z | E | Oct. 12, 2018, 11:57 a.m. | OK | GNU C++17 | TESTS | 19 | 62 | 1126400 | 2200 | |
44141520 | natsugiri | E | Oct. 11, 2018, 3:58 p.m. | OK | GNU C++17 | TESTS | 19 | 78 | 1024000 | 2200 | |
44353767 | TargetLocked | E | Oct. 15, 2018, 11:29 a.m. | OK | GNU C++17 | TESTS | 19 | 93 | 204800 | 2200 | |
44460232 | Chameleon2460 | E | Oct. 17, 2018, 8:03 p.m. | OK | GNU C++17 | TESTS | 19 | 93 | 204800 | 2200 | |
44731639 | congmingyige | E | Oct. 23, 2018, 10:53 a.m. | OK | GNU C++17 | TESTS | 19 | 93 | 204800 | 2200 | |
45242778 | F.J | E | Nov. 3, 2018, 12:24 p.m. | OK | GNU C++17 | TESTS | 19 | 93 | 307200 | 2200 | |
63968493 | Rabbittank | E | Nov. 1, 2019, 8:11 a.m. | OK | GNU C++17 | TESTS | 19 | 93 | 819200 | 2200 | |
67688110 | Pety | E | Dec. 27, 2019, 9:50 a.m. | OK | GNU C++17 | TESTS | 19 | 93 | 819200 | 2200 | |
45538768 | divyanshshukla13 | E | Nov. 10, 2018, 6:18 p.m. | OK | GNU C++17 | TESTS | 19 | 93 | 1024000 | 2200 | |
44205465 | Shaykhutdinov-T-I | E | Oct. 12, 2018, 3:37 p.m. | OK | Java 8 | TESTS | 19 | 217 | 2867200 | 2200 | |
49846720 | Dukkha | E | Feb. 12, 2019, 10:26 p.m. | OK | Java 8 | TESTS | 19 | 218 | 2969600 | 2200 | |
44150723 | Suzukaze | E | Oct. 11, 2018, 4:46 p.m. | OK | Java 8 | TESTS | 19 | 264 | 2867200 | 2200 | |
44146898 | iakovlev.zakhar | E | Oct. 11, 2018, 4:26 p.m. | OK | Java 8 | TESTS | 19 | 264 | 2867200 | 2200 | |
44157917 | PrakharJain | E | Oct. 11, 2018, 7:21 p.m. | OK | Java 8 | TESTS | 19 | 358 | 0 | 2200 | |
44153651 | t.yoshihara.ae | E | Oct. 11, 2018, 5:21 p.m. | OK | Java 8 | TESTS | 19 | 436 | 0 | 2200 | |
44491511 | vaibhavpulastya | E | Oct. 18, 2018, 2:40 p.m. | OK | Java 8 | TESTS | 19 | 701 | 2867200 | 2200 | |
44162679 | omikad | E | Oct. 11, 2018, 9:28 p.m. | OK | Mono C# | TESTS | 19 | 171 | 28364800 | 2200 | |
47526497 | peregrinus | E | Dec. 26, 2018, 4:11 p.m. | OK | Mono C# | TESTS | 19 | 186 | 95744000 | 2200 | |
44150220 | leign | E | Oct. 11, 2018, 4:44 p.m. | OK | Mono C# | TESTS | 19 | 421 | 18739200 | 2200 | |
44615376 | math957963 | E | Oct. 21, 2018, 12:40 a.m. | OK | MS C++ | TESTS | 19 | 93 | 0 | 2200 | |
44888459 | UminchuR | E | Oct. 26, 2018, 12:54 a.m. | OK | MS C++ | TESTS | 19 | 140 | 1638400 | 2200 | |
44157051 | r57shell | E | Oct. 11, 2018, 6:52 p.m. | OK | MS C++ | TESTS | 19 | 171 | 0 | 2200 | |
44611490 | onipp | E | Oct. 20, 2018, 8:12 p.m. | OK | MS C++ | TESTS | 19 | 249 | 819200 | 2200 | |
63775896 | pajenegod | E | Oct. 30, 2019, 9:31 a.m. | OK | PyPy 2 | TESTS | 19 | 217 | 13004800 | 2200 | |
44556004 | test616.cpp | E | Oct. 19, 2018, 5:17 p.m. | OK | PyPy 2 | TESTS | 19 | 592 | 13824000 | 2200 | |
44144881 | ItsLastDay | E | Oct. 11, 2018, 4:15 p.m. | OK | PyPy 2 | TESTS | 19 | 1045 | 13619200 | 2200 | |
44555996 | test616.cpp | E | Oct. 19, 2018, 5:16 p.m. | OK | Python 2 | TESTS | 19 | 1715 | 11059200 | 2200 | |
46921027 | whatshisbucket | E | Dec. 12, 2018, 4:51 a.m. | OK | Python 3 | TESTS | 19 | 967 | 16486400 | 2200 | |
44143289 | kobae964 | E | Oct. 11, 2018, 4:07 p.m. | OK | Rust | TESTS | 19 | 187 | 109875200 | 2200 |
Back to search problems