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 |
---|---|---|---|---|---|---|
1051 | Educational Codeforces Round 51 (Rated for Div. 2) | FINISHED | False | 7200 | 199984487 | Sept. 20, 2018, 2:45 p.m. |
Solved$ |
Index |
Name |
Type |
Tags |
Community Tag |
Rating |
---|---|---|---|---|---|---|
( 998 ) | E | Vasya and Big Integers | PROGRAMMING | binary search data structures dp hashing strings | 2500 |
B'Vasya owns three big integers -- a, l, r . Let 's define a partition of x such a sequence of strings s_1, s_2, ... , s_k that s_1 + s_2 + ... + s_k = x , where + is a concatanation of strings. s_i is the i -th element of the partition. For example, number 12345 has the following partitions: ["1", "2", "3", "4", "5"], ["123", "4", "5"], ["1", "2345"], ["12345"] and lots of others. Let 's call some partition of a beautiful if each of its elements contains no leading zeros. Vasya want to know the number of beautiful partitions of number a , which has each of s_i satisfy the condition l <= s_i <= r . Note that the comparison is the integer comparison, not the string one. Help Vasya to count the amount of partitions of number a such that they match all the given requirements. The result can be rather big, so print it modulo 998244353 . The first line contains a single integer a~(1 <= a <= 10^{1000000}) . The second line contains a single integer l~(0 <= l <= 10^{1000000}) . The third line contains a single integer r~(0 <= r <= 10^{1000000}) . It is guaranteed that l <= r . It is also guaranteed that numbers a, l, r contain no leading zeros. Print a single integer -- the amount of partitions of number a such that they match all the given requirements modulo 998244353 . In the first test case, there are two good partitions 13+5 and 1+3+5 . In the second test case, there is one good partition 1+0+0+0+0 . '... |
Educational Codeforces Round 51 Editorial |
Submission Id |
Author(s) |
Index |
Submitted |
Verdict |
Language |
Test Set |
Tests Passed |
Time taken (ms) |
Memory Consumed (bytes) |
Tags |
Rating |
---|---|---|---|---|---|---|---|---|---|---|---|
67662031 | rainboy | E | Dec. 26, 2019, 4:14 p.m. | OK | GNU C11 | TESTS | 89 | 46 | 25088000 | 2500 | |
43686257 | ivan991015 | E | Oct. 2, 2018, 12:26 p.m. | OK | GNU C11 | TESTS | 89 | 670 | 45363200 | 2500 | |
45681537 | khoadcmnd2005 | E | Nov. 13, 2018, 3:38 p.m. | OK | GNU C++11 | TESTS | 89 | 46 | 30105600 | 2500 | |
44069004 | luogu_bot3 | E | Oct. 10, 2018, 11:02 a.m. | OK | GNU C++11 | TESTS | 89 | 46 | 33075200 | 2500 | |
46200602 | Vixbob | E | Nov. 25, 2018, 11:07 a.m. | OK | GNU C++11 | TESTS | 89 | 46 | 38092800 | 2500 | |
47256395 | zjp_shadow | E | Dec. 19, 2018, 10:37 a.m. | OK | GNU C++11 | TESTS | 89 | 61 | 19046400 | 2500 | |
43591132 | CMXRYNP | E | Sept. 30, 2018, 1:58 a.m. | OK | GNU C++11 | TESTS | 89 | 61 | 22835200 | 2500 | |
52678666 | Scut82 | E | April 13, 2019, 11:05 a.m. | OK | GNU C++11 | TESTS | 89 | 61 | 27033600 | 2500 | |
49884654 | khaled.farouk_2 | E | Feb. 13, 2019, 8:18 p.m. | OK | GNU C++11 | TESTS | 89 | 61 | 30105600 | 2500 | |
57736558 | py_ultron | E | July 25, 2019, 10:07 a.m. | OK | GNU C++11 | TESTS | 89 | 61 | 30105600 | 2500 | |
57868442 | lopare | E | July 27, 2019, 11:15 p.m. | OK | GNU C++11 | TESTS | 89 | 61 | 30105600 | 2500 | |
48197786 | rodz | E | Jan. 11, 2019, 1:22 a.m. | OK | GNU C++11 | TESTS | 89 | 61 | 37171200 | 2500 | |
46740628 | Annie2212 | E | Dec. 8, 2018, 1:59 a.m. | OK | GNU C++14 | TESTS | 89 | 46 | 30105600 | 2500 | |
46740621 | Annie2212 | E | Dec. 8, 2018, 1:58 a.m. | OK | GNU C++14 | TESTS | 89 | 61 | 19046400 | 2500 | |
62518473 | luogu_bot4 | E | Oct. 13, 2019, 3:02 p.m. | OK | GNU C++14 | TESTS | 89 | 61 | 19046400 | 2500 | |
62518413 | dsl2002 | E | Oct. 13, 2019, 3:01 p.m. | OK | GNU C++14 | TESTS | 89 | 61 | 19046400 | 2500 | |
53434512 | TadijaSebez | E | April 27, 2019, 6:18 p.m. | OK | GNU C++14 | TESTS | 89 | 61 | 23040000 | 2500 | |
43289489 | 1470519347 | E | Sept. 23, 2018, 10:01 a.m. | OK | GNU C++14 | TESTS | 89 | 61 | 25292800 | 2500 | |
46728980 | Annie2212 | E | Dec. 7, 2018, 4:29 p.m. | OK | GNU C++14 | TESTS | 89 | 61 | 34099200 | 2500 | |
43284628 | _no0B | E | Sept. 23, 2018, 7:36 a.m. | OK | GNU C++14 | TESTS | 89 | 62 | 19046400 | 2500 | |
44751510 | ReaLNero1 | E | Oct. 23, 2018, 8:12 p.m. | OK | GNU C++14 | TESTS | 89 | 62 | 25088000 | 2500 | |
43242664 | endereye | E | Sept. 22, 2018, 10:40 a.m. | OK | GNU C++14 | TESTS | 89 | 62 | 25292800 | 2500 | |
47602252 | vjudge5 | E | Dec. 28, 2018, 12:37 a.m. | OK | GNU C++17 | TESTS | 89 | 62 | 23040000 | 2500 | |
47602218 | zhongyuwei | E | Dec. 28, 2018, 12:34 a.m. | OK | GNU C++17 | TESTS | 89 | 62 | 23040000 | 2500 | |
69394882 | ImForbiddenToSayILoveYou | E | Jan. 23, 2020, 5:46 a.m. | OK | GNU C++17 | TESTS | 89 | 62 | 26112000 | 2500 | |
43157133 | xsc | E | Sept. 20, 2018, 8:43 p.m. | OK | GNU C++17 | TESTS | 89 | 62 | 27340800 | 2500 | |
43152077 | roman.kolganov | E | Sept. 20, 2018, 5:53 p.m. | OK | GNU C++17 | TESTS | 89 | 62 | 27443200 | 2500 | |
44544067 | wtf | E | Oct. 19, 2018, 12:45 p.m. | OK | GNU C++17 | TESTS | 89 | 62 | 27648000 | 2500 | |
43151935 | roman.kolganov | E | Sept. 20, 2018, 5:49 p.m. | OK | GNU C++17 | TESTS | 89 | 62 | 27750400 | 2500 | |
43633319 | Toosample | E | Oct. 1, 2018, 6:58 a.m. | OK | GNU C++17 | TESTS | 89 | 62 | 30412800 | 2500 | |
54524276 | ArshiaDadras | E | May 23, 2019, 1:44 p.m. | OK | GNU C++17 | TESTS | 89 | 62 | 30412800 | 2500 | |
50813008 | fdironia | E | March 5, 2019, 9:56 a.m. | OK | GNU C++17 | TESTS | 89 | 62 | 31334400 | 2500 | |
67662030 | Dukkha | E | Dec. 26, 2019, 4:14 p.m. | OK | Java 11 | TESTS | 89 | 343 | 23552000 | 2500 | |
45440801 | wadissimo | E | Nov. 8, 2018, 11:02 a.m. | OK | Java 8 | TESTS | 89 | 202 | 34611200 | 2500 | |
68667288 | dalt | E | Jan. 12, 2020, 3:35 p.m. | OK | Java 8 | TESTS | 89 | 233 | 85913600 | 2500 | |
43337333 | Suzukaze | E | Sept. 23, 2018, 4:15 p.m. | OK | Java 8 | TESTS | 89 | 249 | 40345600 | 2500 | |
43150940 | Suzukaze | E | Sept. 20, 2018, 5:24 p.m. | OK | Java 8 | TESTS | 89 | 249 | 40345600 | 2500 | |
43337381 | Suzukaze | E | Sept. 23, 2018, 4:18 p.m. | OK | Java 8 | TESTS | 89 | 264 | 40345600 | 2500 | |
43738705 | Jeel_Vaishnav | E | Oct. 3, 2018, 5:02 p.m. | OK | Java 8 | TESTS | 89 | 280 | 50790400 | 2500 | |
43155474 | vadimmm | E | Sept. 20, 2018, 7:37 p.m. | OK | Java 8 | TESTS | 89 | 327 | 17305600 | 2500 | |
43154143 | Nesrin | E | Sept. 20, 2018, 6:54 p.m. | OK | Java 8 | TESTS | 89 | 373 | 23859200 | 2500 | |
53004535 | Noureldin | E | April 19, 2019, 8:54 a.m. | OK | Java 8 | TESTS | 89 | 452 | 46387200 | 2500 | |
68664969 | dalt | E | Jan. 12, 2020, 2:49 p.m. | OK | Java 8 | TESTS | 89 | 888 | 159948800 | 2500 | |
43631528 | vjudge2 | E | Oct. 1, 2018, 5:46 a.m. | OK | MS C++ | TESTS | 89 | 77 | 29081600 | 2500 | |
43146563 | lxn | E | Sept. 20, 2018, 4:36 p.m. | OK | MS C++ | TESTS | 89 | 530 | 39219200 | 2500 | |
45864795 | vjudge2 | E | Nov. 17, 2018, 7:35 a.m. | OK | MS C++ | TESTS | 89 | 577 | 151347200 | 2500 | |
48654827 | Praxis | E | Jan. 21, 2019, 1:50 a.m. | OK | PyPy 3 | TESTS | 89 | 514 | 60416000 | 2500 | |
53016972 | CountZero | E | April 19, 2019, 2:36 p.m. | OK | Rust | TESTS | 89 | 62 | 27238400 | 2500 | |
65711790 | sansen | E | Nov. 25, 2019, 2:40 p.m. | OK | Rust | TESTS | 89 | 77 | 48332800 | 2500 |
Back to search problems