QOJ.ac

QOJ

IDProblemSubmitterResultTimeMemoryLanguageFile sizeSubmit timeJudge time
#60152#2163. Gene FoldingMIT01#AC ✓153ms257700kbC++172.0kb2022-11-03 09:28:372022-11-03 09:49:13

Judging History

你现在查看的是最新测评结果

  • [2023-08-10 23:21:45]
  • System Update: QOJ starts to keep a history of the judgings of all the submissions.
  • [2022-11-03 09:49:13]
  • 评测
  • 测评结果:AC
  • 用时:153ms
  • 内存:257700kb
  • [2022-11-03 09:28:37]
  • 提交

answer

#include <bits/stdc++.h>

using namespace std;

#define REP(i, a, b) for (int i = (a), i##_end_ = (b); i < i##_end_; ++i)
#define debug(...) fprintf(stderr, __VA_ARGS__)
#define mp make_pair
#define x first
#define y second
#define pb emplace_back
#define SZ(x) (int((x).size()))
#define ALL(x) (x).begin(), (x).end()

template<typename T> inline bool chkmin(T &a, const T &b) { return b < a ? a = b, 1 : 0; }
template<typename T> inline bool chkmax(T &a, const T &b) { return a < b ? a = b, 1 : 0; }

typedef long long LL;

const int oo = 0x3f3f3f3f;

const int maxn = 4001000;

int expand[maxn + 5];

void manacher(char *s)
{
	static int f[(maxn << 1) + 5];
	static char ch[(maxn << 1) + 5];
	int n = strlen(s), id = 0, mx = 0;
	ch[0] = '$'; ch[1] = '#';
	for (int i = 1; i <= n; ++i)
		ch[i * 2] = s[i - 1], ch[i * 2 + 1] = '#';
	ch[n * 2 + 2] = '#';
	for (int i = 0; i <= 2 * n + 10; ++i) f[i] = 0;
	for (int i = 1; i <= 2 * n + 2; ++i)
	{
		if (i > mx) f[i] = 1;
		else f[i] = min(f[id * 2 - i], mx - i);
		while (ch[i - f[i]] == ch[i + f[i]]) ++f[i];
		if (i + f[i] > mx)
		{
			mx = i + f[i];
			id = i;
		}
	}
	REP(i, 0, n + 1) expand[i] = f[i * 2 + 1] >> 1;
	// expand[i]: expand from the gap before s[i] (0 indexed)
}

int n;
char s[maxn + 5];

bool visl[maxn + 5];
bool visr[maxn + 5];

vector<int> adjr[maxn + 5], adjl[maxn + 5];

int main()
{
#ifdef LOCAL
	freopen("input.txt", "r", stdin);
	freopen("output.txt", "w", stdout);
#endif
	scanf("%s", s);
	n = strlen(s);
	manacher(s);
	{
		int Min = n;
		visr[n] = 1;
		for (int i = n - 1; i >= 0; --i)
		{
			if (i + expand[i] >= Min)
			{
				visr[i] = 1;
				Min = i;
			}
		}
	}
	{
		int Max = 0;
		visl[0] = 1;
		REP(i, 1, n + 1)
		{
			if (i - expand[i] <= Max)
			{
				visl[i] = 1;
				Max = i;
			}
		}
	}
	int lstr = n;
	int ans = n;
	for (int i = n - 1; i >= 0; --i)
	{
		if (visl[i]) chkmin(ans, lstr - i);
		if (visr[i]) lstr = i;
	}
	printf("%d\n", ans);
	return 0;
}

Details

Tip: Click on the bar to expand more detailed information

Test #1:

score: 100
Accepted
time: 41ms
memory: 199984kb

input:

AGTTGTGGTTGGTGTTGTGGTGTTGGTTGTGGTTGGTGTTGGTTGTGGTGTTGTGGTTGGTGTTGTGGTGTTGGTTGTGGTGTTGTGGTTGGTGTTGGTTGTGGTTGGTGTTGTGGTGTTGGTTGTGGTTGGTGTTGGTTGTGGTGTTGTGGTTGGTGTTGGTTGTGGTTGGTGTTGTGGTGTTGGTTGTGGTGTTGTGGTTGGTGTTGTGGTGTTGGTTGTGGTTGGTGTTGGTTGTGGTGTTGTGGTTGGTGTTGTGGTGTTGGTTGTGGTGTTGTGGTTGGTGTTGGTTGTGGTTGG...

output:

524290

result:

ok single line: '524290'

Test #2:

score: 0
Accepted
time: 132ms
memory: 249692kb

input:

AGTTGTGGTTGGTGTTGTGGTGTTGGTTGTGGTTGGTGTTGGTTGTGGTGTTGTGGTTGGTGTTGTGGTGTTGGTTGTGGTGTTGTGGTTGGTGTTGGTTGTGGTTGGTGTTGTGGTGTTGGTTGTGGTAAGTTGTGGTTGGTGTTGTGGTGTTGGTTGTGGTTGGTGTTGGTTGTGGTGTTGTGGTTGGTGTTGTGGTGTTGGTTGTGGTGTTGTGGTTGGTGTTGGTTGTGGTTGGTGTTGTGGTGTTGGTTGTGGTAAGTTGTGGTTGGTGTTGTGGTGTTGGTTGTGGTTGGTGTT...

output:

1999790

result:

ok single line: '1999790'

Test #3:

score: 0
Accepted
time: 50ms
memory: 191332kb

input:

C

output:

1

result:

ok single line: '1'

Test #4:

score: 0
Accepted
time: 40ms
memory: 191084kb

input:

CCTCC

output:

3

result:

ok single line: '3'

Test #5:

score: 0
Accepted
time: 45ms
memory: 191244kb

input:

CCTCCCGGTC

output:

9

result:

ok single line: '9'

Test #6:

score: 0
Accepted
time: 52ms
memory: 192528kb

input:

CCCCCCCCCCC

output:

1

result:

ok single line: '1'

Test #7:

score: 0
Accepted
time: 51ms
memory: 191148kb

input:

CCTTCCCCTTCC

output:

2

result:

ok single line: '2'

Test #8:

score: 0
Accepted
time: 37ms
memory: 191192kb

input:

CCTTCCCCTTCCC

output:

2

result:

ok single line: '2'

Test #9:

score: 0
Accepted
time: 24ms
memory: 191188kb

input:

CCCTTCTTCTTCTT

output:

3

result:

ok single line: '3'

Test #10:

score: 0
Accepted
time: 114ms
memory: 250336kb

input:

GTGTGTGTGTGTGTGTGTGTGTGTGTGTGTGTGTGTGTGTGTGTGTGTGTGTGTGTGTGTGTGTGTGTGTGTGTGTGTGTGTGTGTGTGTGTGTGTGTGTGTGTGTGTGTGTGTGTGTGTGTGTGTGTGTGTGTGTGTGTGTGTGTGTGTGTGTGTGTGTGTGTGTGTGTGTGTGTGTGTGTGTGTGTGTGTGTGTGTGTGTGTGTGTGTGTGTGTGTGTGTGTGTGTGTGTGTGTGTGTGTGTGTGTGTGTGTGTGTGTGTGTGTGTGTGTGTGTGTGTGTGTGTGTGTGTGTGTGTGT...

output:

1333400

result:

ok single line: '1333400'

Test #11:

score: 0
Accepted
time: 94ms
memory: 253556kb

input:

GGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGG...

output:

32764

result:

ok single line: '32764'

Test #12:

score: 0
Accepted
time: 104ms
memory: 253568kb

input:

GGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGG...

output:

32768

result:

ok single line: '32768'

Test #13:

score: 0
Accepted
time: 84ms
memory: 250428kb

input:

CCGAAGCGCCCACCGTGTTGGAATCCGGTAGGACAGAAGACGGTAGGGAACGTAGGATTCACCAAAAGTTGCGTGGTTTAACTTGGAAGGTTCAATTTGGTGCGTTGAAAACCACTTAGGATGCAAGGGATGGCAGAAGACAGGATGGCCTAAGGTTGTGCCACCCGCGAAGCCTGATTTCACGCGATCGCAGAGCGGTCTGAATCTTAACGCCCATACAATAACCTACGTACGTGAGCGCAAGTCCAAATCAGATGATCGTCACTGCCGCTCTGCTGCCCTAGATAGTTCATGTGCGCA...

output:

32768

result:

ok single line: '32768'

Test #14:

score: 0
Accepted
time: 89ms
memory: 253560kb

input:

TAAAAAATTTTAAAAAATTAATTTTAATTAAAATTAATTTTAATTAAAAAAAATTAATTAATTAATTAATTAATTTTAATTAATTAATTAATTAATTAAAAAAAATTAATTTTAATTAAAATTAATTTTAATTAAAAAAAATTAATTAATTAATTAATTAATTTTAATTAATTAATTAATTAATTAAAAAAAATTAATTTTAATTAAAAAAAATTAATTAATTAATTAATTAATTAATTAATTAATTAATTAATTAATTAATTAATTAATTAATTAATTAAAAAAAATTAATTAAAATTA...

output:

41566

result:

ok single line: '41566'

Test #15:

score: 0
Accepted
time: 132ms
memory: 250036kb

input:

AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA...

output:

3900000

result:

ok single line: '3900000'

Test #16:

score: 0
Accepted
time: 89ms
memory: 249676kb

input:

AGAGAGAGAGAGAGAGAGAGAGAGAGAGAGAGAGAGAGAGAGAGAGAGAGAGAGAGAGAGAGAGAGAGAGAGAGAGAGAGAGAGAGAGAGAGAGAGAGAGAGAGAGAGAGAGAGAGAGAGAGAGAGAGAGAGAGAGAGAGAGAGAGAGAGAGAGAGAGAGAGAGAGAGAGAGAGAGAGAGAGAGAGAGAGAGAGAGAGAGAGAGAGAGAGAGAGAGAGAGAGAGAGAGAGAGAGAGAGAGAGAGAGAGAGAGAGAGAGAGAGAGAGAGAGAGAGAGAGAGAGAGAGAGAGAGAGAGAGAG...

output:

4000000

result:

ok single line: '4000000'

Test #17:

score: 0
Accepted
time: 95ms
memory: 249896kb

input:

GTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTT...

output:

4000000

result:

ok single line: '4000000'

Test #18:

score: 0
Accepted
time: 95ms
memory: 249836kb

input:

GTGTGTGTGTGTGTGTGTGTGTGTGTGTGTGTGTGTGTGTGTGTGTGTGTGTGTGTGTGTGTGTGTGTGTGTGTGTGTGTGTGTGTGTGTGTGTGTGTGTGTGTGTGTGTGTGTGTGTGTGTGTGTGTGTGTGTGTGTGTGTGTGTGTGTGTGTGTGTGTGTGTGTGTGTGTGTGTGTGTGTGTGTGTGTGTGTGTGTGTGTGTGTGTGTGTGTGTGTGTGTGTGTGTGTGTGTGTGTGTGTGTGTGTGTGTGTGTGTGTGTGTGTGTGTGTGTGTGTGTGTGTGTGTGTGTGTGTGTGT...

output:

4000000

result:

ok single line: '4000000'

Test #19:

score: 0
Accepted
time: 40ms
memory: 191348kb

input:

CCCCGGTTCGAAAAAAAAGCTTGGCAACGGGGCAACGGGGCAACGGTTGGCAACGGGGCAACGGGGCAACGGTTCGAAAAGCTTGGCAACGGTTCGGCTTGGCAACGGTTCGGCTTGGCAACGGTTCGGCTTGGCAACGGTTCGAAAAGCCGAAAAGCTTGGCAACCAACGGTTCGAAAAAAGCTTGGCAAAACGGTTCG

output:

9

result:

ok single line: '9'

Test #20:

score: 0
Accepted
time: 39ms
memory: 191144kb

input:

CCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCAACCCCCCCCCCAACCCTTTTCCCAACCCTTCGGCTTCCCAGCCCCCCGACCAGCCCCCCGGCCCCGGCCCCCCGAAGCCCCCCCCCCCCGAAGCCCCGAAGCCCCCCCCGAAGCCCCCCCCGAAGGGGAAGGGGAAGCCCCCCGAAAAGCCCC

output:

10

result:

ok single line: '10'

Test #21:

score: 0
Accepted
time: 52ms
memory: 191088kb

input:

CCAGCCCCCCGACCGGCCAGCCGAAGCCGACCGGGGCCCCGGGGCCAGCCGAAGCCGACCGGCCAGCCCCGACCGGCCAGCCGAAGCCGACCGGGGCCAGCCGAAGCCGACCGGCCAGCCGGCCGACCGGCCAGCCGAAGCCGACCGGCCAGCCGACCGCGACCCCAGGGGACCCCAGCGCCAGCCGACCGGCCAGCCGGCCGACCGGCCCCGGCCAGCCGGCCGACCAGCCGGCCGACCGGCCCCGGCC

output:

10

result:

ok single line: '10'

Test #22:

score: 0
Accepted
time: 35ms
memory: 191348kb

input:

GGGGCCGTTGCTTTTCGTTGCCGGCCGTTGCTTCGGCTTCCTTCGGCTTCGTTGCCGGCCGTTGCTTCGGCTTCGTTGCCGTTGGTTGCCGTTGCTTCGGCTTCGTTGCCGTTGCCGTTGCTTCGTTGCCGTTGCTGCCCATTCAAAAAGGGGGGAAAAACTTACCCGTCGTTGCCCCGGCCCCGTTGCCGTTGCCCCGGCCCCGTTGCTGCCCAACCCGTCGTTGCCCCGGCCCCGTTGCCGTTTTTTT

output:

18

result:

ok single line: '18'

Test #23:

score: 0
Accepted
time: 28ms
memory: 191236kb

input:

CTAAAAAATCCTAAAAAATCTGTTGTCTAAAAAATCCTAAAAAATCTGTCAAAACTGTCTTCTGTCAAAACTGTCTAAAAAATCTGTCAAAACTGTCTAAAATGCAACGGCAACGTAAAATCTGTCAAAACTGTCTAAAATGCAACGCAAAGCCGAAACGCAACGTAAAATCTGTCAACTGTCTAAAATGCAACCAACGTAAAATCTGTCAACTGTCTAAAATTAAAATCTGTCAACTGTCTAAAATGGT

output:

24

result:

ok single line: '24'

Test #24:

score: 0
Accepted
time: 36ms
memory: 191192kb

input:

CCAAAACCAACCAAGGTGTACAACATGTGGAACGGGGCAAGGTGTACAACATGTGGAACGGGGCAAGGTGTACAACATGTGGAACGGCAAGGTGTACAAGAATATTATAAAATATTATAAGAACATGTGGAACGTACGCGAACGTAGAGACAGATTAGACAGAGATGCAAGCGCCGCGAACGTAGAGACAGATTAGAAGATTAGACCAGATTAGAAGATTAGACAGGACAGATTAGAAGAAGAAGATTTT

output:

40

result:

ok single line: '40'

Test #25:

score: 0
Accepted
time: 25ms
memory: 191096kb

input:

TTTTCTTGGGAAGGAAGGGTTCTTTTTTCTTGGGAAGGGTTCTTTTCTTGGGATCCTGGGCCCCGGGTCCTAGGGTTCTTGATCTGTGTGCAGGGATACACTTGCCATTCGATTTGTCACACCAGGTTTGACCCCATATCTTTTCTATACCCCAGTTTGGACCAACCCCAACCAGGTTTGACCCCATTACCCCAGTTTGGACCAACCAGGTTTGACCCCATTAATTACCCCAGTTTGGACCAACCAGGAA

output:

78

result:

ok single line: '78'

Test #26:

score: 0
Accepted
time: 44ms
memory: 191056kb

input:

GGACGTTTTGCAGTGGTCCGTACCATGCCTGGTGACGTTGTACCCTAACGTCCTACCATCCTGCAATCCCATGTTGCAGTGGTCCGTACCATGCCTGGTGACGTTGTACCCTAACGTCCTACCACAATCTTCGCTATACTACTTTCACCGGGCAGTATGTAAAGGAAATGTATGACGGGCCACTTTCATCAACTACTTTCAACTTTCATCAACTACTTTCACCGGGCAGTAATGACGGGCCACTTTCAAC

output:

75

result:

ok single line: '75'

Test #27:

score: 0
Accepted
time: 48ms
memory: 191140kb

input:

CCGCTAGGAATAACTAAACAATCAATTCGGCTTAACTAACAAATCAATAAGGATCGCACTGCCGTCACGCTAGGAATAACTAAACAATCAATTCGGAACATCTGGCATCCTCCCGTACGATGTCTAGGGTGTTAGCCGTCCCACCCAACTGCATTGGCAGAAAAGACGGTTACGTCAACCCACCCTGCCGATTGTGGGATCTGTAGCATGCCCTCCTACGGTCTACAAGGCTTAACTAACAAATCAATAA

output:

99

result:

ok single line: '99'

Test #28:

score: 0
Accepted
time: 28ms
memory: 191096kb

input:

GGGCATCCTTCCTACGGGGCATCTCCCCTCTACGTGTATAGGGCCAAAACCGGGATATGTGCATCTCCCCTCTACGTGTATAGGGCCAAGACTGCCGTCAGAACCGGGATATGTGCATCTCCGCTACCCCGTCCGAATTGATTACTTGTATGATGGTAGTATGTTCATTAGTTAAGCCTGCCCCATCGCCTCTACGTGTATAGGGCCAAGACTGCCGTCAGAAAAGACTGCCGTCAGAACCGGCCAAGAC

output:

60

result:

ok single line: '60'

Test #29:

score: 0
Accepted
time: 42ms
memory: 191248kb

input:

AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAACCAACCAAAACCAACCAAAAAAAACCCCAAAACCAAAACCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCC

output:

2

result:

ok single line: '2'

Test #30:

score: 0
Accepted
time: 33ms
memory: 191308kb

input:

GGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGAAAAAAGGGGGGGGGGGGAAAAAAAAGGGGGGGGGGGGGGAAAAGGGGAAAAGGGGGGGGGGAAGGGGGGAAGGGGGGGGAAGGGGGGAAGGGGAAGGGGGGAAGGGGGGAAGGGGGGAAGGGGGGGGGGGGGGGGAAGGGGGGAAGGGGGGGGGGGGGGGGGGGGGGAAGGGGGGGGAAGGAAGGGGGGGGAAGGAAGGAAGGGGG

output:

2

result:

ok single line: '2'

Test #31:

score: 0
Accepted
time: 29ms
memory: 191244kb

input:

TGCCGTTGGTTGGTTGCGGGGGGGGGGGGGGGGCGTTGGTTGGTTGCGGGGGGGGGGGGGGCCGGGGGGGGGGGGGGCGTTGGTTGCGGGGGGGGCGTTGCCGTTGCGGCGGGGCGGCGTTGCCGTTGCGGGGCGTTGCCGTTGCGGCGGCGGCGGCGGCGTTGCCGTTGCGGCGTTGCGGCGTTGCGGCGTTGCCGTTGCGGCCGGCGTTGCCCCGTTGCGGGGCGGCGGGGCCCCCCGGGGCGGCGGG

output:

4

result:

ok single line: '4'

Test #32:

score: 0
Accepted
time: 33ms
memory: 191308kb

input:

CCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCACGGCCGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGG

output:

4

result:

ok single line: '4'

Test #33:

score: 0
Accepted
time: 41ms
memory: 191348kb

input:

GGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGTTGGTTGGGGTTGGGGTTTTTTTTGGGGTTTTTTGGTTTTGGTTTTGGTTGGGGTTGAAGGGGAAGTTGACGGCAGTTGACGATTAGCCGGCCGGGGCCGGCCGGCCGGCCCCGGCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCC

output:

7

result:

ok single line: '7'

Test #34:

score: 0
Accepted
time: 43ms
memory: 191096kb

input:

AAAAAAAAAAAAGGGGAAAAGGGGAAAAAAGGGGAAAAGGAAGTTTTTTTTGAAGGAAGTTTTGAAGTTTTGAAGTGGTTGGGGTTGGTGAAGTTGAAGTGGTTGGGGTTGGTGAAGTGGTGAAGTGGTGAAGTGGGGTGAAGTGGTGGTGGTGAAGTGGGGGGGGGGTGAAAAGTGGGGTGAAAAGGAAAAGTGGTGGTGGGGTGGTGGTGAAAAGTGGTGGGGTGGTGAAGTGGGGGGGGGGGGGGTT

output:

4

result:

ok single line: '4'

Test #35:

score: 0
Accepted
time: 36ms
memory: 191244kb

input:

AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAGGGGGGAAAAAAGGGGAAAAGGGGGGAAAAGGGGGGGGAAAAGGAAAAGGGGAAAAGGAAGGAAGGAATTAGGATTAAGAGGGGGGAGAAGAAGAAAAGAAGGAAGAAAAGAAGGGGAAGAAAAGGAAAAGAAGAAAAGGGGAAAAGGAAAAGGGGGGAAAAGGGGAAAAGG

output:

9

result:

ok single line: '9'

Test #36:

score: 0
Accepted
time: 39ms
memory: 191244kb

input:

TGCCGGCCGTTGCGTTGCGTTGCCGTTGCCGTTGCCGTTGCGTTTTGCGGCGTTTTGCGTTGCGTTCGAACCAAGCTTGCGTTGCGTTTTGCGTTGCGTTCGAACTTCAAGCTTGCGGCGTTCGAACTTCAACCAACTTCAAGCTTGCCGTTCGAACTTCAACCAACTTTTCAACCAACTTCAAGCTTGCCCCGTTCGAACCAAGCTTGCCCCCCGTTCGAACCAAGCTTTTCGAACCAAGCTTGCCCCC

output:

12

result:

ok single line: '12'

Test #37:

score: 0
Accepted
time: 32ms
memory: 191104kb

input:

GGGGCCGAAGCCGCTTCGCCGACGTCCTGCAACGTCCTGCAGCCGCTGAAGTCCTTCCTGAAGTCGCCGACGTCCTGCAACGTCCTGCAGCCGCTGGTCGCCGACGTTGCAACGTTGCAGCCGCTGGTCGCCGACGTCCTGCAACGTCCTGCAGCCGCTGAAGTCCTGAAGTCGGCTGAAGTCCTGAAGTCGCCGACGTCCTGCAACGTCCTGCAGCCGCTGGTCGGCTGGTCGCCGACGTCCTGCAACGTCCTGCAGCCGCTGAAGTCCTGAAGTCGGCTGAAGTCCTGAAGTCGCCGA...

output:

13

result:

ok single line: '13'

Test #38:

score: 0
Accepted
time: 20ms
memory: 191324kb

input:

TTTTTCATACTTCATACTTCATACTGGCTCCTTCCTCGGTCCTGGCTCCTTCCTCGGTCATACTTCATACTTCATACTTCATACTGGCTCCTCGGTCATACTTCCTTCATACTGGCTCCTCGGTCATACTTCATACTTCATACTTCATACTGGCTCCTTCCTCGGTCATACTTCATACTTCATACTTCATACTGGCTCCTCGGTCATACTTCATACTTCATACTTCATACTGGCTCCTCGGTCATACTTCATACTTCATACTTCATTACTTCATACTTCATACTTCATACTGGCTCCTCG...

output:

12

result:

ok single line: '12'

Test #39:

score: 0
Accepted
time: 33ms
memory: 191104kb

input:

ATTAGGATTAGAAAAAAGATTAGGATTAGAAAAAAGATTAGGATTAATTTTAATTAGGATTAGAAAAAAGATTAGGATTAGAAAAAAGATTAGGATTAATTAGGGGATTAATTAGGATTAGGGGATTAGGATTAATTAGGGGATTAATTAGGATTAGAAAAGATTAGGATTAATTAGGGGATTTTAGGGGATTAATTAATTAGGGGATTTTAGGGGATTAATTAGGATTAGAAAAGATTAGGATTAATTAGGGGATTAATTAGGATTAGGGGATTAGGATTAATTAGGGGATTAATTAGG...

output:

4

result:

ok single line: '4'

Test #40:

score: 0
Accepted
time: 32ms
memory: 191368kb

input:

AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA...

output:

4

result:

ok single line: '4'

Test #41:

score: 0
Accepted
time: 38ms
memory: 191104kb

input:

GGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGG...

output:

3

result:

ok single line: '3'

Test #42:

score: 0
Accepted
time: 33ms
memory: 191264kb

input:

TTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTT...

output:

1

result:

ok single line: '1'

Test #43:

score: 0
Accepted
time: 36ms
memory: 191320kb

input:

CCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCC...

output:

2

result:

ok single line: '2'

Test #44:

score: 0
Accepted
time: 36ms
memory: 191172kb

input:

GGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGG...

output:

2

result:

ok single line: '2'

Test #45:

score: 0
Accepted
time: 32ms
memory: 191252kb

input:

CCGCCGCCCCGCCGCCCTTTTCCCGCCGCCCTTCCCGCGTATCCTATGCGCCCTTCCCGCCGCCCTTCCCGCGTATCGCCGCTATGCGCCCCCCGCGTATCGCCGCTATGCGCCCTTCCCGCGTATCGCCGCTATGCGCCCTTTTCCCGCGTATCGCCGCTATGCGCCCTTCCCGCGTATCGCCGCTATGCGCCCCCCGCGTATCGCCGCTATGCGCCCTTCCCGCGTATTATGCGCCCTTCCCGCGTATCGCCGCTATGCGCCCCCCGCGTATCGCCGCTATGCGCCCTTCCCGCGTAT...

output:

55

result:

ok single line: '55'

Test #46:

score: 0
Accepted
time: 52ms
memory: 191360kb

input:

CCTTCATTACTATTATCATTACTATGCGCGTGGTCGTTCGAAGGGGGGAAGCTTGCTGGTGCGCGTATCATAGACGTTGCAGAAGACGTTGCAGATACTATGCGCGTGGTCGTTCGAAGGGGAAGCTTGCCGTTCGAAGGGGAAGCTTGCTGGTGCGCGTATCATAGACGTTGCAGATACTATGCGCGTGGTCGGCTGGTGCGCGTATCATAGACGTTGCAGATACTATGCGCGTGGTCGTTCGAAGGAAGCTTGCTGGTGCGCGTATCATAGACGTTGCAGATACTATGCGCGTGGTCG...

output:

122

result:

ok single line: '122'

Test #47:

score: 0
Accepted
time: 42ms
memory: 191320kb

input:

AGTCGTGGAGCTTTTGGGCATACTCTGCTGTCGGACACACCCAGATTAGGTTAAACGAAAATAGGGGATAAAAGCAAATTGGATTAGACCCACACAGGCTGTCGTCTCATACGGGTTTTCGAGGTGCTGAGAGCCTAATGCTCTGCGGTGAGCACGCAATGTGAGTCGCATTAGCCTGCTCACGCCGCACTGCCGCTAATCTATGCCAAGGCAGTACGGAGAGCGTGGAGTCCCTACCACCAATTTTTATGAAAAAAGCGCAATACATTTTGTGAAGGCCGGTTCTACAGGGTCAATTAT...

output:

525

result:

ok single line: '525'

Test #48:

score: 0
Accepted
time: 36ms
memory: 191164kb

input:

TGGTCCCCTGGTAGTCCTGATGGGGTAGGATGGGGTAGTCCTGATGGTCCCCTGGTCCCCTGGTAGTCCTGATGGGGGGGGTAGTCCTGATGGTCCCCTGGGGTCCCCTGGTAGTCCTGATGGGGGGGGTAGTCCTGATGGTCCCCTGGTCCCCTGGTAATGGTCCCCTGGTCCCCTGGTAGTCCTGATGGGGGGGGTAGTCCTGATGGTCCCCTGGGGTCCCCTGGTAGTCCTGATGGGGGGGGTAGTCCTGATGGTCCCCTGGTCCCCTGGTAGTCCTGATGGGGTAGGATGGGGTAG...

output:

12

result:

ok single line: '12'

Test #49:

score: 0
Accepted
time: 32ms
memory: 191316kb

input:

TTATAATAATAATATACTTAGGACTAATCAGGATTCATATAATATACTTAGGACTAATCAGGATTCATATAATATACTTAGGACTAATCAGGATTCATATAATATACTTAGGAAGGATTCATATAAAATATACTTAGGAAGGATTCATATAATATACTTAGGACTAATCAGGATTCATATAATATAATATAATATACTTAGGACTAATCAGGATTCATATAATATACTTAGGAAGGATTCATATAAAATATACTTAGGAAGGATTCATATAATATACTTAGGACTAATCAGGATTCATAT...

output:

15

result:

ok single line: '15'

Test #50:

score: 0
Accepted
time: 20ms
memory: 191236kb

input:

TTTTACCAACCATTCCTTACCAACCATTCAATCGTATCAGGGGGGACTATTTTTTATCAGGGGGGACTATGCTAACTTACCAACCATTCAATCGGCTAACTTACCAACCATTCAATCGTATCAGGGGGGACTATTTTATCAGGGGGGACTATGCTAACTTACCAACCATTCAATCGTATCAGGGGGGACTATTATCAGGGGGGACTATGCTAACTTACCAACCATTCAATCGTATCAGGGGGGACTATTTTATCAGGGGGGACTATGCTAACCAATCGTATCAGGGGGGACTATTTTATC...

output:

16

result:

ok single line: '16'

Test #51:

score: 0
Accepted
time: 31ms
memory: 191196kb

input:

CAACCCCAACCCCAACCAACCAACCCCAACCAACCAAAAAAAACCAACCAACCCCAACCAACCCCAACCAACCAACCAACCCCAACCAACCCCAACCAACCAAAAAAAACCAACCAACCCCAACCAACCAACCCCAACCAACCAAAAAAAACCAACCAACCCCAACCAACCCCAACCAACCAAAAAAAACCAACCAACCCCAACCAACCCCAACCAACCAAAAAAAACCAACCAACCAACCAACCAAAAAAAACCAACCAACCCCAACCAACCCCAACCAACCAAAAAAAACCAACCAAC...

output:

121

result:

ok single line: '121'

Test #52:

score: 0
Accepted
time: 32ms
memory: 191168kb

input:

TTAATGCCGTAAAAGACCCGCAAACAGCTTCGACAAACGCCGCAAACAGCTTCGGCTTCGACAAACGCCGCAAACAGCTTCGACAAACGCCCAGAAAATGCCGTAAAAGACCCGCAAACAGCTTCGACAAACGCCGCAAACAGCCGACAAACGCCGCAAACAGCTTCGACAAACGGCAAACAGCTTCGACAAACGCCGCAAACAGCCGACAAACGCCGCAAACAGCTTCGACAAACGCCCAGAAAATGCCGTAAAAGACCCGCAAACAGCTTCGACAAACGCCGCAAACAGCTTCGACAA...

output:

142

result:

ok single line: '142'

Test #53:

score: 0
Accepted
time: 34ms
memory: 191084kb

input:

CCTCCCGGTCTTAGAGGGGCTAACGTTACAAAATGTTGTCGCGAGCGACGCGACGACATTCTGCTCTGGTTGGTGGATGGCCCTGCGGGGAATAGCCCGG

output:

98

result:

ok single line: '98'

Test #54:

score: 0
Accepted
time: 44ms
memory: 191112kb

input:

CCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCC

output:

1

result:

ok single line: '1'

Test #55:

score: 0
Accepted
time: 42ms
memory: 191140kb

input:

TCCCCTTCCCCTTCCCCTTCCCCTTCCCCTTCCCCTTCCCCTTCCCCTTTTCCCCTTCCCCTTCCCCTTCCCCTTCCCCTTCCCCTTCCCCTTTTCCCCTTC

output:

2

result:

ok single line: '2'

Test #56:

score: 0
Accepted
time: 38ms
memory: 191108kb

input:

CCTTCCCCTTCCCCTTCCCCTTCCCCTTCCCCTTCCCCTTCCCCTTCCCCTTCCCCTTCCCCCCTTCCCCTTCCCCTTCCCCTTCCCCTTCCCCTTCCCCTTC

output:

2

result:

ok single line: '2'

Test #57:

score: 0
Accepted
time: 32ms
memory: 191156kb

input:

CCTTCCCCTTCCCCTTCCCCTTCCCCTTCCCCTTCCCCTTCCCCTTCCCCTTCCCCTTCCCCTTCCCCTTCCCCTTCCCCTTCCCCTTCCCCTTCCCCTTCCCC

output:

2

result:

ok single line: '2'

Test #58:

score: 0
Accepted
time: 29ms
memory: 191084kb

input:

CTTCTTCTTCCCGGCCCTTCTTCTTCCTTCTTCTTCCCGGCCCTTCTTCTTCTTCTTAATTCTTCTTCTTCTTCCCGGCCCTTCTTCTTCCTTCTTCTTCCCGGG

output:

19

result:

ok single line: '19'

Test #59:

score: 0
Accepted
time: 32ms
memory: 191260kb

input:

CCTCCCGGTCTTAGAGGGGCTAACGTTACAAAATGTTGTCGCGAGCGACGCGACGACATTCTGCTCTGGTTGGTGGATGGCCCTGCGGGGAATAGCCCGGCACATTCAGTTAAGGTAGTAGGCGCCCTATACAAGTGAACGCGTCAGACTCGGCAACTATGTCGGTAGAAGACACATATTTGAGTGGAGGGTCTAAACTGGGATCAAGTACAGCGTTGTGAAACTTCTGACTTGGGCGGCTAACGTTCATTGCATCTGGTACCCATGAAGCACTGTTCGCATCCACGTCGTAGTACTACA...

output:

999

result:

ok single line: '999'

Test #60:

score: 0
Accepted
time: 36ms
memory: 191264kb

input:

CCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCC...

output:

1

result:

ok single line: '1'

Test #61:

score: 0
Accepted
time: 37ms
memory: 191264kb

input:

CTGGCCCTCCCCTCCCCTCCCCTCCCGGTCCTGGCCCTCCCCTCCCCTCCCCTCCCCTCCCCTCCCGGTCCTGGCCCTCCCCTTCCCCTCCCGGTCCTGGCCCTCCCCTCCCCTCCCCTCCCCTCCCCTCCCGGTCCTGGCCCTCCCCTTCCCCTCCCGGTCCTGGCCCTCCCCTCCCCTCCCCTCCCCTCCCCTCCCGGTCCTGGCCCTTCCCGGTCCTGGCCCTCCCCTCCCCTCCCCTCCCCTCCCCTCCCGGTCCTGGCCCTCCCCTTCCCCTCCCGGTCCTGGCCCTCCCCTCCC...

output:

9

result:

ok single line: '9'

Test #62:

score: 0
Accepted
time: 39ms
memory: 191164kb

input:

CTGGCCCTCCCCTCCCCCCCCTCCCCTCCCGGTCCTGGCCCTCCCCTCCCCTCCCCTCCCCTCCCCTCCCCTCCCCTCCCGGTCCTGGCCCTCCCCCCCCTCCCGGTCCTGGCCCTCCCCTCCCCTCCCCTCCCCTCCCCTCCCCTCCCCTCCCGGTCCTGGCCCTCCCCCCCCTCCCGGTCCTGGCCCTCCCCTCCCCTCCCCTCCCCTCCCCTCCCCTCCCCTCCCGGTCCTGGCCCTCCCCCCCCTCCCGGTCCTGGCCCTCCCCTCCCCTCCCCTCCCCTCCCCTCCCCTCCCCTC...

output:

9

result:

ok single line: '9'

Test #63:

score: 0
Accepted
time: 29ms
memory: 191160kb

input:

CTGGCCCTCCCCTCCCCTCCCCTCCCCTCCCCTCCCCTTCCCCTCCCCTCCCCTCCCCTCCCCTCCCCTCCCGGTCCTGGCCCTCCCCTCCCCTCCCCTCCCCTCCCCTCCCCTCCCCTCCCCTCCCCTCCCCTCCCCTCCCCTCCCCTCCCCTCCCCTCCCCTCCCCTCCCCTCCCCTCCCGGTCCTGGCCCTCCCCTCCCCTCCCCTCCCCTCCCCTCCCCTTCCCCTTCCCCTTCCCCTCCCCTCCCCTCCCCTCCCCTCCCCTCCCGGTCCTGGCCCTCCCCTCCCCTCCCCTCCC...

output:

9

result:

ok single line: '9'

Test #64:

score: 0
Accepted
time: 40ms
memory: 191160kb

input:

CTTCTTCTTCCCGGCCCTTCTTCTTCCTTCTTCTTCCCGGCCCTTCTTCTTCTTCTTAATTCTTCTTCTTCTTCCCGGCCCTTCTTCTTCCTTCTTCTTCCCGGGGCCCTTCTTCTTCCTTCTTCTTCCCGGCCCTTCTTCTTCTTCTTATTAATTATTCTTCTTCTTCTTCCCGGCCCTTCTTCTTCCTTCTTCTTCCCGGGGCCCTTCTTCTTCCTTCTTCTTCCCGGCCCTTCTTCTTCTTTTCTTCTTCTTCCCGGCCCTTCTTCTTCCTTCTTCTTCCCGGGGCCCTTCTTCTTC...

output:

20

result:

ok single line: '20'

Test #65:

score: 0
Accepted
time: 153ms
memory: 249680kb

input:

CCTCCCGGTCTTAGAGGGGCTAACGTTACAAAATGTTGTCGCGAGCGACGCGACGACATTCTGCTCTGGTTGGTGGATGGCCCTGCGGGGAATAGCCCGGCACATTCAGTTAAGGTAGTAGGCGCCCTATACAAGTGAACGCGTCAGACTCGGCAACTATGTCGGTAGAAGACACATATTTGAGTGGAGGGTCTAAACTGGGATCAAGTACAGCGTTGTGAAACTTCTGACTTGGGCGGCTAACGTTCATTGCATCTGGTACCCATGAAGCACTGTTCGCATCCACGTCGTAGTACTACA...

output:

3999999

result:

ok single line: '3999999'

Test #66:

score: 0
Accepted
time: 97ms
memory: 257532kb

input:

CCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCC...

output:

1

result:

ok single line: '1'

Test #67:

score: 0
Accepted
time: 98ms
memory: 257488kb

input:

CTGGCCCTCCCCTCCCCTCCCCTCCCGGTCCTGGCCCTCCCCTCCCCTCCCCTCCCCTCCCCTCCCGGTCCTGGCCCTCCCCTTCCCCTCCCGGTCCTGGCCCTCCCCTCCCCTCCCCTCCCCTCCCCTCCCGGTCCTGGCCCTCCCCTTCCCCTCCCGGTCCTGGCCCTCCCCTCCCCTCCCCTCCCCTCCCCTCCCGGTCCTGGCCCTTCCCGGTCCTGGCCCTCCCCTCCCCTCCCCTCCCCTCCCCTCCCGGTCCTGGCCCTCCCCTTCCCCTCCCGGTCCTGGCCCTCCCCTCCC...

output:

9

result:

ok single line: '9'

Test #68:

score: 0
Accepted
time: 91ms
memory: 257500kb

input:

GCCCTCCCCCCCCTCCCGGTCCTGGCCCTCCCCTCCCCTCCCCTCCCCTCCCCTCCCCTCCCCTCCCGGTCCTGGCCCTCCCCCCCCTCCCGGTCCTGGCCCTCCCCTCCCCTCCCCTCCCCTCCCCTCCCCTCCCCTCCCGGTCCTGGCCCTCCCCTCCCCCCCCCCCCCCCCTCCCCTCCCGGTCCTGGCCCTCCCCTCCCCTCCCCTCCCCTCCCCTCCCCTCCCCTCCCGGTCCTGGCCCTCCCCCCCCTCCCGGTCCTGGCCCTCCCCTCCCCTCCCCTCCCCTCCCCTCCCCTC...

output:

9

result:

ok single line: '9'

Test #69:

score: 0
Accepted
time: 98ms
memory: 257504kb

input:

GGCCCTCCCCTCCCCTCCCCTCCCCTCCCCTCCCCTCCCCTCCCCTCCCCTCCCCTCCCCTCCCCTCCCCTCCCCTCCCCTCCCCTCCCCTCCCCTCCCCTCCCGGTCCTGGCCCTCCCCTCCCCTCCCCTCCCCTCCCCTCCCCTTCCCCTTCCCCTTCCCCTCCCCTCCCCTCCCCTCCCCTCCCCTCCCGGTCCTGGCCCTCCCCTCCCCTCCCCTCCCCTCCCCTCCCCTCCCCTCCCCTCCCCTCCCCTCCCCCCCCTCCCCTCCCCTCCCCTCCCCTCCCCTCCCCTCCCCTCC...

output:

9

result:

ok single line: '9'

Test #70:

score: 0
Accepted
time: 90ms
memory: 250452kb

input:

GGGCCCTTCTTCTTCCTTCTTCTTCCCGGCCCTTCTTCTTCTTCTTATTAATTATTCTTCTTCTTCTTCCCGGCCCTTCTTCTTCCTTCTTCTTCCCGGGGCCCTTCTTCTTCCTTCTTCTTCCCGGCCCTTCTTCTTCTTCTTAATTCTTCTTCTTCTTCCCGGCCCTTCTTCTTCCTTCTTCTTCCCGGCCCTTCTTCTTCGTCGGCTGCTTCTTCTTCCCGGCCCTTCTTCTTCCTTCTTCTTCCCGGCCCTTCTTCTTCTTCTTAATTCTTCTTCTTCTTCCCGGCCCTTCTTCTT...

output:

113809

result:

ok single line: '113809'

Test #71:

score: 0
Accepted
time: 95ms
memory: 253828kb

input:

AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA...

output:

13

result:

ok single line: '13'

Test #72:

score: 0
Accepted
time: 117ms
memory: 253844kb

input:

CCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCC...

output:

12

result:

ok single line: '12'

Test #73:

score: 0
Accepted
time: 93ms
memory: 257700kb

input:

GTTGGTTTTGGTGGAACGTAATGCAAGGTGGTGGAAGGTTGGAAGGTGGTGGAACGTAATGCAAGGTGGTTTTGGTTGGTTTTGGTGGAACGTAATGCAAGGTGGTGGAAGGTGGTGGAACGTATCCTTGGTTCCTATGCAAGGAACGTATCCTTGGTTCCTTGGTTCCTATGCAAGGAACGTATCCTTGGTTCCTATGCAAGGTGGTGGAAGGTGGTGGAACGTAATGCAAGGTGGTGGAAGGTGGTGGAACGTATCCTTGGTTCCTATGCAAGGAACGTATCCTTGGTTCCTATGCAA...

output:

16

result:

ok single line: '16'

Test #74:

score: 0
Accepted
time: 105ms
memory: 253584kb

input:

TTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTT...

output:

346

result:

ok single line: '346'

Test #75:

score: 0
Accepted
time: 122ms
memory: 254800kb

input:

CCCCCAGGACGGCAGGACCCAGCATTTCTCCCCAGGCTCCTCGGACCCCTCTTTACGACCCAGGACGGCAGGACCCAGCATTTCTCCCCAGGCTCCTCGGACCCCTCTTTACGACCCAGGACGGCAGGACGGCAGGACCCAGCATTTCTCCCCAGGCTCCTCGGACCCCTCTTTACGACCCAGGACGGCAGGACCCAGCATTTCTCCCCAGGCTCCTCGGACCCCTCTTTACGACCCAGGACGGCAGGACCCAGCATTTCTCCCCCCTCTTTACGACCCAGGACGGCAGGACCCAGCATT...

output:

370

result:

ok single line: '370'

Test #76:

score: 0
Accepted
time: 98ms
memory: 254080kb

input:

CGGCGGTATCAGTTGATACATGTTACCCGAGGGGGGTCAATCGGCATCATCGACCCAAAGATGTACAAGGAAAATGCCTTGGGCAGTTAGAAGGACTCGACACGATTAGCACAGCTCAGGAAGATTGACGGGTTCCGTAAAAGGAACATGTAGAAACCCAGCTACTACGGCTAACTGGGGGGAGCCCATTGTACATAGTTGACTATGGCGCGACCGTACTGAACATTCTCGATGATTAAAGATCGATGTGACAGCCGAGCGCGAAAGAAAAGAGGATATTTATTGAATCGGGATTCCCCG...

output:

376

result:

ok single line: '376'

Test #77:

score: 0
Accepted
time: 85ms
memory: 253728kb

input:

GGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGG...

output:

1212

result:

ok single line: '1212'

Test #78:

score: 0
Accepted
time: 101ms
memory: 253688kb

input:

TTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTT...

output:

1234

result:

ok single line: '1234'

Test #79:

score: 0
Accepted
time: 115ms
memory: 255312kb

input:

GGAAGAATCGTGGGTAGACAGAAGGCTGGAGCGTCTCTAAATACCGCCGAGTAGACATACGTTCTAAACTCTGATTGTACAGGGTCTGTTGGTTGTCTGGGACATGTTAGTCTCAAATCTTGCATACAGATGAGCCGCCATAAATCTCTGCGAGGTCGGAAGACAGATGGGTGCTAAGAAATATTAACGGAACACCGCGCTGATGATCTTCACTTCGGCCCAATACTCCGCTAAAGTATAATCCCAGTGTCTTGGTGACGGGTGTTGCCCCAAAAAATAATGACTGTTTAATACTTGCTA...

output:

1251

result:

ok single line: '1251'