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 |
---|---|---|---|---|---|---|
1045 | Bubble Cup 11 - Finals [Online Mirror, Div. 1] | FINISHED | False | 18000 | 199567463 | Sept. 22, 2018, 10:35 a.m. |
Solved$ |
Index |
Name |
Type |
Tags |
Community Tag |
Rating |
---|---|---|---|---|---|---|
( 382 ) | H | Self-exploration | PROGRAMMING | math | 2700 |
B"Being bored of exploring the Moon over and over again Wall-B decided to explore something he is made of -- binary numbers. He took a binary number and decided to count how many times different substrings of length two appeared. He stored those values in c_{00} , c_{01} , c_{10} and c_{11} , representing how many times substrings 00, 01, 10 and 11 appear in the number respectively. For example: 10111100 rightarrow c_{00} = 1, c_{01} = 1, c_{10} = 2, c_{11} = 3 10000 rightarrow c_{00} = 3, c_{01} = 0, c_{10} = 1, c_{11} = 0 10101001 rightarrow c_{00} = 1, c_{01} = 3, c_{10} = 3, c_{11} = 0 1 rightarrow c_{00} = 0, c_{01} = 0, c_{10} = 0, c_{11} = 0 Wall-B noticed that there can be multiple binary numbers satisfying the same c_{00} , c_{01} , c_{10} and c_{11} constraints. Because of that he wanted to count how many binary numbers satisfy the constraints c_{xy} given the interval [A, B] . Unfortunately, his processing power wasn't strong enough to handle large intervals he was curious about. Can you help him? Since this number can be large print it modulo 10^9 + 7 . First two lines contain two positive binary numbers A and B ( 1 <= q A <= q B < 2^{100 ,000} ), representing the start and the end of the interval respectively. Binary numbers A and B have no leading zeroes. Next four lines contain decimal numbers c_{00} , c_{01} , c_{10} and c_{11} ( 0 <= q c_{00}, c_{01}, c_{10}, c_{11} <= q 100 ,000 ) representing the count of two-digit substrings 00, 01, 10 and 11 respectively. Output one integer number representing how many binary numbers in the interval [A, B] satisfy the constraints mod 10^9 + 7 . Example 1: The binary numbers in the interval [10,1001] are 10,11,100,101,110,111,1000,1001 . Only number 110 satisfies the constraints: c_{00} = 0, c_{01} = 0, c_{10} = 1, c_{11} ="... |
E |
Submission Id |
Author(s) |
Index |
Submitted |
Verdict |
Language |
Test Set |
Tests Passed |
Time taken (ms) |
Memory Consumed (bytes) |
Tags |
Rating |
---|---|---|---|---|---|---|---|---|---|---|---|
50667789 | Dust1404 | H | March 2, 2019, 5:19 a.m. | OK | GNU C++11 | TESTS | 51 | 31 | 819200 | 2700 | |
50624545 | negiizhao | H | March 1, 2019, 4:58 a.m. | OK | GNU C++11 | TESTS | 51 | 31 | 819200 | 2700 | |
57868493 | lopare | H | July 27, 2019, 11:19 p.m. | OK | GNU C++11 | TESTS | 51 | 31 | 1024000 | 2700 | |
57736749 | py_ultron | H | July 25, 2019, 10:11 a.m. | OK | GNU C++11 | TESTS | 51 | 31 | 1024000 | 2700 | |
54903226 | luogu_bot5 | H | June 1, 2019, 7:40 a.m. | OK | GNU C++11 | TESTS | 51 | 31 | 1024000 | 2700 | |
52478661 | cxcxccx | H | April 8, 2019, 2:50 a.m. | OK | GNU C++11 | TESTS | 51 | 31 | 1024000 | 2700 | |
48106809 | great_influence | H | Jan. 9, 2019, 6:03 a.m. | OK | GNU C++11 | TESTS | 51 | 31 | 1024000 | 2700 | |
44751542 | ReaLNero1 | H | Oct. 23, 2018, 8:12 p.m. | OK | GNU C++11 | TESTS | 51 | 31 | 1024000 | 2700 | |
43264435 | tqyaaaaaaaang | H | Sept. 22, 2018, 3:49 p.m. | OK | GNU C++11 | TESTS | 51 | 31 | 1024000 | 2700 | |
48200386 | lunch | H | Jan. 11, 2019, 5:02 a.m. | OK | GNU C++11 | TESTS | 51 | 31 | 1433600 | 2700 | |
50682951 | Frank_DD | H | March 2, 2019, 12:21 p.m. | OK | GNU C++14 | TESTS | 51 | 31 | 1024000 | 2700 | |
50624543 | rushcheyo | H | March 1, 2019, 4:58 a.m. | OK | GNU C++14 | TESTS | 51 | 31 | 1024000 | 2700 | |
48115768 | WG6101N | H | Jan. 9, 2019, 12:38 p.m. | OK | GNU C++14 | TESTS | 51 | 31 | 1024000 | 2700 | |
48109819 | brute___forces | H | Jan. 9, 2019, 8:35 a.m. | OK | GNU C++14 | TESTS | 51 | 31 | 1024000 | 2700 | |
48110659 | brute___forces | H | Jan. 9, 2019, 9:14 a.m. | OK | GNU C++14 | TESTS | 51 | 31 | 2048000 | 2700 | |
50639204 | limstash | H | March 1, 2019, 1:11 p.m. | OK | GNU C++14 | TESTS | 51 | 31 | 2662400 | 2700 | |
48107759 | zhou888 | H | Jan. 9, 2019, 6:54 a.m. | OK | GNU C++14 | TESTS | 51 | 31 | 5222400 | 2700 | |
48111137 | dengyixuan | H | Jan. 9, 2019, 9:33 a.m. | OK | GNU C++14 | TESTS | 51 | 31 | 11366400 | 2700 | |
43263895 | tender_green | H | Sept. 22, 2018, 3:37 p.m. | OK | GNU C++14 | TESTS | 51 | 46 | 1024000 | 2700 | |
63210195 | NotNight | H | Oct. 23, 2019, 3:14 a.m. | OK | GNU C++14 | TESTS | 51 | 46 | 1433600 | 2700 | |
46755593 | mtmohim | H | Dec. 8, 2018, 11:32 a.m. | OK | GNU C++17 | TESTS | 51 | 31 | 1024000 | 2700 | |
43438797 | DZYO | H | Sept. 26, 2018, 7:39 a.m. | OK | GNU C++17 | TESTS | 51 | 31 | 1433600 | 2700 | |
48107958 | ShichengXiao | H | Jan. 9, 2019, 7:04 a.m. | OK | GNU C++17 | TESTS | 51 | 31 | 3276800 | 2700 | |
64556480 | hjk1030 | H | Nov. 9, 2019, 4:04 a.m. | OK | GNU C++17 | TESTS | 51 | 31 | 3379200 | 2700 | |
50608517 | Nakagawa.Kanon | H | Feb. 28, 2019, 3:44 p.m. | OK | GNU C++17 | TESTS | 51 | 46 | 1433600 | 2700 | |
48107787 | ranwen | H | Jan. 9, 2019, 6:56 a.m. | OK | GNU C++17 | TESTS | 51 | 46 | 1945600 | 2700 | |
50685197 | xianhaoming | H | March 2, 2019, 1:21 p.m. | OK | GNU C++17 | TESTS | 51 | 46 | 2252800 | 2700 | |
43677152 | FundamentalEq devanshg27 born2rule | H | Oct. 2, 2018, 8:09 a.m. | OK | GNU C++17 | TESTS | 51 | 46 | 3072000 | 2700 | |
49994897 | vjudge4 | H | Feb. 16, 2019, 2:29 p.m. | OK | GNU C++17 | TESTS | 51 | 46 | 3379200 | 2700 | |
49994313 | vjudge1 | H | Feb. 16, 2019, 2:12 p.m. | OK | GNU C++17 | TESTS | 51 | 46 | 3379200 | 2700 | |
43713749 | tri | H | Oct. 3, 2018, 5:55 a.m. | OK | Java 8 | TESTS | 51 | 155 | 0 | 2700 | |
43273699 | uwi | H | Sept. 22, 2018, 8:45 p.m. | OK | Java 8 | TESTS | 51 | 155 | 0 | 2700 | |
68692544 | dalt | H | Jan. 13, 2020, 6:46 a.m. | OK | Java 8 | TESTS | 51 | 202 | 32460800 | 2700 |
Back to search problems