QOJ.ac
QOJ
ID | 题目 | 提交者 | 结果 | 用时 | 内存 | 语言 | 文件大小 | 提交时间 | 测评时间 |
---|---|---|---|---|---|---|---|---|---|
#60425 | #2163. Gene Folding | fstqwq# | AC ✓ | 185ms | 159980kb | C++17 | 2.1kb | 2022-11-04 16:17:59 | 2022-11-04 16:18:00 |
Judging History
answer
#include <bits/stdc++.h>
using namespace std;
constexpr int maxn = 4000005;
int go[maxn][5], par[maxn], val[maxn], last, pam_cnt;
int dp[maxn], id[maxn];
char s[maxn];
void extend(int n) {
int p = last, c = s[n];
while (s[n - val[p] - 1] != s[n])
p = par[p];
if (!go[p][c]) {
int q = ++pam_cnt, now = p;
val[q] = val[p] + 2;
do
p = par[p];
while (s[n - val[p] - 1] != s[n]);
par[q] = go[p][c];
last = go[now][c] = q;
// dp[q] = (val[q] % 2 == 0 ? q : dp[par[q]]);
}
else
last = go[p][c];
}
void work(int n, bool *f) {
par[0] = pam_cnt = 1;
val[1] = -1;
for (int i = 1; i <= n; i++) {
extend(i);
id[i] = last;
}
memset(dp, -1, sizeof(dp));
for (int i = 1; i <= pam_cnt; i++) {
dp[i] = dp[par[i]];
if (val[i] % 2 == 0) {
if (dp[i] == -1)
dp[i] = val[i];
}
// printf("dp[%d] = %d\n", i, dp[i]);
}
int i = n;
f[n] = true;
while (dp[id[i]] != -1) {
assert(dp[id[i]] % 2 == 0);
// printf("i = %d -= %d\n", i, dp[id[i]] / 2);
i -= dp[id[i]] / 2;
f[i] = true;
}
for (int i = 0; i <= pam_cnt; i++) {
memset(go[i], 0, sizeof(go[i]));
par[i] = val[i] = dp[i] = 0;
}
last = pam_cnt = 0;
for (int i = 0; i <= n; i++)
id[i] = 0;
}
bool f[maxn], g[maxn];
char t[maxn];
int main() {
scanf("%s", t + 1);
int n = strlen(t + 1);
for (int i = 1; i <= n; i++) {
if (t[i] == 'A')
s[i] = 1;
else if (t[i] == 'C')
s[i] = 2;
else if (t[i] == 'G')
s[i] = 3;
else if (t[i] == 'T')
s[i] = 4;
else
assert(false);
}
work(n, f);
reverse(s + 1, s + n + 1);
work(n, g);
reverse(g + 1, g + n + 1);
int ans = n + 114514;
int last = -1;
for (int i = 1; i <= n; i++) {
if (g[i])
last = i;
if (f[i] && last > 0)
ans = min(ans, i - last + 1);
}
// printf("f:");
// for (int i = 1; i <= n; i++)
// printf(" %d", (int)f[i]);
// printf("\n");
// printf("g:");
// for (int i = 1; i <= n; i++)
// printf(" %d", (int)g[i]);
// printf("\n");
printf("%d\n", ans);
return 0;
}
詳細信息
Test #1:
score: 100
Accepted
time: 13ms
memory: 45296kb
input:
AGTTGTGGTTGGTGTTGTGGTGTTGGTTGTGGTTGGTGTTGGTTGTGGTGTTGTGGTTGGTGTTGTGGTGTTGGTTGTGGTGTTGTGGTTGGTGTTGGTTGTGGTTGGTGTTGTGGTGTTGGTTGTGGTTGGTGTTGGTTGTGGTGTTGTGGTTGGTGTTGGTTGTGGTTGGTGTTGTGGTGTTGGTTGTGGTGTTGTGGTTGGTGTTGTGGTGTTGGTTGTGGTTGGTGTTGGTTGTGGTGTTGTGGTTGGTGTTGTGGTGTTGGTTGTGGTGTTGTGGTTGGTGTTGGTTGTGGTTGG...
output:
524290
result:
ok single line: '524290'
Test #2:
score: 0
Accepted
time: 110ms
memory: 107936kb
input:
AGTTGTGGTTGGTGTTGTGGTGTTGGTTGTGGTTGGTGTTGGTTGTGGTGTTGTGGTTGGTGTTGTGGTGTTGGTTGTGGTGTTGTGGTTGGTGTTGGTTGTGGTTGGTGTTGTGGTGTTGGTTGTGGTAAGTTGTGGTTGGTGTTGTGGTGTTGGTTGTGGTTGGTGTTGGTTGTGGTGTTGTGGTTGGTGTTGTGGTGTTGGTTGTGGTGTTGTGGTTGGTGTTGGTTGTGGTTGGTGTTGTGGTGTTGGTTGTGGTAAGTTGTGGTTGGTGTTGTGGTGTTGGTTGTGGTTGGTGTT...
output:
1999790
result:
ok single line: '1999790'
Test #3:
score: 0
Accepted
time: 3ms
memory: 32320kb
input:
C
output:
1
result:
ok single line: '1'
Test #4:
score: 0
Accepted
time: 2ms
memory: 32160kb
input:
CCTCC
output:
3
result:
ok single line: '3'
Test #5:
score: 0
Accepted
time: 2ms
memory: 32384kb
input:
CCTCCCGGTC
output:
9
result:
ok single line: '9'
Test #6:
score: 0
Accepted
time: 5ms
memory: 32312kb
input:
CCCCCCCCCCC
output:
1
result:
ok single line: '1'
Test #7:
score: 0
Accepted
time: 5ms
memory: 30336kb
input:
CCTTCCCCTTCC
output:
2
result:
ok single line: '2'
Test #8:
score: 0
Accepted
time: 2ms
memory: 32268kb
input:
CCTTCCCCTTCCC
output:
2
result:
ok single line: '2'
Test #9:
score: 0
Accepted
time: 1ms
memory: 32184kb
input:
CCCTTCTTCTTCTT
output:
3
result:
ok single line: '3'
Test #10:
score: 0
Accepted
time: 175ms
memory: 159952kb
input:
GTGTGTGTGTGTGTGTGTGTGTGTGTGTGTGTGTGTGTGTGTGTGTGTGTGTGTGTGTGTGTGTGTGTGTGTGTGTGTGTGTGTGTGTGTGTGTGTGTGTGTGTGTGTGTGTGTGTGTGTGTGTGTGTGTGTGTGTGTGTGTGTGTGTGTGTGTGTGTGTGTGTGTGTGTGTGTGTGTGTGTGTGTGTGTGTGTGTGTGTGTGTGTGTGTGTGTGTGTGTGTGTGTGTGTGTGTGTGTGTGTGTGTGTGTGTGTGTGTGTGTGTGTGTGTGTGTGTGTGTGTGTGTGTGTGTGTGTGTGT...
output:
1333400
result:
ok single line: '1333400'
Test #11:
score: 0
Accepted
time: 127ms
memory: 106364kb
input:
GGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGG...
output:
32764
result:
ok single line: '32764'
Test #12:
score: 0
Accepted
time: 144ms
memory: 106660kb
input:
GGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGG...
output:
32768
result:
ok single line: '32768'
Test #13:
score: 0
Accepted
time: 158ms
memory: 159236kb
input:
CCGAAGCGCCCACCGTGTTGGAATCCGGTAGGACAGAAGACGGTAGGGAACGTAGGATTCACCAAAAGTTGCGTGGTTTAACTTGGAAGGTTCAATTTGGTGCGTTGAAAACCACTTAGGATGCAAGGGATGGCAGAAGACAGGATGGCCTAAGGTTGTGCCACCCGCGAAGCCTGATTTCACGCGATCGCAGAGCGGTCTGAATCTTAACGCCCATACAATAACCTACGTACGTGAGCGCAAGTCCAAATCAGATGATCGTCACTGCCGCTCTGCTGCCCTAGATAGTTCATGTGCGCA...
output:
32768
result:
ok single line: '32768'
Test #14:
score: 0
Accepted
time: 135ms
memory: 156684kb
input:
TAAAAAATTTTAAAAAATTAATTTTAATTAAAATTAATTTTAATTAAAAAAAATTAATTAATTAATTAATTAATTTTAATTAATTAATTAATTAATTAAAAAAAATTAATTTTAATTAAAATTAATTTTAATTAAAAAAAATTAATTAATTAATTAATTAATTTTAATTAATTAATTAATTAATTAAAAAAAATTAATTTTAATTAAAAAAAATTAATTAATTAATTAATTAATTAATTAATTAATTAATTAATTAATTAATTAATTAATTAATTAATTAAAAAAAATTAATTAAAATTA...
output:
41566
result:
ok single line: '41566'
Test #15:
score: 0
Accepted
time: 169ms
memory: 53732kb
input:
AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA...
output:
3900000
result:
ok single line: '3900000'
Test #16:
score: 0
Accepted
time: 114ms
memory: 107300kb
input:
AGAGAGAGAGAGAGAGAGAGAGAGAGAGAGAGAGAGAGAGAGAGAGAGAGAGAGAGAGAGAGAGAGAGAGAGAGAGAGAGAGAGAGAGAGAGAGAGAGAGAGAGAGAGAGAGAGAGAGAGAGAGAGAGAGAGAGAGAGAGAGAGAGAGAGAGAGAGAGAGAGAGAGAGAGAGAGAGAGAGAGAGAGAGAGAGAGAGAGAGAGAGAGAGAGAGAGAGAGAGAGAGAGAGAGAGAGAGAGAGAGAGAGAGAGAGAGAGAGAGAGAGAGAGAGAGAGAGAGAGAGAGAGAGAGAGAGAGAGAG...
output:
4000000
result:
ok single line: '4000000'
Test #17:
score: 0
Accepted
time: 181ms
memory: 157912kb
input:
GTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTT...
output:
4000000
result:
ok single line: '4000000'
Test #18:
score: 0
Accepted
time: 140ms
memory: 124760kb
input:
GTGTGTGTGTGTGTGTGTGTGTGTGTGTGTGTGTGTGTGTGTGTGTGTGTGTGTGTGTGTGTGTGTGTGTGTGTGTGTGTGTGTGTGTGTGTGTGTGTGTGTGTGTGTGTGTGTGTGTGTGTGTGTGTGTGTGTGTGTGTGTGTGTGTGTGTGTGTGTGTGTGTGTGTGTGTGTGTGTGTGTGTGTGTGTGTGTGTGTGTGTGTGTGTGTGTGTGTGTGTGTGTGTGTGTGTGTGTGTGTGTGTGTGTGTGTGTGTGTGTGTGTGTGTGTGTGTGTGTGTGTGTGTGTGTGTGTGTGTGT...
output:
4000000
result:
ok single line: '4000000'
Test #19:
score: 0
Accepted
time: 2ms
memory: 30188kb
input:
CCCCGGTTCGAAAAAAAAGCTTGGCAACGGGGCAACGGGGCAACGGTTGGCAACGGGGCAACGGGGCAACGGTTCGAAAAGCTTGGCAACGGTTCGGCTTGGCAACGGTTCGGCTTGGCAACGGTTCGGCTTGGCAACGGTTCGAAAAGCCGAAAAGCTTGGCAACCAACGGTTCGAAAAAAGCTTGGCAAAACGGTTCG
output:
9
result:
ok single line: '9'
Test #20:
score: 0
Accepted
time: 2ms
memory: 32388kb
input:
CCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCAACCCCCCCCCCAACCCTTTTCCCAACCCTTCGGCTTCCCAGCCCCCCGACCAGCCCCCCGGCCCCGGCCCCCCGAAGCCCCCCCCCCCCGAAGCCCCGAAGCCCCCCCCGAAGCCCCCCCCGAAGGGGAAGGGGAAGCCCCCCGAAAAGCCCC
output:
10
result:
ok single line: '10'
Test #21:
score: 0
Accepted
time: 7ms
memory: 30112kb
input:
CCAGCCCCCCGACCGGCCAGCCGAAGCCGACCGGGGCCCCGGGGCCAGCCGAAGCCGACCGGCCAGCCCCGACCGGCCAGCCGAAGCCGACCGGGGCCAGCCGAAGCCGACCGGCCAGCCGGCCGACCGGCCAGCCGAAGCCGACCGGCCAGCCGACCGCGACCCCAGGGGACCCCAGCGCCAGCCGACCGGCCAGCCGGCCGACCGGCCCCGGCCAGCCGGCCGACCAGCCGGCCGACCGGCCCCGGCC
output:
10
result:
ok single line: '10'
Test #22:
score: 0
Accepted
time: 0ms
memory: 30224kb
input:
GGGGCCGTTGCTTTTCGTTGCCGGCCGTTGCTTCGGCTTCCTTCGGCTTCGTTGCCGGCCGTTGCTTCGGCTTCGTTGCCGTTGGTTGCCGTTGCTTCGGCTTCGTTGCCGTTGCCGTTGCTTCGTTGCCGTTGCTGCCCATTCAAAAAGGGGGGAAAAACTTACCCGTCGTTGCCCCGGCCCCGTTGCCGTTGCCCCGGCCCCGTTGCTGCCCAACCCGTCGTTGCCCCGGCCCCGTTGCCGTTTTTTT
output:
18
result:
ok single line: '18'
Test #23:
score: 0
Accepted
time: 5ms
memory: 30116kb
input:
CTAAAAAATCCTAAAAAATCTGTTGTCTAAAAAATCCTAAAAAATCTGTCAAAACTGTCTTCTGTCAAAACTGTCTAAAAAATCTGTCAAAACTGTCTAAAATGCAACGGCAACGTAAAATCTGTCAAAACTGTCTAAAATGCAACGCAAAGCCGAAACGCAACGTAAAATCTGTCAACTGTCTAAAATGCAACCAACGTAAAATCTGTCAACTGTCTAAAATTAAAATCTGTCAACTGTCTAAAATGGT
output:
24
result:
ok single line: '24'
Test #24:
score: 0
Accepted
time: 2ms
memory: 32428kb
input:
CCAAAACCAACCAAGGTGTACAACATGTGGAACGGGGCAAGGTGTACAACATGTGGAACGGGGCAAGGTGTACAACATGTGGAACGGCAAGGTGTACAAGAATATTATAAAATATTATAAGAACATGTGGAACGTACGCGAACGTAGAGACAGATTAGACAGAGATGCAAGCGCCGCGAACGTAGAGACAGATTAGAAGATTAGACCAGATTAGAAGATTAGACAGGACAGATTAGAAGAAGAAGATTTT
output:
40
result:
ok single line: '40'
Test #25:
score: 0
Accepted
time: 2ms
memory: 30276kb
input:
TTTTCTTGGGAAGGAAGGGTTCTTTTTTCTTGGGAAGGGTTCTTTTCTTGGGATCCTGGGCCCCGGGTCCTAGGGTTCTTGATCTGTGTGCAGGGATACACTTGCCATTCGATTTGTCACACCAGGTTTGACCCCATATCTTTTCTATACCCCAGTTTGGACCAACCCCAACCAGGTTTGACCCCATTACCCCAGTTTGGACCAACCAGGTTTGACCCCATTAATTACCCCAGTTTGGACCAACCAGGAA
output:
78
result:
ok single line: '78'
Test #26:
score: 0
Accepted
time: 0ms
memory: 32324kb
input:
GGACGTTTTGCAGTGGTCCGTACCATGCCTGGTGACGTTGTACCCTAACGTCCTACCATCCTGCAATCCCATGTTGCAGTGGTCCGTACCATGCCTGGTGACGTTGTACCCTAACGTCCTACCACAATCTTCGCTATACTACTTTCACCGGGCAGTATGTAAAGGAAATGTATGACGGGCCACTTTCATCAACTACTTTCAACTTTCATCAACTACTTTCACCGGGCAGTAATGACGGGCCACTTTCAAC
output:
75
result:
ok single line: '75'
Test #27:
score: 0
Accepted
time: 2ms
memory: 30368kb
input:
CCGCTAGGAATAACTAAACAATCAATTCGGCTTAACTAACAAATCAATAAGGATCGCACTGCCGTCACGCTAGGAATAACTAAACAATCAATTCGGAACATCTGGCATCCTCCCGTACGATGTCTAGGGTGTTAGCCGTCCCACCCAACTGCATTGGCAGAAAAGACGGTTACGTCAACCCACCCTGCCGATTGTGGGATCTGTAGCATGCCCTCCTACGGTCTACAAGGCTTAACTAACAAATCAATAA
output:
99
result:
ok single line: '99'
Test #28:
score: 0
Accepted
time: 2ms
memory: 30268kb
input:
GGGCATCCTTCCTACGGGGCATCTCCCCTCTACGTGTATAGGGCCAAAACCGGGATATGTGCATCTCCCCTCTACGTGTATAGGGCCAAGACTGCCGTCAGAACCGGGATATGTGCATCTCCGCTACCCCGTCCGAATTGATTACTTGTATGATGGTAGTATGTTCATTAGTTAAGCCTGCCCCATCGCCTCTACGTGTATAGGGCCAAGACTGCCGTCAGAAAAGACTGCCGTCAGAACCGGCCAAGAC
output:
60
result:
ok single line: '60'
Test #29:
score: 0
Accepted
time: 7ms
memory: 32312kb
input:
AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAACCAACCAAAACCAACCAAAAAAAACCCCAAAACCAAAACCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCC
output:
2
result:
ok single line: '2'
Test #30:
score: 0
Accepted
time: 7ms
memory: 32416kb
input:
GGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGAAAAAAGGGGGGGGGGGGAAAAAAAAGGGGGGGGGGGGGGAAAAGGGGAAAAGGGGGGGGGGAAGGGGGGAAGGGGGGGGAAGGGGGGAAGGGGAAGGGGGGAAGGGGGGAAGGGGGGAAGGGGGGGGGGGGGGGGAAGGGGGGAAGGGGGGGGGGGGGGGGGGGGGGAAGGGGGGGGAAGGAAGGGGGGGGAAGGAAGGAAGGGGG
output:
2
result:
ok single line: '2'
Test #31:
score: 0
Accepted
time: 7ms
memory: 32196kb
input:
TGCCGTTGGTTGGTTGCGGGGGGGGGGGGGGGGCGTTGGTTGGTTGCGGGGGGGGGGGGGGCCGGGGGGGGGGGGGGCGTTGGTTGCGGGGGGGGCGTTGCCGTTGCGGCGGGGCGGCGTTGCCGTTGCGGGGCGTTGCCGTTGCGGCGGCGGCGGCGGCGTTGCCGTTGCGGCGTTGCGGCGTTGCGGCGTTGCCGTTGCGGCCGGCGTTGCCCCGTTGCGGGGCGGCGGGGCCCCCCGGGGCGGCGGG
output:
4
result:
ok single line: '4'
Test #32:
score: 0
Accepted
time: 2ms
memory: 30356kb
input:
CCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCACGGCCGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGG
output:
4
result:
ok single line: '4'
Test #33:
score: 0
Accepted
time: 2ms
memory: 32424kb
input:
GGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGTTGGTTGGGGTTGGGGTTTTTTTTGGGGTTTTTTGGTTTTGGTTTTGGTTGGGGTTGAAGGGGAAGTTGACGGCAGTTGACGATTAGCCGGCCGGGGCCGGCCGGCCGGCCCCGGCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCC
output:
7
result:
ok single line: '7'
Test #34:
score: 0
Accepted
time: 2ms
memory: 32316kb
input:
AAAAAAAAAAAAGGGGAAAAGGGGAAAAAAGGGGAAAAGGAAGTTTTTTTTGAAGGAAGTTTTGAAGTTTTGAAGTGGTTGGGGTTGGTGAAGTTGAAGTGGTTGGGGTTGGTGAAGTGGTGAAGTGGTGAAGTGGGGTGAAGTGGTGGTGGTGAAGTGGGGGGGGGGTGAAAAGTGGGGTGAAAAGGAAAAGTGGTGGTGGGGTGGTGGTGAAAAGTGGTGGGGTGGTGAAGTGGGGGGGGGGGGGGTT
output:
4
result:
ok single line: '4'
Test #35:
score: 0
Accepted
time: 2ms
memory: 30112kb
input:
AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAGGGGGGAAAAAAGGGGAAAAGGGGGGAAAAGGGGGGGGAAAAGGAAAAGGGGAAAAGGAAGGAAGGAATTAGGATTAAGAGGGGGGAGAAGAAGAAAAGAAGGAAGAAAAGAAGGGGAAGAAAAGGAAAAGAAGAAAAGGGGAAAAGGAAAAGGGGGGAAAAGGGGAAAAGG
output:
9
result:
ok single line: '9'
Test #36:
score: 0
Accepted
time: 0ms
memory: 30180kb
input:
TGCCGGCCGTTGCGTTGCGTTGCCGTTGCCGTTGCCGTTGCGTTTTGCGGCGTTTTGCGTTGCGTTCGAACCAAGCTTGCGTTGCGTTTTGCGTTGCGTTCGAACTTCAAGCTTGCGGCGTTCGAACTTCAACCAACTTCAAGCTTGCCGTTCGAACTTCAACCAACTTTTCAACCAACTTCAAGCTTGCCCCGTTCGAACCAAGCTTGCCCCCCGTTCGAACCAAGCTTTTCGAACCAAGCTTGCCCCC
output:
12
result:
ok single line: '12'
Test #37:
score: 0
Accepted
time: 6ms
memory: 32244kb
input:
GGGGCCGAAGCCGCTTCGCCGACGTCCTGCAACGTCCTGCAGCCGCTGAAGTCCTTCCTGAAGTCGCCGACGTCCTGCAACGTCCTGCAGCCGCTGGTCGCCGACGTTGCAACGTTGCAGCCGCTGGTCGCCGACGTCCTGCAACGTCCTGCAGCCGCTGAAGTCCTGAAGTCGGCTGAAGTCCTGAAGTCGCCGACGTCCTGCAACGTCCTGCAGCCGCTGGTCGGCTGGTCGCCGACGTCCTGCAACGTCCTGCAGCCGCTGAAGTCCTGAAGTCGGCTGAAGTCCTGAAGTCGCCGA...
output:
13
result:
ok single line: '13'
Test #38:
score: 0
Accepted
time: 0ms
memory: 30288kb
input:
TTTTTCATACTTCATACTTCATACTGGCTCCTTCCTCGGTCCTGGCTCCTTCCTCGGTCATACTTCATACTTCATACTTCATACTGGCTCCTCGGTCATACTTCCTTCATACTGGCTCCTCGGTCATACTTCATACTTCATACTTCATACTGGCTCCTTCCTCGGTCATACTTCATACTTCATACTTCATACTGGCTCCTCGGTCATACTTCATACTTCATACTTCATACTGGCTCCTCGGTCATACTTCATACTTCATACTTCATTACTTCATACTTCATACTTCATACTGGCTCCTCG...
output:
12
result:
ok single line: '12'
Test #39:
score: 0
Accepted
time: 2ms
memory: 32180kb
input:
ATTAGGATTAGAAAAAAGATTAGGATTAGAAAAAAGATTAGGATTAATTTTAATTAGGATTAGAAAAAAGATTAGGATTAGAAAAAAGATTAGGATTAATTAGGGGATTAATTAGGATTAGGGGATTAGGATTAATTAGGGGATTAATTAGGATTAGAAAAGATTAGGATTAATTAGGGGATTTTAGGGGATTAATTAATTAGGGGATTTTAGGGGATTAATTAGGATTAGAAAAGATTAGGATTAATTAGGGGATTAATTAGGATTAGGGGATTAGGATTAATTAGGGGATTAATTAGG...
output:
4
result:
ok single line: '4'
Test #40:
score: 0
Accepted
time: 5ms
memory: 30148kb
input:
AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA...
output:
4
result:
ok single line: '4'
Test #41:
score: 0
Accepted
time: 0ms
memory: 32184kb
input:
GGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGG...
output:
3
result:
ok single line: '3'
Test #42:
score: 0
Accepted
time: 0ms
memory: 32340kb
input:
TTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTT...
output:
1
result:
ok single line: '1'
Test #43:
score: 0
Accepted
time: 2ms
memory: 32204kb
input:
CCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCC...
output:
2
result:
ok single line: '2'
Test #44:
score: 0
Accepted
time: 7ms
memory: 30248kb
input:
GGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGG...
output:
2
result:
ok single line: '2'
Test #45:
score: 0
Accepted
time: 3ms
memory: 30392kb
input:
CCGCCGCCCCGCCGCCCTTTTCCCGCCGCCCTTCCCGCGTATCCTATGCGCCCTTCCCGCCGCCCTTCCCGCGTATCGCCGCTATGCGCCCCCCGCGTATCGCCGCTATGCGCCCTTCCCGCGTATCGCCGCTATGCGCCCTTTTCCCGCGTATCGCCGCTATGCGCCCTTCCCGCGTATCGCCGCTATGCGCCCCCCGCGTATCGCCGCTATGCGCCCTTCCCGCGTATTATGCGCCCTTCCCGCGTATCGCCGCTATGCGCCCCCCGCGTATCGCCGCTATGCGCCCTTCCCGCGTAT...
output:
55
result:
ok single line: '55'
Test #46:
score: 0
Accepted
time: 7ms
memory: 30388kb
input:
CCTTCATTACTATTATCATTACTATGCGCGTGGTCGTTCGAAGGGGGGAAGCTTGCTGGTGCGCGTATCATAGACGTTGCAGAAGACGTTGCAGATACTATGCGCGTGGTCGTTCGAAGGGGAAGCTTGCCGTTCGAAGGGGAAGCTTGCTGGTGCGCGTATCATAGACGTTGCAGATACTATGCGCGTGGTCGGCTGGTGCGCGTATCATAGACGTTGCAGATACTATGCGCGTGGTCGTTCGAAGGAAGCTTGCTGGTGCGCGTATCATAGACGTTGCAGATACTATGCGCGTGGTCG...
output:
122
result:
ok single line: '122'
Test #47:
score: 0
Accepted
time: 2ms
memory: 32200kb
input:
AGTCGTGGAGCTTTTGGGCATACTCTGCTGTCGGACACACCCAGATTAGGTTAAACGAAAATAGGGGATAAAAGCAAATTGGATTAGACCCACACAGGCTGTCGTCTCATACGGGTTTTCGAGGTGCTGAGAGCCTAATGCTCTGCGGTGAGCACGCAATGTGAGTCGCATTAGCCTGCTCACGCCGCACTGCCGCTAATCTATGCCAAGGCAGTACGGAGAGCGTGGAGTCCCTACCACCAATTTTTATGAAAAAAGCGCAATACATTTTGTGAAGGCCGGTTCTACAGGGTCAATTAT...
output:
525
result:
ok single line: '525'
Test #48:
score: 0
Accepted
time: 11ms
memory: 30272kb
input:
TGGTCCCCTGGTAGTCCTGATGGGGTAGGATGGGGTAGTCCTGATGGTCCCCTGGTCCCCTGGTAGTCCTGATGGGGGGGGTAGTCCTGATGGTCCCCTGGGGTCCCCTGGTAGTCCTGATGGGGGGGGTAGTCCTGATGGTCCCCTGGTCCCCTGGTAATGGTCCCCTGGTCCCCTGGTAGTCCTGATGGGGGGGGTAGTCCTGATGGTCCCCTGGGGTCCCCTGGTAGTCCTGATGGGGGGGGTAGTCCTGATGGTCCCCTGGTCCCCTGGTAGTCCTGATGGGGTAGGATGGGGTAG...
output:
12
result:
ok single line: '12'
Test #49:
score: 0
Accepted
time: 2ms
memory: 32296kb
input:
TTATAATAATAATATACTTAGGACTAATCAGGATTCATATAATATACTTAGGACTAATCAGGATTCATATAATATACTTAGGACTAATCAGGATTCATATAATATACTTAGGAAGGATTCATATAAAATATACTTAGGAAGGATTCATATAATATACTTAGGACTAATCAGGATTCATATAATATAATATAATATACTTAGGACTAATCAGGATTCATATAATATACTTAGGAAGGATTCATATAAAATATACTTAGGAAGGATTCATATAATATACTTAGGACTAATCAGGATTCATAT...
output:
15
result:
ok single line: '15'
Test #50:
score: 0
Accepted
time: 7ms
memory: 32284kb
input:
TTTTACCAACCATTCCTTACCAACCATTCAATCGTATCAGGGGGGACTATTTTTTATCAGGGGGGACTATGCTAACTTACCAACCATTCAATCGGCTAACTTACCAACCATTCAATCGTATCAGGGGGGACTATTTTATCAGGGGGGACTATGCTAACTTACCAACCATTCAATCGTATCAGGGGGGACTATTATCAGGGGGGACTATGCTAACTTACCAACCATTCAATCGTATCAGGGGGGACTATTTTATCAGGGGGGACTATGCTAACCAATCGTATCAGGGGGGACTATTTTATC...
output:
16
result:
ok single line: '16'
Test #51:
score: 0
Accepted
time: 2ms
memory: 30232kb
input:
CAACCCCAACCCCAACCAACCAACCCCAACCAACCAAAAAAAACCAACCAACCCCAACCAACCCCAACCAACCAACCAACCCCAACCAACCCCAACCAACCAAAAAAAACCAACCAACCCCAACCAACCAACCCCAACCAACCAAAAAAAACCAACCAACCCCAACCAACCCCAACCAACCAAAAAAAACCAACCAACCCCAACCAACCCCAACCAACCAAAAAAAACCAACCAACCAACCAACCAAAAAAAACCAACCAACCCCAACCAACCCCAACCAACCAAAAAAAACCAACCAAC...
output:
121
result:
ok single line: '121'
Test #52:
score: 0
Accepted
time: 5ms
memory: 30236kb
input:
TTAATGCCGTAAAAGACCCGCAAACAGCTTCGACAAACGCCGCAAACAGCTTCGGCTTCGACAAACGCCGCAAACAGCTTCGACAAACGCCCAGAAAATGCCGTAAAAGACCCGCAAACAGCTTCGACAAACGCCGCAAACAGCCGACAAACGCCGCAAACAGCTTCGACAAACGGCAAACAGCTTCGACAAACGCCGCAAACAGCCGACAAACGCCGCAAACAGCTTCGACAAACGCCCAGAAAATGCCGTAAAAGACCCGCAAACAGCTTCGACAAACGCCGCAAACAGCTTCGACAA...
output:
142
result:
ok single line: '142'
Test #53:
score: 0
Accepted
time: 2ms
memory: 32192kb
input:
CCTCCCGGTCTTAGAGGGGCTAACGTTACAAAATGTTGTCGCGAGCGACGCGACGACATTCTGCTCTGGTTGGTGGATGGCCCTGCGGGGAATAGCCCGG
output:
98
result:
ok single line: '98'
Test #54:
score: 0
Accepted
time: 2ms
memory: 32184kb
input:
CCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCC
output:
1
result:
ok single line: '1'
Test #55:
score: 0
Accepted
time: 2ms
memory: 30340kb
input:
TCCCCTTCCCCTTCCCCTTCCCCTTCCCCTTCCCCTTCCCCTTCCCCTTTTCCCCTTCCCCTTCCCCTTCCCCTTCCCCTTCCCCTTCCCCTTTTCCCCTTC
output:
2
result:
ok single line: '2'
Test #56:
score: 0
Accepted
time: 2ms
memory: 32412kb
input:
CCTTCCCCTTCCCCTTCCCCTTCCCCTTCCCCTTCCCCTTCCCCTTCCCCTTCCCCTTCCCCCCTTCCCCTTCCCCTTCCCCTTCCCCTTCCCCTTCCCCTTC
output:
2
result:
ok single line: '2'
Test #57:
score: 0
Accepted
time: 0ms
memory: 30336kb
input:
CCTTCCCCTTCCCCTTCCCCTTCCCCTTCCCCTTCCCCTTCCCCTTCCCCTTCCCCTTCCCCTTCCCCTTCCCCTTCCCCTTCCCCTTCCCCTTCCCCTTCCCC
output:
2
result:
ok single line: '2'
Test #58:
score: 0
Accepted
time: 3ms
memory: 30276kb
input:
CTTCTTCTTCCCGGCCCTTCTTCTTCCTTCTTCTTCCCGGCCCTTCTTCTTCTTCTTAATTCTTCTTCTTCTTCCCGGCCCTTCTTCTTCCTTCTTCTTCCCGGG
output:
19
result:
ok single line: '19'
Test #59:
score: 0
Accepted
time: 2ms
memory: 32308kb
input:
CCTCCCGGTCTTAGAGGGGCTAACGTTACAAAATGTTGTCGCGAGCGACGCGACGACATTCTGCTCTGGTTGGTGGATGGCCCTGCGGGGAATAGCCCGGCACATTCAGTTAAGGTAGTAGGCGCCCTATACAAGTGAACGCGTCAGACTCGGCAACTATGTCGGTAGAAGACACATATTTGAGTGGAGGGTCTAAACTGGGATCAAGTACAGCGTTGTGAAACTTCTGACTTGGGCGGCTAACGTTCATTGCATCTGGTACCCATGAAGCACTGTTCGCATCCACGTCGTAGTACTACA...
output:
999
result:
ok single line: '999'
Test #60:
score: 0
Accepted
time: 3ms
memory: 32216kb
input:
CCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCC...
output:
1
result:
ok single line: '1'
Test #61:
score: 0
Accepted
time: 5ms
memory: 32444kb
input:
CTGGCCCTCCCCTCCCCTCCCCTCCCGGTCCTGGCCCTCCCCTCCCCTCCCCTCCCCTCCCCTCCCGGTCCTGGCCCTCCCCTTCCCCTCCCGGTCCTGGCCCTCCCCTCCCCTCCCCTCCCCTCCCCTCCCGGTCCTGGCCCTCCCCTTCCCCTCCCGGTCCTGGCCCTCCCCTCCCCTCCCCTCCCCTCCCCTCCCGGTCCTGGCCCTTCCCGGTCCTGGCCCTCCCCTCCCCTCCCCTCCCCTCCCCTCCCGGTCCTGGCCCTCCCCTTCCCCTCCCGGTCCTGGCCCTCCCCTCCC...
output:
9
result:
ok single line: '9'
Test #62:
score: 0
Accepted
time: 5ms
memory: 32244kb
input:
CTGGCCCTCCCCTCCCCCCCCTCCCCTCCCGGTCCTGGCCCTCCCCTCCCCTCCCCTCCCCTCCCCTCCCCTCCCCTCCCGGTCCTGGCCCTCCCCCCCCTCCCGGTCCTGGCCCTCCCCTCCCCTCCCCTCCCCTCCCCTCCCCTCCCCTCCCGGTCCTGGCCCTCCCCCCCCTCCCGGTCCTGGCCCTCCCCTCCCCTCCCCTCCCCTCCCCTCCCCTCCCCTCCCGGTCCTGGCCCTCCCCCCCCTCCCGGTCCTGGCCCTCCCCTCCCCTCCCCTCCCCTCCCCTCCCCTCCCCTC...
output:
9
result:
ok single line: '9'
Test #63:
score: 0
Accepted
time: 0ms
memory: 32336kb
input:
CTGGCCCTCCCCTCCCCTCCCCTCCCCTCCCCTCCCCTTCCCCTCCCCTCCCCTCCCCTCCCCTCCCCTCCCGGTCCTGGCCCTCCCCTCCCCTCCCCTCCCCTCCCCTCCCCTCCCCTCCCCTCCCCTCCCCTCCCCTCCCCTCCCCTCCCCTCCCCTCCCCTCCCCTCCCCTCCCCTCCCGGTCCTGGCCCTCCCCTCCCCTCCCCTCCCCTCCCCTCCCCTTCCCCTTCCCCTTCCCCTCCCCTCCCCTCCCCTCCCCTCCCCTCCCGGTCCTGGCCCTCCCCTCCCCTCCCCTCCC...
output:
9
result:
ok single line: '9'
Test #64:
score: 0
Accepted
time: 2ms
memory: 30356kb
input:
CTTCTTCTTCCCGGCCCTTCTTCTTCCTTCTTCTTCCCGGCCCTTCTTCTTCTTCTTAATTCTTCTTCTTCTTCCCGGCCCTTCTTCTTCCTTCTTCTTCCCGGGGCCCTTCTTCTTCCTTCTTCTTCCCGGCCCTTCTTCTTCTTCTTATTAATTATTCTTCTTCTTCTTCCCGGCCCTTCTTCTTCCTTCTTCTTCCCGGGGCCCTTCTTCTTCCTTCTTCTTCCCGGCCCTTCTTCTTCTTTTCTTCTTCTTCCCGGCCCTTCTTCTTCCTTCTTCTTCCCGGGGCCCTTCTTCTTC...
output:
20
result:
ok single line: '20'
Test #65:
score: 0
Accepted
time: 155ms
memory: 51908kb
input:
CCTCCCGGTCTTAGAGGGGCTAACGTTACAAAATGTTGTCGCGAGCGACGCGACGACATTCTGCTCTGGTTGGTGGATGGCCCTGCGGGGAATAGCCCGGCACATTCAGTTAAGGTAGTAGGCGCCCTATACAAGTGAACGCGTCAGACTCGGCAACTATGTCGGTAGAAGACACATATTTGAGTGGAGGGTCTAAACTGGGATCAAGTACAGCGTTGTGAAACTTCTGACTTGGGCGGCTAACGTTCATTGCATCTGGTACCCATGAAGCACTGTTCGCATCCACGTCGTAGTACTACA...
output:
3999999
result:
ok single line: '3999999'
Test #66:
score: 0
Accepted
time: 185ms
memory: 159748kb
input:
CCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCC...
output:
1
result:
ok single line: '1'
Test #67:
score: 0
Accepted
time: 163ms
memory: 159752kb
input:
CTGGCCCTCCCCTCCCCTCCCCTCCCGGTCCTGGCCCTCCCCTCCCCTCCCCTCCCCTCCCCTCCCGGTCCTGGCCCTCCCCTTCCCCTCCCGGTCCTGGCCCTCCCCTCCCCTCCCCTCCCCTCCCCTCCCGGTCCTGGCCCTCCCCTTCCCCTCCCGGTCCTGGCCCTCCCCTCCCCTCCCCTCCCCTCCCCTCCCGGTCCTGGCCCTTCCCGGTCCTGGCCCTCCCCTCCCCTCCCCTCCCCTCCCCTCCCGGTCCTGGCCCTCCCCTTCCCCTCCCGGTCCTGGCCCTCCCCTCCC...
output:
9
result:
ok single line: '9'
Test #68:
score: 0
Accepted
time: 156ms
memory: 159880kb
input:
GCCCTCCCCCCCCTCCCGGTCCTGGCCCTCCCCTCCCCTCCCCTCCCCTCCCCTCCCCTCCCCTCCCGGTCCTGGCCCTCCCCCCCCTCCCGGTCCTGGCCCTCCCCTCCCCTCCCCTCCCCTCCCCTCCCCTCCCCTCCCGGTCCTGGCCCTCCCCTCCCCCCCCCCCCCCCCTCCCCTCCCGGTCCTGGCCCTCCCCTCCCCTCCCCTCCCCTCCCCTCCCCTCCCCTCCCGGTCCTGGCCCTCCCCCCCCTCCCGGTCCTGGCCCTCCCCTCCCCTCCCCTCCCCTCCCCTCCCCTC...
output:
9
result:
ok single line: '9'
Test #69:
score: 0
Accepted
time: 150ms
memory: 159768kb
input:
GGCCCTCCCCTCCCCTCCCCTCCCCTCCCCTCCCCTCCCCTCCCCTCCCCTCCCCTCCCCTCCCCTCCCCTCCCCTCCCCTCCCCTCCCCTCCCCTCCCCTCCCGGTCCTGGCCCTCCCCTCCCCTCCCCTCCCCTCCCCTCCCCTTCCCCTTCCCCTTCCCCTCCCCTCCCCTCCCCTCCCCTCCCCTCCCGGTCCTGGCCCTCCCCTCCCCTCCCCTCCCCTCCCCTCCCCTCCCCTCCCCTCCCCTCCCCTCCCCCCCCTCCCCTCCCCTCCCCTCCCCTCCCCTCCCCTCCCCTCC...
output:
9
result:
ok single line: '9'
Test #70:
score: 0
Accepted
time: 155ms
memory: 159888kb
input:
GGGCCCTTCTTCTTCCTTCTTCTTCCCGGCCCTTCTTCTTCTTCTTATTAATTATTCTTCTTCTTCTTCCCGGCCCTTCTTCTTCCTTCTTCTTCCCGGGGCCCTTCTTCTTCCTTCTTCTTCCCGGCCCTTCTTCTTCTTCTTAATTCTTCTTCTTCTTCCCGGCCCTTCTTCTTCCTTCTTCTTCCCGGCCCTTCTTCTTCGTCGGCTGCTTCTTCTTCCCGGCCCTTCTTCTTCCTTCTTCTTCCCGGCCCTTCTTCTTCTTCTTAATTCTTCTTCTTCTTCCCGGCCCTTCTTCTT...
output:
113809
result:
ok single line: '113809'
Test #71:
score: 0
Accepted
time: 168ms
memory: 159896kb
input:
AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA...
output:
13
result:
ok single line: '13'
Test #72:
score: 0
Accepted
time: 181ms
memory: 157904kb
input:
CCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCC...
output:
12
result:
ok single line: '12'
Test #73:
score: 0
Accepted
time: 163ms
memory: 159816kb
input:
GTTGGTTTTGGTGGAACGTAATGCAAGGTGGTGGAAGGTTGGAAGGTGGTGGAACGTAATGCAAGGTGGTTTTGGTTGGTTTTGGTGGAACGTAATGCAAGGTGGTGGAAGGTGGTGGAACGTATCCTTGGTTCCTATGCAAGGAACGTATCCTTGGTTCCTTGGTTCCTATGCAAGGAACGTATCCTTGGTTCCTATGCAAGGTGGTGGAAGGTGGTGGAACGTAATGCAAGGTGGTGGAAGGTGGTGGAACGTATCCTTGGTTCCTATGCAAGGAACGTATCCTTGGTTCCTATGCAA...
output:
16
result:
ok single line: '16'
Test #74:
score: 0
Accepted
time: 180ms
memory: 109392kb
input:
TTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTT...
output:
346
result:
ok single line: '346'
Test #75:
score: 0
Accepted
time: 147ms
memory: 159324kb
input:
CCCCCAGGACGGCAGGACCCAGCATTTCTCCCCAGGCTCCTCGGACCCCTCTTTACGACCCAGGACGGCAGGACCCAGCATTTCTCCCCAGGCTCCTCGGACCCCTCTTTACGACCCAGGACGGCAGGACGGCAGGACCCAGCATTTCTCCCCAGGCTCCTCGGACCCCTCTTTACGACCCAGGACGGCAGGACCCAGCATTTCTCCCCAGGCTCCTCGGACCCCTCTTTACGACCCAGGACGGCAGGACCCAGCATTTCTCCCCCCTCTTTACGACCCAGGACGGCAGGACCCAGCATT...
output:
370
result:
ok single line: '370'
Test #76:
score: 0
Accepted
time: 142ms
memory: 159980kb
input:
CGGCGGTATCAGTTGATACATGTTACCCGAGGGGGGTCAATCGGCATCATCGACCCAAAGATGTACAAGGAAAATGCCTTGGGCAGTTAGAAGGACTCGACACGATTAGCACAGCTCAGGAAGATTGACGGGTTCCGTAAAAGGAACATGTAGAAACCCAGCTACTACGGCTAACTGGGGGGAGCCCATTGTACATAGTTGACTATGGCGCGACCGTACTGAACATTCTCGATGATTAAAGATCGATGTGACAGCCGAGCGCGAAAGAAAAGAGGATATTTATTGAATCGGGATTCCCCG...
output:
376
result:
ok single line: '376'
Test #77:
score: 0
Accepted
time: 173ms
memory: 159964kb
input:
GGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGG...
output:
1212
result:
ok single line: '1212'
Test #78:
score: 0
Accepted
time: 152ms
memory: 140148kb
input:
TTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTT...
output:
1234
result:
ok single line: '1234'
Test #79:
score: 0
Accepted
time: 136ms
memory: 159732kb
input:
GGAAGAATCGTGGGTAGACAGAAGGCTGGAGCGTCTCTAAATACCGCCGAGTAGACATACGTTCTAAACTCTGATTGTACAGGGTCTGTTGGTTGTCTGGGACATGTTAGTCTCAAATCTTGCATACAGATGAGCCGCCATAAATCTCTGCGAGGTCGGAAGACAGATGGGTGCTAAGAAATATTAACGGAACACCGCGCTGATGATCTTCACTTCGGCCCAATACTCCGCTAAAGTATAATCCCAGTGTCTTGGTGACGGGTGTTGCCCCAAAAAATAATGACTGTTTAATACTTGCTA...
output:
1251
result:
ok single line: '1251'