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 |
---|---|---|---|---|---|---|
1270 | Good Bye 2019 | FINISHED | False | 10800 | 154194899 | Dec. 29, 2019, 2:05 p.m. |
Solved$ |
Index |
Name |
Type |
Tags |
Community Tag |
Rating |
---|---|---|---|---|---|---|
( 1150 ) | F | Awesome Substrings | PROGRAMMING | math strings | 2600 |
B"Let's call a binary string s awesome, if it has at least 1 symbol 1 and length of the string is divisible by the number of 1 in it. In particular, 1, 1010, 111 are awesome, but 0, 110, 01010 aren't. You are given a binary string s . Count the number of its awesome substrings. A string a is a substring of a string b if a can be obtained from b by deletion of several (possibly, zero or all) characters from the beginning and several (possibly, zero or all) characters from the end. The first line contains the string s ( 1 <= q |s| <= 200 ,000 ) consisting only of zeros and ones. Output a single number -- the number of awesome substrings of s . In the first sample, all substrings of s are awesome. In the second sample, we have the following awesome substrings of s : 1 ( 2 times), 01 ( 2 times), 10 ( 2 times), 010 ( 2 times), 1010, 0101 In the third sample, no substring is awesome. "... |
Разбор Goodbye 2019 |
Submission Id |
Author(s) |
Index |
Submitted |
Verdict |
Language |
Test Set |
Tests Passed |
Time taken (ms) |
Memory Consumed (bytes) |
Tags |
Rating |
---|---|---|---|---|---|---|---|---|---|---|---|
68060212 | Rubbish12345 | F | Jan. 2, 2020, 3 a.m. | OK | GNU C++11 | TESTS | 48 | 1014 | 2662400 | 2600 | |
67987949 | cjy2003 | F | Dec. 31, 2019, 1:20 a.m. | OK | GNU C++11 | TESTS | 48 | 1075 | 3379200 | 2600 | |
67951326 | duxing201606 | F | Dec. 30, 2019, 7:48 a.m. | OK | GNU C++11 | TESTS | 48 | 1528 | 4198400 | 2600 | |
67921812 | aa2985759 | F | Dec. 29, 2019, 4:23 p.m. | OK | GNU C++11 | TESTS | 48 | 1778 | 177356800 | 2600 | |
68027669 | yqaty | F | Jan. 1, 2020, 7:05 a.m. | OK | GNU C++11 | TESTS | 48 | 1902 | 243097600 | 2600 | |
67914232 | duality | F | Dec. 29, 2019, 3:40 p.m. | OK | GNU C++11 | TESTS | 48 | 2043 | 8089600 | 2600 | |
68629624 | cuizhuyefei | F | Jan. 12, 2020, 1:53 a.m. | OK | GNU C++11 | TESTS | 48 | 2183 | 4505600 | 2600 | |
67965250 | icfan | F | Dec. 30, 2019, 1:06 p.m. | OK | GNU C++11 | TESTS | 48 | 2215 | 82329600 | 2600 | |
68102500 | frodakcin | F | Jan. 3, 2020, 4:36 a.m. | OK | GNU C++11 | TESTS | 48 | 2308 | 2662400 | 2600 | |
68431731 | yasugongshang | F | Jan. 9, 2020, 7:10 a.m. | OK | GNU C++11 | TESTS | 48 | 2324 | 3379200 | 2600 | |
67930797 | gs12117 | F | Dec. 29, 2019, 5:55 p.m. | OK | GNU C++14 | TESTS | 48 | 217 | 13824000 | 2600 | |
67996477 | tmwilliamlin168 | F | Dec. 31, 2019, 8:26 a.m. | OK | GNU C++14 | TESTS | 48 | 483 | 12595200 | 2600 | |
68056390 | Lius | F | Jan. 1, 2020, 11:10 p.m. | OK | GNU C++14 | TESTS | 48 | 763 | 82739200 | 2600 | |
68099774 | BSBandme | F | Jan. 3, 2020, 1:22 a.m. | OK | GNU C++14 | TESTS | 48 | 810 | 325836800 | 2600 | |
68099832 | BSBandme | F | Jan. 3, 2020, 1:27 a.m. | OK | GNU C++14 | TESTS | 48 | 966 | 325836800 | 2600 | |
68056372 | Lius | F | Jan. 1, 2020, 11:09 p.m. | OK | GNU C++14 | TESTS | 48 | 1248 | 162918400 | 2600 | |
67935906 | tmwilliamlin168 | F | Dec. 29, 2019, 8:14 p.m. | OK | GNU C++14 | TESTS | 48 | 1372 | 162508800 | 2600 | |
68022062 | mayiyang | F | Jan. 1, 2020, 12:43 a.m. | OK | GNU C++14 | TESTS | 48 | 1466 | 5836800 | 2600 | |
68022137 | mayiyang | F | Jan. 1, 2020, 12:50 a.m. | OK | GNU C++14 | TESTS | 48 | 1513 | 5836800 | 2600 | |
68045441 | raghav_19 | F | Jan. 1, 2020, 4:14 p.m. | OK | GNU C++14 | TESTS | 48 | 1606 | 2969600 | 2600 | |
68701719 | krock21 | F | Jan. 13, 2020, 9:41 a.m. | OK | GNU C++17 | TESTS | 48 | 280 | 14131200 | 2600 | |
68682055 | maksimkulis | F | Jan. 12, 2020, 11:34 p.m. | OK | GNU C++17 | TESTS | 48 | 280 | 14131200 | 2600 | |
67982125 | Drand | F | Dec. 30, 2019, 7:52 p.m. | OK | GNU C++17 | TESTS | 48 | 451 | 5324800 | 2600 | |
67982079 | Drand | F | Dec. 30, 2019, 7:51 p.m. | OK | GNU C++17 | TESTS | 48 | 468 | 5324800 | 2600 | |
67982202 | Drand | F | Dec. 30, 2019, 7:55 p.m. | OK | GNU C++17 | TESTS | 48 | 499 | 5324800 | 2600 | |
67982057 | Drand | F | Dec. 30, 2019, 7:50 p.m. | OK | GNU C++17 | TESTS | 48 | 530 | 5324800 | 2600 | |
67982033 | Drand | F | Dec. 30, 2019, 7:49 p.m. | OK | GNU C++17 | TESTS | 48 | 639 | 5324800 | 2600 | |
67982178 | Drand | F | Dec. 30, 2019, 7:54 p.m. | OK | GNU C++17 | TESTS | 48 | 686 | 5324800 | 2600 | |
68119295 | Astrea | F | Jan. 3, 2020, 12:40 p.m. | OK | GNU C++17 | TESTS | 48 | 779 | 64000000 | 2600 | |
68119172 | Astrea | F | Jan. 3, 2020, 12:38 p.m. | OK | GNU C++17 | TESTS | 48 | 779 | 84070400 | 2600 | |
67916684 | eatmore | F | Dec. 29, 2019, 3:53 p.m. | OK | Java 11 | TESTS | 48 | 7612 | 13209600 | 2600 | |
67910736 | qwerty787788 | F | Dec. 29, 2019, 3:24 p.m. | OK | Java 8 | TESTS | 48 | 1824 | 478617600 | 2600 | |
68096449 | BaZ_ | F | Jan. 2, 2020, 9:10 p.m. | OK | Java 8 | TESTS | 48 | 3416 | 430387200 | 2600 | |
68726937 | polyakoff | F | Jan. 13, 2020, 6:16 p.m. | OK | Java 8 | TESTS | 48 | 3821 | 361984000 | 2600 | |
68142054 | Suzukaze | F | Jan. 3, 2020, 11:47 p.m. | OK | Java 8 | TESTS | 48 | 4695 | 358195200 | 2600 | |
67919676 | chokudai | F | Dec. 29, 2019, 4:09 p.m. | OK | Mono C# | TESTS | 48 | 6754 | 11059200 | 2600 | |
67924876 | math957963 | F | Dec. 29, 2019, 4:42 p.m. | OK | MS C++ | TESTS | 48 | 5288 | 5529600 | 2600 | |
67959023 | wp32pw | F | Dec. 30, 2019, 10:49 a.m. | OK | MS C++ 2017 | TESTS | 48 | 5335 | 364851200 | 2600 | |
67961564 | pajenegod | F | Dec. 30, 2019, 11:46 a.m. | OK | PyPy 2 | TESTS | 48 | 1637 | 9932800 | 2600 | |
67961529 | pajenegod | F | Dec. 30, 2019, 11:46 a.m. | OK | PyPy 2 | TESTS | 48 | 1684 | 9830400 | 2600 | |
67984259 | pajenegod | F | Dec. 30, 2019, 9:10 p.m. | OK | PyPy 2 | TESTS | 48 | 1731 | 8806400 | 2600 | |
67961472 | pajenegod | F | Dec. 30, 2019, 11:44 a.m. | OK | PyPy 2 | TESTS | 48 | 1746 | 9830400 | 2600 | |
67984362 | pajenegod | F | Dec. 30, 2019, 9:14 p.m. | OK | PyPy 2 | TESTS | 48 | 1778 | 10240000 | 2600 | |
67984494 | pajenegod | F | Dec. 30, 2019, 9:21 p.m. | OK | PyPy 2 | TESTS | 48 | 1856 | 8704000 | 2600 | |
67984340 | pajenegod | F | Dec. 30, 2019, 9:14 p.m. | OK | PyPy 2 | TESTS | 48 | 1965 | 10649600 | 2600 | |
67984404 | pajenegod | F | Dec. 30, 2019, 9:17 p.m. | OK | PyPy 2 | TESTS | 48 | 2027 | 13312000 | 2600 | |
67986981 | pajenegod | F | Dec. 30, 2019, 11:56 p.m. | OK | PyPy 2 | TESTS | 48 | 2059 | 9932800 | 2600 | |
67986869 | pajenegod | F | Dec. 30, 2019, 11:48 p.m. | OK | PyPy 2 | TESTS | 48 | 2105 | 10137600 | 2600 |
Back to search problems