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 |
---|---|---|---|---|---|---|
1083 | Codeforces Round 526 (Div. 1) | FINISHED | False | 7200 | 192979487 | Dec. 10, 2018, 4:35 p.m. |
Solved$ |
Index |
Name |
Type |
Tags |
Community Tag |
Rating |
---|---|---|---|---|---|---|
( 1986 ) | B | The Fair Nut and Strings | PROGRAMMING | greedy strings | 2100 |
B'Recently, the Fair Nut has written k strings of length n , consisting of letters "a" and "b". He calculated c -- the number of strings that are prefixes of at least one of the written strings. Every string was counted only one time. Then, he lost his sheet with strings. He remembers that all written strings were lexicographically not smaller than string s and not bigger than string t . He is interested: what is the maximum value of c that he could get. A string a is lexicographically smaller than a string b if and only if one of the following holds: The first line contains two integers n and k ( 1 <= q n <= q 5 cdot 10^5 , 1 <= q k <= q 10^9 ). The second line contains a string s ( |s| = n ) -- the string consisting of letters "a" and "b. The third line contains a string t ( |t| = n ) -- the string consisting of letters "a" and "b. It is guaranteed that string s is lexicographically not bigger than t . Print one number -- maximal value of c . In the first example, Nut could write strings "aa", "ab", "ba", "bb". These 4 strings are prefixes of at least one of the written strings, as well as "a" and "b". Totally, 6 strings. In the second example, Nut could write strings "aba", "baa", "bba". In the third example, there are only two different strings that Nut could write. If both of them are written, c=8 . '... |
63753 |
Submission Id |
Author(s) |
Index |
Submitted |
Verdict |
Language |
Test Set |
Tests Passed |
Time taken (ms) |
Memory Consumed (bytes) |
Tags |
Rating |
---|---|---|---|---|---|---|---|---|---|---|---|
48553163 | Logey | B | Jan. 19, 2019, 3:27 a.m. | OK | GNU C++11 | TESTS | 89 | 31 | 819200 | 2100 | |
48165096 | CrazyTeaMajor | B | Jan. 9, 2019, 11:39 p.m. | OK | GNU C++11 | TESTS | 89 | 31 | 819200 | 2100 | |
46935718 | WeZoomIn | B | Dec. 12, 2018, 1:46 p.m. | OK | GNU C++11 | TESTS | 89 | 31 | 819200 | 2100 | |
57350847 | luogu_bot1 | B | July 20, 2019, 3:24 a.m. | OK | GNU C++11 | TESTS | 89 | 31 | 819200 | 2100 | |
52331700 | shixiangyu | B | April 5, 2019, 5:47 a.m. | OK | GNU C++11 | TESTS | 89 | 31 | 819200 | 2100 | |
69191821 | geneanlyz | B | Jan. 20, 2020, 1:44 p.m. | OK | GNU C++11 | TESTS | 89 | 31 | 921600 | 2100 | |
58036300 | ShadeSlide | B | July 30, 2019, 6:07 p.m. | OK | GNU C++11 | TESTS | 89 | 31 | 1024000 | 2100 | |
57824063 | mmmod_lqs | B | July 27, 2019, 1:51 a.m. | OK | GNU C++11 | TESTS | 89 | 31 | 1024000 | 2100 | |
57348484 | kingscanf | B | July 20, 2019, 1:46 a.m. | OK | GNU C++11 | TESTS | 89 | 31 | 1024000 | 2100 | |
57347043 | skyping | B | July 20, 2019, 12:24 a.m. | OK | GNU C++11 | TESTS | 89 | 31 | 1024000 | 2100 | |
47177159 | Chameleon2460 | B | Dec. 17, 2018, 6:10 p.m. | OK | GNU C++14 | TESTS | 89 | 31 | 1024000 | 2100 | |
69682884 | Mynesis | B | Jan. 28, 2020, 4:09 p.m. | OK | GNU C++14 | TESTS | 89 | 31 | 1024000 | 2100 | |
59964740 | little_misfortune | B | Sept. 3, 2019, 7:47 p.m. | OK | GNU C++14 | TESTS | 89 | 31 | 1024000 | 2100 | |
59875071 | _smhx | B | Sept. 1, 2019, 10:26 p.m. | OK | GNU C++14 | TESTS | 89 | 31 | 1024000 | 2100 | |
54409387 | kumarpratyush4 | B | May 20, 2019, 8:46 a.m. | OK | GNU C++14 | TESTS | 89 | 31 | 1024000 | 2100 | |
53471789 | ragnarosS | B | April 28, 2019, 1:12 p.m. | OK | GNU C++14 | TESTS | 89 | 31 | 1024000 | 2100 | |
52912310 | rainy_season | B | April 17, 2019, 2:31 p.m. | OK | GNU C++14 | TESTS | 89 | 31 | 1024000 | 2100 | |
51676464 | wwwxxxddd | B | March 22, 2019, 10:46 a.m. | OK | GNU C++14 | TESTS | 89 | 31 | 1024000 | 2100 | |
50079608 | mayaohua2003 | B | Feb. 18, 2019, 2:35 a.m. | OK | GNU C++14 | TESTS | 89 | 31 | 1024000 | 2100 | |
49298859 | JU_RUO | B | Feb. 1, 2019, 1:20 a.m. | OK | GNU C++14 | TESTS | 89 | 31 | 1024000 | 2100 | |
46875910 | KyleYoung | B | Dec. 10, 2018, 6:11 p.m. | OK | GNU C++17 | TESTS | 89 | 31 | 1024000 | 2100 | |
49945866 | tEMMIE.w. | B | Feb. 15, 2019, 12:03 p.m. | OK | GNU C++17 | TESTS | 89 | 31 | 1024000 | 2100 | |
47900621 | F-2018 | B | Jan. 4, 2019, 1:52 p.m. | OK | GNU C++17 | TESTS | 89 | 31 | 1024000 | 2100 | |
46924399 | 99930036 | B | Dec. 12, 2018, 7:37 a.m. | OK | GNU C++17 | TESTS | 89 | 31 | 1024000 | 2100 | |
46919566 | Quasrain | B | Dec. 12, 2018, 2:54 a.m. | OK | GNU C++17 | TESTS | 89 | 31 | 1024000 | 2100 | |
46883929 | Kerim.K | B | Dec. 10, 2018, 9:19 p.m. | OK | GNU C++17 | TESTS | 89 | 31 | 1024000 | 2100 | |
46868759 | mohamedeltair | B | Dec. 10, 2018, 5:25 p.m. | OK | GNU C++17 | TESTS | 89 | 31 | 1024000 | 2100 | |
46862859 | KrK | B | Dec. 10, 2018, 4:57 p.m. | OK | GNU C++17 | TESTS | 89 | 31 | 1024000 | 2100 | |
46923306 | Gromah | B | Dec. 12, 2018, 6:49 a.m. | OK | GNU C++17 | TESTS | 89 | 31 | 1228800 | 2100 | |
58890698 | tanao_ | B | Aug. 16, 2019, 5:28 a.m. | OK | GNU C++17 | TESTS | 89 | 31 | 1945600 | 2100 | |
48465034 | wadissimo | B | Jan. 16, 2019, 4:48 p.m. | OK | Java 8 | TESTS | 89 | 124 | 0 | 2100 | |
46884176 | PrakharJain | B | Dec. 10, 2018, 9:35 p.m. | OK | Java 8 | TESTS | 89 | 124 | 0 | 2100 | |
62841422 | yaoct | B | Oct. 18, 2019, 3 a.m. | OK | Java 8 | TESTS | 89 | 124 | 0 | 2100 | |
46867837 | uwi | B | Dec. 10, 2018, 5:20 p.m. | OK | Java 8 | TESTS | 89 | 139 | 0 | 2100 | |
46865707 | iakovlev.zakhar | B | Dec. 10, 2018, 5:09 p.m. | OK | Java 8 | TESTS | 89 | 139 | 0 | 2100 | |
48486725 | jiangzhiyu1987 | B | Jan. 17, 2019, 8:43 a.m. | OK | Java 8 | TESTS | 89 | 139 | 9420800 | 2100 | |
46885090 | kessido | B | Dec. 10, 2018, 10:47 p.m. | OK | Java 8 | TESTS | 89 | 140 | 0 | 2100 | |
65613806 | ijxjdjd | B | Nov. 24, 2019, 1:52 a.m. | OK | Java 8 | TESTS | 89 | 140 | 0 | 2100 | |
57477992 | beginner1010 | B | July 22, 2019, 12:11 a.m. | OK | Java 8 | TESTS | 89 | 140 | 0 | 2100 | |
53310160 | Suzukaze | B | April 26, 2019, 6:03 a.m. | OK | Java 8 | TESTS | 89 | 140 | 0 | 2100 | |
46871420 | elizarov | B | Dec. 10, 2018, 5:41 p.m. | OK | Kotlin | TESTS | 89 | 218 | 204800 | 2100 | |
46866853 | TERESO | B | Dec. 10, 2018, 5:15 p.m. | OK | Mono C# | TESTS | 89 | 77 | 3993600 | 2100 | |
46867475 | LoneFox | B | Dec. 10, 2018, 5:18 p.m. | OK | MS C++ | TESTS | 89 | 46 | 1024000 | 2100 | |
60198085 | pajenegod | B | Sept. 7, 2019, 3:18 a.m. | OK | PyPy 2 | TESTS | 89 | 233 | 6758400 | 2100 | |
62369729 | vjudge4 | B | Oct. 11, 2019, 2:57 p.m. | OK | PyPy 3 | TESTS | 89 | 264 | 12390400 | 2100 | |
46878680 | meooow | B | Dec. 10, 2018, 6:30 p.m. | OK | Python 3 | TESTS | 89 | 311 | 2252800 | 2100 | |
47097790 | Darma | B | Dec. 16, 2018, 9:15 a.m. | OK | Python 3 | TESTS | 89 | 358 | 6348800 | 2100 | |
64670613 | LanaDelRey | B | Nov. 11, 2019, 5:40 a.m. | OK | Python 3 | TESTS | 89 | 670 | 3072000 | 2100 | |
52765820 | kimoyami | B | April 15, 2019, 3:21 a.m. | OK | Python 3 | TESTS | 89 | 717 | 2355200 | 2100 | |
51934984 | kobae964 | B | March 28, 2019, 12:07 p.m. | OK | Rust | TESTS | 89 | 46 | 6860800 | 2100 |
Back to search problems