ID | 题目 | 提交者 | 结果 | 用时 | 内存 | 语言 | 文件大小 | 提交时间 | 测评时间 |
---|---|---|---|---|---|---|---|---|---|
#214999 | #2410. 图案 | KXG | 100 | 7447ms | 87984kb | C++11 | 1.5kb | 2024-11-25 19:39:03 | 2024-11-25 23:05:02 |
answer
#include <cstdio>
#include <cstring>
#include <vector>
using namespace std;
char s[1000010];
int d[1000010];
int nxt[1000010], n, k, dfn[1000010], dfe[1000010], times = 0;
vector<int> son[1000010];
void dfs(int u) {
dfn[u] = ++times;
for (int v : son[u]) {
dfs(v);
}
dfe[u] = times;
}
int main() {
scanf("%d%d", &n, &k);
scanf("%s", s + 1);
nxt[1] = 0;
son[0].push_back(1);
for (int i = 2; i <= n; i++) {
nxt[i] = nxt[i - 1];
while (nxt[i] && s[nxt[i] + 1] != s[i]) nxt[i] = nxt[nxt[i]];
if (s[nxt[i] + 1] == s[i]) {
nxt[i]++;
}
son[nxt[i]].push_back(i);
}
dfs(0);
for (int i = 1; i <= n; i++) {
if (i % k == 0) {
int len = i / k;
if (dfn[i - len] <= dfn[i] && dfn[i] <= dfe[i - len]) {
int l = 0, r = len, ans = 0;
while (l <= r) {
int mid = (l + r) >> 1;
if (dfn[mid] <= dfn[i + mid] && dfn[i + mid] <= dfe[mid]) {
ans = mid;
l = mid + 1;
} else {
r = mid - 1;
}
}
d[i]++;
d[i + ans + 1]--;
}
}
}
for (int i = 1; i <= n; i++) {
d[i] += d[i - 1];
if (d[i]) {
printf("1");
} else {
printf("0");
}
}
return 0;
}
详细
小提示:点击横条可展开更详细的信息
Subtask #1:
score: 20
Accepted
Test #1:
score: 20
Accepted
time: 8ms
memory: 24532kb
input:
100 2 xxyxxyyxxyxxyypxxyxxyyxxyxxyypxxyxxyyxxyxxyypwxxyxxyyxxyxxyypxxyxxyyxxyxxyypxxyxxyyxxyxxyypwex...
output:
0100010000000100000000000000011111111111111110000000000000000000000000000000000000000000000100000000
result:
ok single line: '010001000000010000000000000001...0000000000000000000000100000000'
Test #2:
score: 0
Accepted
time: 4ms
memory: 24536kb
input:
100 3 xxxyxxxyxxxyyxxxyxxxyxxxyyxxxyxxxyxxxyypxxxyxxxyxxxyyxxxyxxxyxxxyyxxxyxxxyxxxyypxxxyxxxyxxxyyx...
output:
0010000000010000000000000000000000000010000000000000000000000000000000000000000000000000000000000000
result:
ok single line: '001000000001000000000000000000...0000000000000000000000000000000'
Test #3:
score: 0
Accepted
time: 3ms
memory: 24540kb
input:
100 2 baaaabbbaaabaabaaababbabaabbbabaaaabbababaaaabbaabbaaaababbaaabaaaaabbbbbaaaaabbbbbbaaabbaabaa...
output:
0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
result:
ok single line: '000000000000000000000000000000...0000000000000000000000000000000'
Test #4:
score: 0
Accepted
time: 0ms
memory: 24536kb
input:
100 3 baaaabbbaaabaabaaababbabaabbbabaaaabbababaaaabbaabbaaaababbaaabaaaaabbbbbaaaaabbbbbbaaabbaabaa...
output:
0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
result:
ok single line: '000000000000000000000000000000...0000000000000000000000000000000'
Test #5:
score: 0
Accepted
time: 11ms
memory: 24532kb
input:
100 15 xxxxxxxxxxxxxxxyxxxxxxxxxxxxxxxyxxxxxxxxxxxxxxxyxxxxxxxxxxxxxxxyxxxxxxxxxxxxxxxyxxxxxxxxxxxxx...
output:
0000000000000010000000000000000000000000000000000000000000000000000000000000000000000000000000000000
result:
ok single line: '000000000000001000000000000000...0000000000000000000000000000000'
Test #6:
score: 0
Accepted
time: 3ms
memory: 24532kb
input:
100 20 xxxxxxxxxxxxxxxxxxxxyxxxxxxxxxxxxxxxxxxxxyxxxxxxxxxxxxxxxxxxxxyxxxxxxxxxxxxxxxxxxxxyxxxxxxxxx...
output:
0000000000000000000100000000000000000000000000000000000000000000000000000000000000000000000000000000
result:
ok single line: '000000000000000000010000000000...0000000000000000000000000000000'
Test #7:
score: 0
Accepted
time: 4ms
memory: 24536kb
input:
100 7 xxxxxxxyxxxxxxxyxxxxxxxyxxxxxxxyxxxxxxxyxxxxxxxyxxxxxxxyyxxxxxxxyxxxxxxxyxxxxxxxyxxxxxxxyxxxxx...
output:
0000001000000000000000000000000000000000000000000000000100000000000000000000000000000000000000000000
result:
ok single line: '000000100000000000000000000000...0000000000000000000000000000000'
Test #8:
score: 0
Accepted
time: 12ms
memory: 24540kb
input:
100 4 babbababaabababaabbaaabbbaaaaabaaababbbbaaaaabbbaabbbbaaabbbbabbaaaaaabababaabaababbbbabbbbbaa...
output:
0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
result:
ok single line: '000000000000000000000000000000...0000000000000000000000000000000'
Test #9:
score: 0
Accepted
time: 3ms
memory: 24532kb
input:
100 5 kkkkkkxkkkkkkxkkkkkkxkkkkkkxkkkkkkxkkkkkkxskkkkkkxkkkkkkxkkkkkkxkkkkkkxkkkkkkxkkkkkkxskkkkkkxk...
output:
0000110000000000000000000000000000111111110000000000000000000000000000000000000000000000000000000000
result:
ok single line: '000011000000000000000000000000...0000000000000000000000000000000'
Test #10:
score: 0
Accepted
time: 8ms
memory: 24532kb
input:
100 1 ggggvggggvoggggvggggvoggggvggggvocggggvggggvoggggvggggvoggggvggggvocjggggvggggvoggggvggggvoggg...
output:
1111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111
result:
ok single line: '111111111111111111111111111111...1111111111111111111111111111111'
Test #11:
score: 0
Accepted
time: 4ms
memory: 24532kb
input:
100 3 zshffbzshffbzshffbzshffbzshffbzshffbzshffbzshffbzshffbzshffbzshffbzshffbzshffbzshffbzshffbzshf...
output:
0000000000000000011111110000000000011111111111110000011111111111111111111111111111111111111111111111
result:
ok single line: '000000000000000001111111000000...1111111111111111111111111111111'
Test #12:
score: 0
Accepted
time: 4ms
memory: 24536kb
input:
100 12 fnjfnjfnjfnjfnjfnjfnjfnjfnjfnjfnjfnjfnjfnjfnjfnjfnjfnjfnjfnjfnjfnjfnjfnjfnjfnjfnjfnjfnjfnjfnj...
output:
0000000000000000000000000000000000011110000000000000000000000000000000011111110000000000000000000000
result:
ok single line: '000000000000000000000000000000...0011111110000000000000000000000'
Test #13:
score: 0
Accepted
time: 0ms
memory: 24520kb
input:
100 6 dddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddd...
output:
0000011000011100011110011111011111111111111111111111111111111111111111111111111111111111111111111111
result:
ok single line: '000001100001110001111001111101...1111111111111111111111111111111'
Subtask #2:
score: 20
Accepted
Test #14:
score: 20
Accepted
time: 0ms
memory: 24536kb
input:
100 2 xxyxxyyxxyxxyypxxyxxyyxxyxxyypxxyxxyyxxyxxyypwxxyxxyyxxyxxyypxxyxxyyxxyxxyypxxyxxyyxxyxxyypwex...
output:
0100010000000100000000000000011111111111111110000000000000000000000000000000000000000000000100000000
result:
ok single line: '010001000000010000000000000001...0000000000000000000000100000000'
Test #15:
score: 0
Accepted
time: 3ms
memory: 24532kb
input:
100 3 xxxyxxxyxxxyyxxxyxxxyxxxyyxxxyxxxyxxxyypxxxyxxxyxxxyyxxxyxxxyxxxyyxxxyxxxyxxxyypxxxyxxxyxxxyyx...
output:
0010000000010000000000000000000000000010000000000000000000000000000000000000000000000000000000000000
result:
ok single line: '001000000001000000000000000000...0000000000000000000000000000000'
Test #16:
score: 0
Accepted
time: 0ms
memory: 24536kb
input:
100 2 baaaabbbaaabaabaaababbabaabbbabaaaabbababaaaabbaabbaaaababbaaabaaaaabbbbbaaaaabbbbbbaaabbaabaa...
output:
0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
result:
ok single line: '000000000000000000000000000000...0000000000000000000000000000000'
Test #17:
score: 0
Accepted
time: 4ms
memory: 24540kb
input:
100 3 baaaabbbaaabaabaaababbabaabbbabaaaabbababaaaabbaabbaaaababbaaabaaaaabbbbbaaaaabbbbbbaaabbaabaa...
output:
0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
result:
ok single line: '000000000000000000000000000000...0000000000000000000000000000000'
Test #18:
score: 0
Accepted
time: 0ms
memory: 24532kb
input:
100 15 xxxxxxxxxxxxxxxyxxxxxxxxxxxxxxxyxxxxxxxxxxxxxxxyxxxxxxxxxxxxxxxyxxxxxxxxxxxxxxxyxxxxxxxxxxxxx...
output:
0000000000000010000000000000000000000000000000000000000000000000000000000000000000000000000000000000
result:
ok single line: '000000000000001000000000000000...0000000000000000000000000000000'
Test #19:
score: 0
Accepted
time: 7ms
memory: 24536kb
input:
100 20 xxxxxxxxxxxxxxxxxxxxyxxxxxxxxxxxxxxxxxxxxyxxxxxxxxxxxxxxxxxxxxyxxxxxxxxxxxxxxxxxxxxyxxxxxxxxx...
output:
0000000000000000000100000000000000000000000000000000000000000000000000000000000000000000000000000000
result:
ok single line: '000000000000000000010000000000...0000000000000000000000000000000'
Test #20:
score: 0
Accepted
time: 0ms
memory: 24536kb
input:
100 7 xxxxxxxyxxxxxxxyxxxxxxxyxxxxxxxyxxxxxxxyxxxxxxxyxxxxxxxyyxxxxxxxyxxxxxxxyxxxxxxxyxxxxxxxyxxxxx...
output:
0000001000000000000000000000000000000000000000000000000100000000000000000000000000000000000000000000
result:
ok single line: '000000100000000000000000000000...0000000000000000000000000000000'
Test #21:
score: 0
Accepted
time: 3ms
memory: 24536kb
input:
100 4 babbababaabababaabbaaabbbaaaaabaaababbbbaaaaabbbaabbbbaaabbbbabbaaaaaabababaabaababbbbabbbbbaa...
output:
0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
result:
ok single line: '000000000000000000000000000000...0000000000000000000000000000000'
Test #22:
score: 0
Accepted
time: 3ms
memory: 24536kb
input:
100 5 kkkkkkxkkkkkkxkkkkkkxkkkkkkxkkkkkkxkkkkkkxskkkkkkxkkkkkkxkkkkkkxkkkkkkxkkkkkkxkkkkkkxskkkkkkxk...
output:
0000110000000000000000000000000000111111110000000000000000000000000000000000000000000000000000000000
result:
ok single line: '000011000000000000000000000000...0000000000000000000000000000000'
Test #23:
score: 0
Accepted
time: 4ms
memory: 24532kb
input:
100 1 ggggvggggvoggggvggggvoggggvggggvocggggvggggvoggggvggggvoggggvggggvocjggggvggggvoggggvggggvoggg...
output:
1111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111
result:
ok single line: '111111111111111111111111111111...1111111111111111111111111111111'
Test #24:
score: 0
Accepted
time: 0ms
memory: 24532kb
input:
100 3 zshffbzshffbzshffbzshffbzshffbzshffbzshffbzshffbzshffbzshffbzshffbzshffbzshffbzshffbzshffbzshf...
output:
0000000000000000011111110000000000011111111111110000011111111111111111111111111111111111111111111111
result:
ok single line: '000000000000000001111111000000...1111111111111111111111111111111'
Test #25:
score: 0
Accepted
time: 4ms
memory: 24532kb
input:
100 12 fnjfnjfnjfnjfnjfnjfnjfnjfnjfnjfnjfnjfnjfnjfnjfnjfnjfnjfnjfnjfnjfnjfnjfnjfnjfnjfnjfnjfnjfnjfnj...
output:
0000000000000000000000000000000000011110000000000000000000000000000000011111110000000000000000000000
result:
ok single line: '000000000000000000000000000000...0011111110000000000000000000000'
Test #26:
score: 0
Accepted
time: 4ms
memory: 24520kb
input:
100 6 dddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddd...
output:
0000011000011100011110011111011111111111111111111111111111111111111111111111111111111111111111111111
result:
ok single line: '000001100001110001111001111101...1111111111111111111111111111111'
Test #27:
score: 0
Accepted
time: 3ms
memory: 24624kb
input:
2500 5 yyyyymyyyyymyyyyymyyyyymyyyyymwyyyyymyyyyymyyyyymyyyyymyyyyymwyyyyymyyyyymyyyyymyyyyymyyyyymw...
output:
0000100000000000000000000000010000000000000000000000000000000000000000000000000000000000000000000000...
result:
ok single line: '000010000000000000000000000001...0000000000000000000000000000000'
Test #28:
score: 0
Accepted
time: 4ms
memory: 24596kb
input:
2500 2 bbbbbgbbbbbgfbbbbbgbbbbbgfbbbbbgbbbbbgfwbbbbbgbbbbbgfbbbbbgbbbbbgfbbbbbgbbbbbgfwzbbbbbgbbbbbg...
output:
0111100000010000000000000111111111111110000000000000000000000000000000000000000100000000000000000000...
result:
ok single line: '011110000001000000000000011111...0000000000000000000000000000000'
Test #29:
score: 0
Accepted
time: 7ms
memory: 24612kb
input:
2500 1 oodvoodvuoodvoodvuuoodvoodvuoodvoodvuuloodvoodvuoodvoodvuuoodvoodvuoodvoodvuulwfguuoodvoodvuo...
output:
1111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111...
result:
ok single line: '111111111111111111111111111111...1111111111111111111111111111111'
Test #30:
score: 0
Accepted
time: 3ms
memory: 24632kb
input:
2500 7 vvvvvvvcvvvvvvvcvvvvvvvcvvvvvvvcvvvvvvvcvvvvvvvcvvvvvvvcvvvvvvvclvvvvvvvcvvvvvvvcvvvvvvvcvvvv...
output:
0000001000000000000000000000000000000000000000000000000111111111000000000000000000000000000000000000...
result:
ok single line: '000000100000000000000000000000...0000000000000000000000000000000'
Test #31:
score: 0
Accepted
time: 4ms
memory: 24644kb
input:
2500 130 lllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllll...
output:
0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000...
result:
ok single line: '000000000000000000000000000000...0000000000000000000000000000000'
Test #32:
score: 0
Accepted
time: 9ms
memory: 24596kb
input:
2500 2 bbaabaaaaabaabbbaabaabbaabaaaaabbababaabaabababbaabaaaaaaaaabbbabbbabbbbbabaaabaaaaabbabbbbaa...
output:
0100000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000...
result:
ok single line: '010000000000000000000000000000...0000000000000000000000000000000'
Test #33:
score: 0
Accepted
time: 11ms
memory: 24596kb
input:
2500 2 abaaaaabbabbaabbbaabaaababaabbbbabbbbbaabbaabbbbaaaaabbaabbbaaabbbaaaaabbabbabaabaabbbbbaaaaa...
output:
0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000...
result:
ok single line: '000000000000000000000000000000...0000000000000000000000000000000'
Test #34:
score: 0
Accepted
time: 7ms
memory: 24600kb
input:
2500 2 aaabbaaababbaababbbbaaabaaabbbbbbbbbbbbababbbaaabbbabbbbaaabbbbaaabbbabbbaaabaaabbaabaabaaaba...
output:
0110000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000...
result:
ok single line: '011000000000000000000000000000...0000000000000000000000000000000'
Test #35:
score: 0
Accepted
time: 9ms
memory: 24596kb
input:
2500 3 bbaaababbaaabbbbaaabbabaaabbbbaabaabbaaababaaaaaaabbaaabbbaaaaababaabbaabbbbbbbbbababbbaabaaa...
output:
0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000...
result:
ok single line: '000000000000000000000000000000...0000000000000000000000000000000'
Test #36:
score: 0
Accepted
time: 9ms
memory: 24596kb
input:
2500 3 abaaaaabbbbabbbababbbbababaabbbaababaaabbbbbaabbababaabbbbbbbabbbbabbaabbbababbaababababababb...
output:
0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000...
result:
ok single line: '000000000000000000000000000000...0000000000000000000000000000000'
Test #37:
score: 0
Accepted
time: 0ms
memory: 24592kb
input:
2500 4 aaabbabbbbbabaababbbaaabbaabaaaaaabbaaabbbabbaaaaabaababbaabaabbbaababbaabbabbabbbabaaababaab...
output:
0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000...
result:
ok single line: '000000000000000000000000000000...0000000000000000000000000000000'
Test #38:
score: 0
Accepted
time: 7ms
memory: 24600kb
input:
2500 4 aaaabababbaaaaabbaaaaabaaabaabbbbbbbbabbbbbbaabbabbbbbbbbbbaaabbaaabbbaabaababaaaababbbaabaab...
output:
0001000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000...
result:
ok single line: '000100000000000000000000000000...0000000000000000000000000000000'
Test #39:
score: 0
Accepted
time: 7ms
memory: 24604kb
input:
2500 4 abbbbbbaaaaaaabaaaabbbaaababaaabbbabaabbabbabaaaaabaabaababbabaaabbababbbababbabbbbbbbbaaabab...
output:
0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000...
result:
ok single line: '000000000000000000000000000000...0000000000000000000000000000000'
Test #40:
score: 0
Accepted
time: 7ms
memory: 24592kb
input:
2500 5 ababaaaabbaabaaaaaabbabaaaaababbbbbbbbbbbbbabbabbbaabaababbababababbaaababbbabbbababbababaaab...
output:
0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000...
result:
ok single line: '000000000000000000000000000000...0000000000000000000000000000000'
Test #41:
score: 0
Accepted
time: 15ms
memory: 24600kb
input:
2500 5 bbbbbbabaabbbaabbbbababaabaababababbbaaaabbbbbaabaaaabaaabaabbabaaabaabababbabbbbababbaaabaaa...
output:
0000110000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000...
result:
ok single line: '000011000000000000000000000000...0000000000000000000000000000000'
Test #42:
score: 0
Accepted
time: 11ms
memory: 24596kb
input:
2500 5 aabbbbbbbbaaaabbbabbbbaaaaaaabbaaaabababbabbaaabbbaaabbbbbbabaabbaabaaababaaabbbabbbaaaaababb...
output:
0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000...
result:
ok single line: '000000000000000000000000000000...0000000000000000000000000000000'
Test #43:
score: 0
Accepted
time: 4ms
memory: 24644kb
input:
2500 5 dwjefaogypcifqefxzcfxtvqvvjkflxikhophfxhuzqzpwgnvjuuepmakwmrhjbtssicxfjrhbtwzzlwkftrufthbfyjq...
output:
0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000...
result:
ok single line: '000000000000000000000000000000...0000000000000000000000000000001'
Test #44:
score: 0
Accepted
time: 8ms
memory: 24636kb
input:
2500 3 curquntzziruhtdmourgoccecnpspbervwirjdqiokexdhjrcazqecwhrnzgofzmbjdmpuxdgballldpnehrieyztzhkf...
output:
0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000...
result:
ok single line: '000000000000000000000000000000...0000000000000000000000000000000'
Test #45:
score: 0
Accepted
time: 8ms
memory: 24652kb
input:
2500 33 acvjpngvaacvjpngvaacvjpngvaacvjpngvaacvjpngvaacvjpngvaacvjpngvaacvjpngvaacvjpngvaacvjpngvaac...
output:
0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000...
result:
ok single line: '000000000000000000000000000000...0000000000000000000000000000000'
Test #46:
score: 0
Accepted
time: 4ms
memory: 24656kb
input:
2500 18 wkjlqeeipdpfiwkjlqeeipdpfiwkjlqeeipdpfiwkjlqeeipdpfiwkjlqeeipdpfiwkjlqeeipdpfiwkjlqeeipdpfiw...
output:
0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000...
result:
ok single line: '000000000000000000000000000000...1000000000000000000000000000000'
Test #47:
score: 0
Accepted
time: 4ms
memory: 24648kb
input:
2500 140 qplkexfqwzufbcqplkexfqwzufbcqplkexfqwzufbcqplkexfqwzufbcqplkexfqwzufbcqplkexfqwzufbcqplkexf...
output:
0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000...
result:
ok single line: '000000000000000000000000000000...0000000000000000000000000000000'
Test #48:
score: 0
Accepted
time: 0ms
memory: 24668kb
input:
2500 420 bkuywbkuywbkuywbkuywbkuywbkuywbkuywbkuywbkuywbkuywbkuywbkuywbkuywbkuywbkuywbkuywbkuywbkuywb...
output:
0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000...
result:
ok single line: '000000000000000000000000000000...0000000000000000000000000000000'
Test #49:
score: 0
Accepted
time: 9ms
memory: 24704kb
input:
2500 650 eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee...
output:
0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000...
result:
ok single line: '000000000000000000000000000000...0000000000000000000000000000000'
Test #50:
score: 0
Accepted
time: 4ms
memory: 24684kb
input:
2500 800 dododododododododododododododododododododododododododododododododododododododododododododod...
output:
0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000...
result:
ok single line: '000000000000000000000000000000...0000000000000000000000000000000'
Subtask #3:
score: 20
Accepted
Test #51:
score: 20
Accepted
time: 89ms
memory: 87984kb
input:
1000000 23 cicicicicicicicicicicicicicicicicicicicicicicicicicicicicicicicicicicicicicicicicicicicic...
output:
0000000000000000000000000000000000000000000001110000000000000000000000000000000000000000000111110000...
result:
ok single line: '000000000000000000000000000000...1111111111111111111111111111111'
Test #52:
score: 0
Accepted
time: 24ms
memory: 37220kb
input:
200000 200 twtwtwtwtwtwtwtwtwtwtwtwtwtwtwtwtwtwtwtwtwtwtwtwtwtwtwtwtwtwtwtwtwtwtwtwtwtwtwtwtwtwtwtwt...
output:
0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000...
result:
ok single line: '000000000000000000000000000000...1111111111111111111111111111111'
Test #53:
score: 0
Accepted
time: 27ms
memory: 37216kb
input:
200000 500 grgrgrgrgrgrgrgrgrgrgrgrgrgrgrgrgrgrgrgrgrgrgrgrgrgrgrgrgrgrgrgrgrgrgrgrgrgrgrgrgrgrgrgrg...
output:
0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000...
result:
ok single line: '000000000000000000000000000000...0000000000000000000000000000001'
Test #54:
score: 0
Accepted
time: 96ms
memory: 87984kb
input:
1000000 61445 jdjdjdjdjdjdjdjdjdjdjdjdjdjdjdjdjdjdjdjdjdjdjdjdjdjdjdjdjdjdjdjdjdjdjdjdjdjdjdjdjdjdjd...
output:
0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000...
result:
ok single line: '000000000000000000000000000000...0000000000000000000000000000000'
Test #55:
score: 0
Accepted
time: 107ms
memory: 87984kb
input:
1000000 321758 zmzmzmzmzmzmzmzmzmzmzmzmzmzmzmzmzmzmzmzmzmzmzmzmzmzmzmzmzmzmzmzmzmzmzmzmzmzmzmzmzmzmz...
output:
0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000...
result:
ok single line: '000000000000000000000000000000...0000000000000000000000000000000'
Test #56:
score: 0
Accepted
time: 101ms
memory: 87984kb
input:
1000000 499999 vxvxvxvxvxvxvxvxvxvxvxvxvxvxvxvxvxvxvxvxvxvxvxvxvxvxvxvxvxvxvxvxvxvxvxvxvxvxvxvxvxvxv...
output:
0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000...
result:
ok single line: '000000000000000000000000000000...0000000000000000000000000000111'
Subtask #4:
score: 40
Accepted
Test #57:
score: 40
Accepted
time: 0ms
memory: 24536kb
input:
100 2 xxyxxyyxxyxxyypxxyxxyyxxyxxyypxxyxxyyxxyxxyypwxxyxxyyxxyxxyypxxyxxyyxxyxxyypxxyxxyyxxyxxyypwex...
output:
0100010000000100000000000000011111111111111110000000000000000000000000000000000000000000000100000000
result:
ok single line: '010001000000010000000000000001...0000000000000000000000100000000'
Test #58:
score: 0
Accepted
time: 0ms
memory: 24536kb
input:
100 3 xxxyxxxyxxxyyxxxyxxxyxxxyyxxxyxxxyxxxyypxxxyxxxyxxxyyxxxyxxxyxxxyyxxxyxxxyxxxyypxxxyxxxyxxxyyx...
output:
0010000000010000000000000000000000000010000000000000000000000000000000000000000000000000000000000000
result:
ok single line: '001000000001000000000000000000...0000000000000000000000000000000'
Test #59:
score: 0
Accepted
time: 4ms
memory: 24540kb
input:
100 2 baaaabbbaaabaabaaababbabaabbbabaaaabbababaaaabbaabbaaaababbaaabaaaaabbbbbaaaaabbbbbbaaabbaabaa...
output:
0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
result:
ok single line: '000000000000000000000000000000...0000000000000000000000000000000'
Test #60:
score: 0
Accepted
time: 0ms
memory: 24536kb
input:
100 3 baaaabbbaaabaabaaababbabaabbbabaaaabbababaaaabbaabbaaaababbaaabaaaaabbbbbaaaaabbbbbbaaabbaabaa...
output:
0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
result:
ok single line: '000000000000000000000000000000...0000000000000000000000000000000'
Test #61:
score: 0
Accepted
time: 0ms
memory: 24536kb
input:
100 15 xxxxxxxxxxxxxxxyxxxxxxxxxxxxxxxyxxxxxxxxxxxxxxxyxxxxxxxxxxxxxxxyxxxxxxxxxxxxxxxyxxxxxxxxxxxxx...
output:
0000000000000010000000000000000000000000000000000000000000000000000000000000000000000000000000000000
result:
ok single line: '000000000000001000000000000000...0000000000000000000000000000000'
Test #62:
score: 0
Accepted
time: 4ms
memory: 24536kb
input:
100 20 xxxxxxxxxxxxxxxxxxxxyxxxxxxxxxxxxxxxxxxxxyxxxxxxxxxxxxxxxxxxxxyxxxxxxxxxxxxxxxxxxxxyxxxxxxxxx...
output:
0000000000000000000100000000000000000000000000000000000000000000000000000000000000000000000000000000
result:
ok single line: '000000000000000000010000000000...0000000000000000000000000000000'
Test #63:
score: 0
Accepted
time: 0ms
memory: 24532kb
input:
100 7 xxxxxxxyxxxxxxxyxxxxxxxyxxxxxxxyxxxxxxxyxxxxxxxyxxxxxxxyyxxxxxxxyxxxxxxxyxxxxxxxyxxxxxxxyxxxxx...
output:
0000001000000000000000000000000000000000000000000000000100000000000000000000000000000000000000000000
result:
ok single line: '000000100000000000000000000000...0000000000000000000000000000000'
Test #64:
score: 0
Accepted
time: 4ms
memory: 24536kb
input:
100 4 babbababaabababaabbaaabbbaaaaabaaababbbbaaaaabbbaabbbbaaabbbbabbaaaaaabababaabaababbbbabbbbbaa...
output:
0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
result:
ok single line: '000000000000000000000000000000...0000000000000000000000000000000'
Test #65:
score: 0
Accepted
time: 8ms
memory: 24536kb
input:
100 5 kkkkkkxkkkkkkxkkkkkkxkkkkkkxkkkkkkxkkkkkkxskkkkkkxkkkkkkxkkkkkkxkkkkkkxkkkkkkxkkkkkkxskkkkkkxk...
output:
0000110000000000000000000000000000111111110000000000000000000000000000000000000000000000000000000000
result:
ok single line: '000011000000000000000000000000...0000000000000000000000000000000'
Test #66:
score: 0
Accepted
time: 0ms
memory: 24532kb
input:
100 1 ggggvggggvoggggvggggvoggggvggggvocggggvggggvoggggvggggvoggggvggggvocjggggvggggvoggggvggggvoggg...
output:
1111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111
result:
ok single line: '111111111111111111111111111111...1111111111111111111111111111111'
Test #67:
score: 0
Accepted
time: 8ms
memory: 24536kb
input:
100 3 zshffbzshffbzshffbzshffbzshffbzshffbzshffbzshffbzshffbzshffbzshffbzshffbzshffbzshffbzshffbzshf...
output:
0000000000000000011111110000000000011111111111110000011111111111111111111111111111111111111111111111
result:
ok single line: '000000000000000001111111000000...1111111111111111111111111111111'
Test #68:
score: 0
Accepted
time: 4ms
memory: 24536kb
input:
100 12 fnjfnjfnjfnjfnjfnjfnjfnjfnjfnjfnjfnjfnjfnjfnjfnjfnjfnjfnjfnjfnjfnjfnjfnjfnjfnjfnjfnjfnjfnjfnj...
output:
0000000000000000000000000000000000011110000000000000000000000000000000011111110000000000000000000000
result:
ok single line: '000000000000000000000000000000...0011111110000000000000000000000'
Test #69:
score: 0
Accepted
time: 5ms
memory: 24516kb
input:
100 6 dddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddd...
output:
0000011000011100011110011111011111111111111111111111111111111111111111111111111111111111111111111111
result:
ok single line: '000001100001110001111001111101...1111111111111111111111111111111'
Test #70:
score: 0
Accepted
time: 0ms
memory: 24624kb
input:
2500 5 yyyyymyyyyymyyyyymyyyyymyyyyymwyyyyymyyyyymyyyyymyyyyymyyyyymwyyyyymyyyyymyyyyymyyyyymyyyyymw...
output:
0000100000000000000000000000010000000000000000000000000000000000000000000000000000000000000000000000...
result:
ok single line: '000010000000000000000000000001...0000000000000000000000000000000'
Test #71:
score: 0
Accepted
time: 3ms
memory: 24596kb
input:
2500 2 bbbbbgbbbbbgfbbbbbgbbbbbgfbbbbbgbbbbbgfwbbbbbgbbbbbgfbbbbbgbbbbbgfbbbbbgbbbbbgfwzbbbbbgbbbbbg...
output:
0111100000010000000000000111111111111110000000000000000000000000000000000000000100000000000000000000...
result:
ok single line: '011110000001000000000000011111...0000000000000000000000000000000'
Test #72:
score: 0
Accepted
time: 7ms
memory: 24608kb
input:
2500 1 oodvoodvuoodvoodvuuoodvoodvuoodvoodvuuloodvoodvuoodvoodvuuoodvoodvuoodvoodvuulwfguuoodvoodvuo...
output:
1111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111...
result:
ok single line: '111111111111111111111111111111...1111111111111111111111111111111'
Test #73:
score: 0
Accepted
time: 3ms
memory: 24632kb
input:
2500 7 vvvvvvvcvvvvvvvcvvvvvvvcvvvvvvvcvvvvvvvcvvvvvvvcvvvvvvvcvvvvvvvclvvvvvvvcvvvvvvvcvvvvvvvcvvvv...
output:
0000001000000000000000000000000000000000000000000000000111111111000000000000000000000000000000000000...
result:
ok single line: '000000100000000000000000000000...0000000000000000000000000000000'
Test #74:
score: 0
Accepted
time: 0ms
memory: 24644kb
input:
2500 130 lllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllll...
output:
0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000...
result:
ok single line: '000000000000000000000000000000...0000000000000000000000000000000'
Test #75:
score: 0
Accepted
time: 9ms
memory: 24596kb
input:
2500 2 bbaabaaaaabaabbbaabaabbaabaaaaabbababaabaabababbaabaaaaaaaaabbbabbbabbbbbabaaabaaaaabbabbbbaa...
output:
0100000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000...
result:
ok single line: '010000000000000000000000000000...0000000000000000000000000000000'
Test #76:
score: 0
Accepted
time: 4ms
memory: 24596kb
input:
2500 2 abaaaaabbabbaabbbaabaaababaabbbbabbbbbaabbaabbbbaaaaabbaabbbaaabbbaaaaabbabbabaabaabbbbbaaaaa...
output:
0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000...
result:
ok single line: '000000000000000000000000000000...0000000000000000000000000000000'
Test #77:
score: 0
Accepted
time: 4ms
memory: 24596kb
input:
2500 2 aaabbaaababbaababbbbaaabaaabbbbbbbbbbbbababbbaaabbbabbbbaaabbbbaaabbbabbbaaabaaabbaabaabaaaba...
output:
0110000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000...
result:
ok single line: '011000000000000000000000000000...0000000000000000000000000000000'
Test #78:
score: 0
Accepted
time: 7ms
memory: 24600kb
input:
2500 3 bbaaababbaaabbbbaaabbabaaabbbbaabaabbaaababaaaaaaabbaaabbbaaaaababaabbaabbbbbbbbbababbbaabaaa...
output:
0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000...
result:
ok single line: '000000000000000000000000000000...0000000000000000000000000000000'
Test #79:
score: 0
Accepted
time: 4ms
memory: 24596kb
input:
2500 3 abaaaaabbbbabbbababbbbababaabbbaababaaabbbbbaabbababaabbbbbbbabbbbabbaabbbababbaababababababb...
output:
0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000...
result:
ok single line: '000000000000000000000000000000...0000000000000000000000000000000'
Test #80:
score: 0
Accepted
time: 5ms
memory: 24592kb
input:
2500 4 aaabbabbbbbabaababbbaaabbaabaaaaaabbaaabbbabbaaaaabaababbaabaabbbaababbaabbabbabbbabaaababaab...
output:
0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000...
result:
ok single line: '000000000000000000000000000000...0000000000000000000000000000000'
Test #81:
score: 0
Accepted
time: 0ms
memory: 24604kb
input:
2500 4 aaaabababbaaaaabbaaaaabaaabaabbbbbbbbabbbbbbaabbabbbbbbbbbbaaabbaaabbbaabaababaaaababbbaabaab...
output:
0001000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000...
result:
ok single line: '000100000000000000000000000000...0000000000000000000000000000000'
Test #82:
score: 0
Accepted
time: 7ms
memory: 24604kb
input:
2500 4 abbbbbbaaaaaaabaaaabbbaaababaaabbbabaabbabbabaaaaabaabaababbabaaabbababbbababbabbbbbbbbaaabab...
output:
0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000...
result:
ok single line: '000000000000000000000000000000...0000000000000000000000000000000'
Test #83:
score: 0
Accepted
time: 0ms
memory: 24596kb
input:
2500 5 ababaaaabbaabaaaaaabbabaaaaababbbbbbbbbbbbbabbabbbaabaababbababababbaaababbbabbbababbababaaab...
output:
0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000...
result:
ok single line: '000000000000000000000000000000...0000000000000000000000000000000'
Test #84:
score: 0
Accepted
time: 3ms
memory: 24604kb
input:
2500 5 bbbbbbabaabbbaabbbbababaabaababababbbaaaabbbbbaabaaaabaaabaabbabaaabaabababbabbbbababbaaabaaa...
output:
0000110000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000...
result:
ok single line: '000011000000000000000000000000...0000000000000000000000000000000'
Test #85:
score: 0
Accepted
time: 8ms
memory: 24600kb
input:
2500 5 aabbbbbbbbaaaabbbabbbbaaaaaaabbaaaabababbabbaaabbbaaabbbbbbabaabbaabaaababaaabbbabbbaaaaababb...
output:
0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000...
result:
ok single line: '000000000000000000000000000000...0000000000000000000000000000000'
Test #86:
score: 0
Accepted
time: 8ms
memory: 24648kb
input:
2500 5 dwjefaogypcifqefxzcfxtvqvvjkflxikhophfxhuzqzpwgnvjuuepmakwmrhjbtssicxfjrhbtwzzlwkftrufthbfyjq...
output:
0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000...
result:
ok single line: '000000000000000000000000000000...0000000000000000000000000000001'
Test #87:
score: 0
Accepted
time: 4ms
memory: 24636kb
input:
2500 3 curquntzziruhtdmourgoccecnpspbervwirjdqiokexdhjrcazqecwhrnzgofzmbjdmpuxdgballldpnehrieyztzhkf...
output:
0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000...
result:
ok single line: '000000000000000000000000000000...0000000000000000000000000000000'
Test #88:
score: 0
Accepted
time: 4ms
memory: 24652kb
input:
2500 33 acvjpngvaacvjpngvaacvjpngvaacvjpngvaacvjpngvaacvjpngvaacvjpngvaacvjpngvaacvjpngvaacvjpngvaac...
output:
0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000...
result:
ok single line: '000000000000000000000000000000...0000000000000000000000000000000'
Test #89:
score: 0
Accepted
time: 4ms
memory: 24652kb
input:
2500 18 wkjlqeeipdpfiwkjlqeeipdpfiwkjlqeeipdpfiwkjlqeeipdpfiwkjlqeeipdpfiwkjlqeeipdpfiwkjlqeeipdpfiw...
output:
0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000...
result:
ok single line: '000000000000000000000000000000...1000000000000000000000000000000'
Test #90:
score: 0
Accepted
time: 0ms
memory: 24648kb
input:
2500 140 qplkexfqwzufbcqplkexfqwzufbcqplkexfqwzufbcqplkexfqwzufbcqplkexfqwzufbcqplkexfqwzufbcqplkexf...
output:
0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000...
result:
ok single line: '000000000000000000000000000000...0000000000000000000000000000000'
Test #91:
score: 0
Accepted
time: 4ms
memory: 24660kb
input:
2500 420 bkuywbkuywbkuywbkuywbkuywbkuywbkuywbkuywbkuywbkuywbkuywbkuywbkuywbkuywbkuywbkuywbkuywbkuywb...
output:
0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000...
result:
ok single line: '000000000000000000000000000000...0000000000000000000000000000000'
Test #92:
score: 0
Accepted
time: 9ms
memory: 24712kb
input:
2500 650 eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee...
output:
0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000...
result:
ok single line: '000000000000000000000000000000...0000000000000000000000000000000'
Test #93:
score: 0
Accepted
time: 4ms
memory: 24684kb
input:
2500 800 dododododododododododododododododododododododododododododododododododododododododododododod...
output:
0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000...
result:
ok single line: '000000000000000000000000000000...0000000000000000000000000000000'
Test #94:
score: 0
Accepted
time: 111ms
memory: 87984kb
input:
1000000 23 cicicicicicicicicicicicicicicicicicicicicicicicicicicicicicicicicicicicicicicicicicicicic...
output:
0000000000000000000000000000000000000000000001110000000000000000000000000000000000000000000111110000...
result:
ok single line: '000000000000000000000000000000...1111111111111111111111111111111'
Test #95:
score: 0
Accepted
time: 11ms
memory: 37216kb
input:
200000 200 twtwtwtwtwtwtwtwtwtwtwtwtwtwtwtwtwtwtwtwtwtwtwtwtwtwtwtwtwtwtwtwtwtwtwtwtwtwtwtwtwtwtwtwt...
output:
0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000...
result:
ok single line: '000000000000000000000000000000...1111111111111111111111111111111'
Test #96:
score: 0
Accepted
time: 19ms
memory: 37216kb
input:
200000 500 grgrgrgrgrgrgrgrgrgrgrgrgrgrgrgrgrgrgrgrgrgrgrgrgrgrgrgrgrgrgrgrgrgrgrgrgrgrgrgrgrgrgrgrg...
output:
0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000...
result:
ok single line: '000000000000000000000000000000...0000000000000000000000000000001'
Test #97:
score: 0
Accepted
time: 92ms
memory: 87984kb
input:
1000000 61445 jdjdjdjdjdjdjdjdjdjdjdjdjdjdjdjdjdjdjdjdjdjdjdjdjdjdjdjdjdjdjdjdjdjdjdjdjdjdjdjdjdjdjd...
output:
0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000...
result:
ok single line: '000000000000000000000000000000...0000000000000000000000000000000'
Test #98:
score: 0
Accepted
time: 120ms
memory: 87984kb
input:
1000000 321758 zmzmzmzmzmzmzmzmzmzmzmzmzmzmzmzmzmzmzmzmzmzmzmzmzmzmzmzmzmzmzmzmzmzmzmzmzmzmzmzmzmzmz...
output:
0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000...
result:
ok single line: '000000000000000000000000000000...0000000000000000000000000000000'
Test #99:
score: 0
Accepted
time: 110ms
memory: 87980kb
input:
1000000 499999 vxvxvxvxvxvxvxvxvxvxvxvxvxvxvxvxvxvxvxvxvxvxvxvxvxvxvxvxvxvxvxvxvxvxvxvxvxvxvxvxvxvxv...
output:
0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000...
result:
ok single line: '000000000000000000000000000000...0000000000000000000000000000111'
Test #100:
score: 0
Accepted
time: 98ms
memory: 35076kb
input:
300000 3 aaauaaauaaaukaaauaaauaaaukaaauaaauaaaukaaauaaauaaaukaaaauaaauaaaukaaauaaauaaaukaaauaaauaaau...
output:
0010000000010000000000000000000000000011111111111111000000000000000000000000000000000000000000000000...
result:
ok single line: '001000000001000000000000000000...0000000000000000000000000000000'
Test #101:
score: 0
Accepted
time: 176ms
memory: 43372kb
input:
500000 3 qqqaqqqaqqqamqqqaqqqaqqqamqqqaqqqaqqqamqqqaqqqaqqqamyqqqaqqqaqqqamqqqaqqqaqqqamqqqaqqqaqqqa...
output:
0010000000010000000000000000000000000011111111111111000000000000000000000000000000000000000000000000...
result:
ok single line: '001000000001000000000000000000...1111111111111111111111111111111'
Test #102:
score: 0
Accepted
time: 286ms
memory: 53432kb
input:
800000 2 ttmttmttmmttmttmttmmttmttmttmmottmttmttmmttmttmttmmttmttmttmmottmttmttmmttmttmttmmttmttmttm...
output:
0100011110000000000111111111110000000000000000000000000000000111111111111111111111111111111110000000...
result:
ok single line: '010001111000000000011111111111...0000000000000000000000000000000'
Test #103:
score: 0
Accepted
time: 326ms
memory: 52992kb
input:
1000000 2 xxqxxqkxxqxxqkxxqxxqkcxxqxxqkxxqxxqkxxqxxqkcyxxqxxqkxxqxxqkxxqxxqkcxxqxxqkxxqxxqkxxqxxqkcy...
output:
0100010000000111111110000000000000000000000100000000000000000000000000000000000000000000010000000000...
result:
ok single line: '010001000000011111111000000000...0000000000000000000000000000000'
Test #104:
score: 0
Accepted
time: 379ms
memory: 62012kb
input:
1000000 7 kkkkkkkakkkkkkkakkkkkkkakkkkkkkakkkkkkkakkkkkkkakkkkkkkakkkkkkkakkkkkkkahkkkkkkkakkkkkkkak...
output:
0000001000000000000000000000000000000000000000000000000111111111000000000000000000000000000000000000...
result:
ok single line: '000000100000000000000000000000...0000000000000000000000000000000'
Test #105:
score: 0
Accepted
time: 342ms
memory: 60496kb
input:
1000000 2 ssssstssssstssssstssssstssssstssssstssssstssssstmssssstssssstssssstssssstssssstssssstsssss...
output:
0111100000011111110000011111111111111111111111110000000000000000000000000000000000000000000000000111...
result:
ok single line: '011110000001111111000001111111...0000000000000000000000000000000'
Test #106:
score: 0
Accepted
time: 271ms
memory: 61012kb
input:
1000000 2 uuuuuuuuuuuuuuuuuuuuuunuuuuuuuuuuuuuuuuuuuuuunuuuuuuuuuuuuuuuuuuuuuunuuuuuuuuuuuuuuuuuuuuu...
output:
0111111111111111111111000000000000000000000001111111111111111111111110000000000000000000000111111111...
result:
ok single line: '011111111111111111111100000000...1111111111111111111111111111111'
Test #107:
score: 0
Accepted
time: 398ms
memory: 68148kb
input:
1000000 5 vvvvvvvvvvvvvvvvfvvvvvvvvvvvvvvvvfvvvvvvvvvvvvvvvvfvvvvvvvvvvvvvvvvfvvvvvvvvvvvvvvvvfvvvvv...
output:
0000110001110011000000000000000000000000000000000000000000000000000000000000000000001111111111111111...
result:
ok single line: '000011000111001100000000000000...0000000000000000000000000000000'
Test #108:
score: 0
Accepted
time: 184ms
memory: 44288kb
input:
500000 9 zzzzzzzzzzzpzzzzzzzzzzzpzzzzzzzzzzzpzzzzzzzzzzzpzzzzzzzzzzzpzzzzzzzzzzzpzzzzzzzzzzzpzzzzzzz...
output:
0000000011000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000...
result:
ok single line: '000000001100000000000000000000...0000000000000000000000000000000'
Test #109:
score: 0
Accepted
time: 282ms
memory: 72368kb
input:
1000000 1000 fxbaevsjefzltyksykzaatjmbkxieislfwnmrgvynxlgvxytixtitcxuoucuewimuvymdvmqsxwpvuifudnnikh...
output:
0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000...
result:
ok single line: '000000000000000000000000000000...0000000000000000000000000000001'
Test #110:
score: 0
Accepted
time: 442ms
memory: 56984kb
input:
1000000 1 zezedczezedczezedcfezezedczezedczezedcfeizezedczezedczezedcfezezedczezedczezedcfeizezedcze...
output:
1111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111...
result:
ok single line: '111111111111111111111111111111...1111111111111111111111111111111'
Test #111:
score: 0
Accepted
time: 357ms
memory: 56556kb
input:
1000000 2 qqwqqwzqqwqqwzaqqwqqwzqqwqqwzajqqwqqwzqqwqqwzaqqwqqwzqqwqqwzajqqqwqqwzqqwqqwzaqqwqqwzqqwqq...
output:
0100010000000100000000000000010000000000000000000000000000000111000000000000000000000000000000000000...
result:
ok single line: '010001000000010000000000000001...0000000000000000000000000000000'
Test #112:
score: 0
Accepted
time: 356ms
memory: 58092kb
input:
1000000 3 qqqqqqqqqqqqrqqqqqqqqqqqqrqqqqqqqqqqqqrhqqqqqqqqqqqqrqqqqqqqqqqqqrqqqqqqqqqqqqrhqqqqqqqqqq...
output:
0011011111110000000000000000000000000010000000000000000000000000000000000000000000000000000000000000...
result:
ok single line: '001101111111000000000000000000...0000000000000000000000000000000'
Test #113:
score: 0
Accepted
time: 353ms
memory: 61508kb
input:
1000000 4 ffffffffffffffffffffdffffffffffffffffffffdffffffffffffffffffffdffffffffffffffffffffdjfffff...
output:
0001100111011111111100000000000000000000000000000000000000000000000000000000000000010000000000000000...
result:
ok single line: '000110011101111111110000000000...0000000000000000000000000000000'
Test #114:
score: 0
Accepted
time: 271ms
memory: 63620kb
input:
1000000 22 eeeeeeeeeeeeeeeeeeeeeeoeeeeeeeeeeeeeeeeeeeeeeoeeeeeeeeeeeeeeeeeeeeeeoeeeeeeeeeeeeeeeeeeee...
output:
0000000000000000000001000000000000000000000000000000000000000000000000000000000000000000000000000000...
result:
ok single line: '000000000000000000000100000000...0000000000000000000000000000000'
Test #115:
score: 0
Accepted
time: 67ms
memory: 46128kb
input:
1000000 10 bbabababbbababbbbbabababaabbbababbbaabbbababababaaaaabbabbaabbaaababaaaabbbaaabbaababbbaa...
output:
0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000...
result:
ok single line: '000000000000000000000000000000...0000000000000000000000000000000'
Test #116:
score: 0
Accepted
time: 70ms
memory: 45780kb
input:
1000000 5 baababbaaaabbabaaaabbbbbbbaababaaababaababaabbabababaaabbaaaababbbbabaabbabaaaaababbababba...
output:
0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000...
result:
ok single line: '000000000000000000000000000000...0000000000000000000000000000000'
Test #117:
score: 0
Accepted
time: 87ms
memory: 45712kb
input:
1000000 2 abbaaabbbabbbbbabbabaabbbbbabababaababbbbaaabaaababbaaaaababbbbbbbababbbbbbbbbbabbbabbabba...
output:
0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000...
result:
ok single line: '000000000000000000000000000000...0000000000000000000000000000000'
Test #118:
score: 0
Accepted
time: 245ms
memory: 72312kb
input:
1000000 5 ynyrtxcnqybstqcgiqreldmxserrjldjydatadjsbklwanekfyptbbqvfhnqvszvvzpveynfiyekoixvgmoipfdwos...
output:
0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000...
result:
ok single line: '000000000000000000000000000000...1111111111111111111111111111111'
Test #119:
score: 0
Accepted
time: 247ms
memory: 72528kb
input:
1000000 146 ccuvjrtpaxcrfxqyqcqjibqhyhtbijymluhwmcoobqghpyfhavslxksxsnacxbpkvyjhdzyerengcvqeqirptmpn...
output:
0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000...
result:
ok single line: '000000000000000000000000000000...1111111111111111111111111111111'
Test #120:
score: 0
Accepted
time: 201ms
memory: 70644kb
input:
1000000 5 cdnfsucynvfjpspxswombzwuurmhinpmqduizwjotozigrhanvpqvlkpcxxnmobcrvlsrwjkkiuszctpzkfuvsmarl...
output:
0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000...
result:
ok single line: '000000000000000000000000000000...1111111111111111111111111111111'
Test #121:
score: 0
Accepted
time: 218ms
memory: 74316kb
input:
1000000 71739 ayjxolewybtoidamayjxolewybtoidamayjxolewybtoidamayjxolewybtoidamayjxolewybtoidamayjxol...
output:
0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000...
result:
ok single line: '000000000000000000000000000000...0000000000000000000000000000000'
Test #122:
score: 0
Accepted
time: 213ms
memory: 73016kb
input:
1000000 9999 wxazbnyiyeauuajdczecpyyhianckrxgpxismgamkdghdskgwxazbnyiyeauuajdczecpyyhianckrxgpxismga...
output:
0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000...
result:
ok single line: '000000000000000000000000000000...0000000000000000000000000000000'
Test #123:
score: 0
Accepted
time: 283ms
memory: 72580kb
input:
1000000 144 ucarowsxblqforcgybztqddkbuiwvemphogxkyvnmlucewkcyjwoobapxiosnchwqptcqqredmgiismibkyrnzik...
output:
0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000...
result:
ok single line: '000000000000000000000000000000...1111111111111111111111111111111'
Extra Test:
score: 0
Extra Test Passed