QOJ.ac

QOJ

IDProblemSubmitterResultTimeMemoryLanguageFile sizeSubmit timeJudge time
#872557#8615. Equal Stringsucup-team216#AC ✓41ms4224kbC++204.6kb2025-01-26 02:24:512025-01-26 02:24:52

Details

Tip: Click on the bar to expand more detailed information

Test #1:

score: 100
Accepted
time: 0ms
memory: 3712kb

input:

4
24
23
23
21
23
0

output:

3 1
3 2
3 4
2 1
2 3
2 4

result:

ok Found equal strings: 2, 4

Test #2:

score: 0
Accepted
time: 1ms
memory: 3712kb

input:

4
0

output:

3 1

result:

ok Found equal strings: 3, 1

Test #3:

score: 0
Accepted
time: 1ms
memory: 3712kb

input:

10
29
18
27
23
26
30
34
27
29
21
26
25
25
18
26
26
25
21
24
19
26
25
27
23
23
26
20
23
24
24
21
25
29
25
24
28
23
29
19
26
26
18
30
29
21
24
29
0

output:

7 1
7 2
7 3
7 4
7 5
7 6
7 8
7 9
7 10
5 1
5 2
5 3
5 4
5 6
5 7
5 8
5 9
5 10
4 1
4 2
4 3
4 5
4 6
4 7
4 8
4 9
4 10
1 2
1 3
1 4
1 5
1 6
1 7
1 8
1 9
1 10
2 1
2 3
2 4
2 5
2 6
2 7
2 8
2 9
2 10
9 1
9 2
9 3

result:

ok Found equal strings: 9, 3

Test #4:

score: 0
Accepted
time: 2ms
memory: 3840kb

input:

100
23
28
24
33
24
26
29
32
29
20
25
24
25
27
28
29
20
26
28
27
21
24
24
29
31
25
22
25
18
22
27
29
26
24
26
30
22
24
30
27
28
30
34
27
33
26
20
24
23
23
24
25
29
28
28
21
28
34
24
27
25
27
24
29
26
26
27
26
25
24
23
25
26
19
24
18
25
25
25
27
21
31
22
26
27
25
21
29
27
22
33
26
22
26
31
28
23
28
0

output:

62 1
62 2
62 3
62 4
62 5
62 6
62 7
62 8
62 9
62 10
62 11
62 12
62 13
62 14
62 15
62 16
62 17
62 18
62 19
62 20
62 21
62 22
62 23
62 24
62 25
62 26
62 27
62 28
62 29
62 30
62 31
62 32
62 33
62 34
62 35
62 36
62 37
62 38
62 39
62 40
62 41
62 42
62 43
62 44
62 45
62 46
62 47
62 48
62 49
62 50
62 51
62 ...

result:

ok Found equal strings: 62, 100

Test #5:

score: 0
Accepted
time: 11ms
memory: 3968kb

input:

500
24
21
26
27
29
26
26
29
28
21
24
20
27
22
19
24
22
17
21
19
17
24
29
22
29
24
26
29
23
28
19
20
28
23
23
19
31
28
26
21
24
24
24
25
19
24
20
20
21
24
25
25
26
26
29
25
25
25
23
25
27
25
24
24
30
24
30
26
23
20
25
33
28
27
35
21
30
29
21
26
28
22
26
30
20
29
23
24
25
26
25
25
18
23
22
24
25
26
25...

output:

155 1
155 2
155 3
155 4
155 5
155 6
155 7
155 8
155 9
155 10
155 11
155 12
155 13
155 14
155 15
155 16
155 17
155 18
155 19
155 20
155 21
155 22
155 23
155 24
155 25
155 26
155 27
155 28
155 29
155 30
155 31
155 32
155 33
155 34
155 35
155 36
155 37
155 38
155 39
155 40
155 41
155 42
155 43
155 44
1...

result:

ok Found equal strings: 100, 334

Test #6:

score: 0
Accepted
time: 18ms
memory: 3968kb

input:

750
26
23
21
25
23
30
21
22
22
19
27
28
23
27
28
24
22
22
26
23
27
28
21
26
25
27
22
22
27
28
22
26
26
31
22
22
25
27
28
35
24
28
25
22
28
22
26
28
22
28
24
25
28
18
24
23
24
27
24
21
29
25
23
26
16
26
28
27
24
28
30
27
24
22
23
31
22
27
24
24
28
23
28
21
27
30
31
26
23
19
23
25
28
32
24
24
26
30
30...

output:

689 1
689 2
689 3
689 4
689 5
689 6
689 7
689 8
689 9
689 10
689 11
689 12
689 13
689 14
689 15
689 16
689 17
689 18
689 19
689 20
689 21
689 22
689 23
689 24
689 25
689 26
689 27
689 28
689 29
689 30
689 31
689 32
689 33
689 34
689 35
689 36
689 37
689 38
689 39
689 40
689 41
689 42
689 43
689 44
6...

result:

ok Found equal strings: 130, 698

Test #7:

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

input:

999
26
23
24
24
26
19
19
22
21
23
26
22
25
24
23
28
25
21
26
30
30
20
25
20
22
26
22
25
18
27
27
26
20
22
26
32
26
30
32
17
21
21
20
27
31
26
28
29
26
19
25
25
22
18
26
25
23
28
22
29
22
22
21
25
30
27
20
30
22
22
24
28
26
22
25
23
26
25
24
21
28
20
31
27
24
25
20
24
24
27
22
21
29
22
28
24
26
21
27...

output:

972 1
972 2
972 3
972 4
972 5
972 6
972 7
972 8
972 9
972 10
972 11
972 12
972 13
972 14
972 15
972 16
972 17
972 18
972 19
972 20
972 21
972 22
972 23
972 24
972 25
972 26
972 27
972 28
972 29
972 30
972 31
972 32
972 33
972 34
972 35
972 36
972 37
972 38
972 39
972 40
972 41
972 42
972 43
972 44
9...

result:

ok Found equal strings: 205, 281

Test #8:

score: 0
Accepted
time: 18ms
memory: 3840kb

input:

1000
26
25
24
24
22
24
19
24
24
24
23
22
25
23
26
21
29
28
26
23
30
27
26
24
25
27
18
23
27
26
24
27
30
29
28
26
24
24
27
25
29
20
24
29
28
31
28
25
25
23
20
29
25
25
20
19
24
19
25
24
23
21
28
27
17
20
26
23
24
24
27
26
30
21
19
25
26
32
19
21
18
23
30
29
21
25
24
33
19
25
27
30
27
26
23
27
30
22
2...

output:

971 1
971 2
971 3
971 4
971 5
971 6
971 7
971 8
971 9
971 10
971 11
971 12
971 13
971 14
971 15
971 16
971 17
971 18
971 19
971 20
971 21
971 22
971 23
971 24
971 25
971 26
971 27
971 28
971 29
971 30
971 31
971 32
971 33
971 34
971 35
971 36
971 37
971 38
971 39
971 40
971 41
971 42
971 43
971 44
9...

result:

ok Found equal strings: 211, 327

Test #9:

score: 0
Accepted
time: 22ms
memory: 3840kb

input:

1000
23
27
26
28
23
34
21
28
30
26
29
20
26
26
27
26
28
22
27
30
26
26
27
23
26
29
27
33
25
30
31
24
21
21
17
24
21
27
25
28
27
22
25
21
33
24
25
29
23
22
20
33
23
21
25
25
20
19
30
27
21
25
21
22
30
26
25
28
23
22
31
25
26
25
29
25
22
27
20
21
31
29
25
26
30
23
29
23
23
30
24
24
27
29
31
22
21
28
2...

output:

971 1
971 2
971 3
971 4
971 5
971 6
971 7
971 8
971 9
971 10
971 11
971 12
971 13
971 14
971 15
971 16
971 17
971 18
971 19
971 20
971 21
971 22
971 23
971 24
971 25
971 26
971 27
971 28
971 29
971 30
971 31
971 32
971 33
971 34
971 35
971 36
971 37
971 38
971 39
971 40
971 41
971 42
971 43
971 44
9...

result:

ok Found equal strings: 220, 448

Test #10:

score: 0
Accepted
time: 19ms
memory: 4096kb

input:

1000
23
22
24
25
21
21
26
23
25
22
21
26
26
30
33
21
26
24
22
27
17
23
30
27
21
21
23
26
19
28
20
22
19
26
22
28
20
32
30
21
19
29
23
24
22
27
23
28
26
30
21
20
21
30
28
22
24
24
24
23
22
25
22
27
26
22
30
24
30
26
30
25
25
26
23
26
23
28
25
26
24
22
23
24
22
26
31
25
20
21
22
32
25
27
25
27
21
25
2...

output:

971 1
971 2
971 3
971 4
971 5
971 6
971 7
971 8
971 9
971 10
971 11
971 12
971 13
971 14
971 15
971 16
971 17
971 18
971 19
971 20
971 21
971 22
971 23
971 24
971 25
971 26
971 27
971 28
971 29
971 30
971 31
971 32
971 33
971 34
971 35
971 36
971 37
971 38
971 39
971 40
971 41
971 42
971 43
971 44
9...

result:

ok Found equal strings: 279, 970

Test #11:

score: 0
Accepted
time: 21ms
memory: 3968kb

input:

1000
30
22
30
24
26
25
28
23
24
31
24
23
21
21
21
22
27
22
26
20
24
26
23
24
25
25
26
26
17
23
30
26
21
22
28
27
24
26
22
28
26
30
30
30
30
31
35
23
24
20
25
19
22
26
25
18
24
21
27
29
24
30
21
25
29
28
24
25
23
21
26
23
14
29
26
26
26
29
27
29
27
27
16
22
30
30
25
26
29
21
25
24
26
29
23
27
23
28
2...

output:

971 1
971 2
971 3
971 4
971 5
971 6
971 7
971 8
971 9
971 10
971 11
971 12
971 13
971 14
971 15
971 16
971 17
971 18
971 19
971 20
971 21
971 22
971 23
971 24
971 25
971 26
971 27
971 28
971 29
971 30
971 31
971 32
971 33
971 34
971 35
971 36
971 37
971 38
971 39
971 40
971 41
971 42
971 43
971 44
9...

result:

ok Found equal strings: 619, 843

Test #12:

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

input:

1000
25
24
30
22
30
24
23
31
28
22
22
24
22
31
25
23
26
23
24
27
23
28
24
25
26
19
29
28
23
20
28
22
25
18
28
24
25
25
28
26
22
30
26
34
27
29
21
19
29
27
27
19
26
21
23
23
24
27
24
23
27
29
22
17
29
25
23
24
19
24
26
29
27
34
22
23
26
21
26
27
28
26
22
24
30
24
23
26
22
25
25
19
24
31
23
22
31
25
1...

output:

971 1
971 2
971 3
971 4
971 5
971 6
971 7
971 8
971 9
971 10
971 11
971 12
971 13
971 14
971 15
971 16
971 17
971 18
971 19
971 20
971 21
971 22
971 23
971 24
971 25
971 26
971 27
971 28
971 29
971 30
971 31
971 32
971 33
971 34
971 35
971 36
971 37
971 38
971 39
971 40
971 41
971 42
971 43
971 44
9...

result:

ok Found equal strings: 678, 717

Test #13:

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

input:

1000
28
21
21
26
31
22
27
25
27
24
27
24
25
26
21
17
23
21
29
25
25
21
26
22
29
25
29
21
29
27
29
29
24
21
21
21
18
25
22
31
32
28
24
27
29
28
20
22
26
22
27
31
26
29
26
25
25
24
25
23
26
27
27
20
29
22
29
25
26
18
27
26
25
24
24
27
22
19
28
22
31
23
20
28
24
24
22
21
25
26
27
22
24
23
27
26
29
24
2...

output:

971 1
971 2
971 3
971 4
971 5
971 6
971 7
971 8
971 9
971 10
971 11
971 12
971 13
971 14
971 15
971 16
971 17
971 18
971 19
971 20
971 21
971 22
971 23
971 24
971 25
971 26
971 27
971 28
971 29
971 30
971 31
971 32
971 33
971 34
971 35
971 36
971 37
971 38
971 39
971 40
971 41
971 42
971 43
971 44
9...

result:

ok Found equal strings: 239, 737

Test #14:

score: 0
Accepted
time: 27ms
memory: 4096kb

input:

1000
27
25
19
30
26
22
25
28
21
33
22
25
27
23
22
25
20
22
21
32
25
28
22
27
34
27
25
21
21
23
28
26
31
21
26
26
26
19
26
30
22
24
23
24
20
26
27
28
18
18
24
29
24
32
25
26
20
23
28
26
24
23
26
29
27
25
26
29
28
30
27
25
22
28
27
25
22
31
23
25
27
23
28
25
28
24
29
21
25
25
24
23
26
28
24
23
21
31
2...

output:

971 1
971 2
971 3
971 4
971 5
971 6
971 7
971 8
971 9
971 10
971 11
971 12
971 13
971 14
971 15
971 16
971 17
971 18
971 19
971 20
971 21
971 22
971 23
971 24
971 25
971 26
971 27
971 28
971 29
971 30
971 31
971 32
971 33
971 34
971 35
971 36
971 37
971 38
971 39
971 40
971 41
971 42
971 43
971 44
9...

result:

ok Found equal strings: 112, 796

Test #15:

score: 0
Accepted
time: 22ms
memory: 3968kb

input:

1000
27
21
28
25
28
20
25
24
22
29
22
23
26
29
25
25
23
23
20
27
26
27
29
21
26
22
27
20
21
19
21
23
29
25
23
26
27
27
26
25
24
23
26
21
18
24
23
27
26
23
27
21
22
30
25
22
30
26
27
21
23
29
26
19
25
26
27
21
30
22
26
21
25
26
31
26
27
28
21
26
28
20
26
24
23
23
26
27
30
25
25
32
24
30
24
26
29
28
2...

output:

971 1
971 2
971 3
971 4
971 5
971 6
971 7
971 8
971 9
971 10
971 11
971 12
971 13
971 14
971 15
971 16
971 17
971 18
971 19
971 20
971 21
971 22
971 23
971 24
971 25
971 26
971 27
971 28
971 29
971 30
971 31
971 32
971 33
971 34
971 35
971 36
971 37
971 38
971 39
971 40
971 41
971 42
971 43
971 44
9...

result:

ok Found equal strings: 634, 855

Test #16:

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

input:

1000
24
29
27
30
20
25
26
27
27
24
28
33
20
32
16
26
27
26
31
23
23
22
26
21
27
25
28
24
23
23
29
25
22
29
30
23
34
26
27
24
26
26
24
30
24
26
25
17
24
25
22
23
28
19
24
24
22
20
17
30
21
22
20
23
25
27
25
24
33
22
31
23
31
26
24
20
27
30
15
20
27
24
18
26
21
27
26
27
27
24
22
25
20
24
27
27
28
27
2...

output:

971 1
971 2
971 3
971 4
971 5
971 6
971 7
971 8
971 9
971 10
971 11
971 12
971 13
971 14
971 15
971 16
971 17
971 18
971 19
971 20
971 21
971 22
971 23
971 24
971 25
971 26
971 27
971 28
971 29
971 30
971 31
971 32
971 33
971 34
971 35
971 36
971 37
971 38
971 39
971 40
971 41
971 42
971 43
971 44
9...

result:

ok Found equal strings: 196, 508

Test #17:

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

input:

1000
22
18
23
24
25
31
25
25
22
21
28
20
21
19
18
25
28
26
19
25
23
21
24
28
28
27
23
24
26
31
23
29
26
27
20
17
22
22
30
23
24
25
28
22
28
24
26
28
27
21
22
29
29
24
25
27
21
30
21
24
24
27
22
27
22
15
21
26
24
24
25
25
26
30
26
30
30
24
30
25
25
23
27
23
26
26
24
22
20
33
22
26
22
27
26
23
27
36
2...

output:

971 1
971 2
971 3
971 4
971 5
971 6
971 7
971 8
971 9
971 10
971 11
971 12
971 13
971 14
971 15
971 16
971 17
971 18
971 19
971 20
971 21
971 22
971 23
971 24
971 25
971 26
971 27
971 28
971 29
971 30
971 31
971 32
971 33
971 34
971 35
971 36
971 37
971 38
971 39
971 40
971 41
971 42
971 43
971 44
9...

result:

ok Found equal strings: 30, 255

Test #18:

score: 0
Accepted
time: 19ms
memory: 3968kb

input:

1000
29
25
30
26
25
21
25
27
23
22
27
19
21
23
21
22
29
23
26
26
19
27
27
28
26
27
27
28
25
30
27
25
26
23
22
18
21
30
27
22
22
21
22
25
22
29
24
25
33
22
27
32
18
21
24
23
24
20
22
28
25
24
24
24
25
23
24
24
27
20
26
23
24
29
20
23
19
21
26
26
29
22
23
24
25
27
27
24
21
26
32
31
30
24
27
25
27
22
2...

output:

971 1
971 2
971 3
971 4
971 5
971 6
971 7
971 8
971 9
971 10
971 11
971 12
971 13
971 14
971 15
971 16
971 17
971 18
971 19
971 20
971 21
971 22
971 23
971 24
971 25
971 26
971 27
971 28
971 29
971 30
971 31
971 32
971 33
971 34
971 35
971 36
971 37
971 38
971 39
971 40
971 41
971 42
971 43
971 44
9...

result:

ok Found equal strings: 284, 957

Test #19:

score: 0
Accepted
time: 23ms
memory: 3840kb

input:

1000
26
30
27
28
25
24
26
29
24
26
20
28
28
33
31
23
28
27
29
27
21
22
30
28
19
27
20
22
24
23
21
18
26
22
21
24
20
27
29
27
26
24
21
21
26
23
26
27
28
20
27
27
28
24
30
24
27
23
27
24
21
27
28
28
27
26
16
28
22
31
25
23
28
28
21
15
24
27
27
26
17
30
25
26
22
22
22
24
18
23
21
20
28
26
22
26
24
31
2...

output:

971 1
971 2
971 3
971 4
971 5
971 6
971 7
971 8
971 9
971 10
971 11
971 12
971 13
971 14
971 15
971 16
971 17
971 18
971 19
971 20
971 21
971 22
971 23
971 24
971 25
971 26
971 27
971 28
971 29
971 30
971 31
971 32
971 33
971 34
971 35
971 36
971 37
971 38
971 39
971 40
971 41
971 42
971 43
971 44
9...

result:

ok Found equal strings: 343, 478

Test #20:

score: 0
Accepted
time: 27ms
memory: 3840kb

input:

1000
26
23
24
19
23
32
27
35
22
26
22
25
18
27
26
23
30
24
27
26
22
27
27
24
23
26
28
28
18
32
22
22
26
20
28
19
21
21
23
22
28
25
27
26
25
24
19
25
31
22
27
27
24
26
30
25
28
26
28
21
23
17
29
25
29
18
23
26
29
21
19
26
26
28
31
24
25
21
18
25
24
21
24
22
23
23
18
23
25
31
22
20
25
24
27
22
25
23
2...

output:

971 1
971 2
971 3
971 4
971 5
971 6
971 7
971 8
971 9
971 10
971 11
971 12
971 13
971 14
971 15
971 16
971 17
971 18
971 19
971 20
971 21
971 22
971 23
971 24
971 25
971 26
971 27
971 28
971 29
971 30
971 31
971 32
971 33
971 34
971 35
971 36
971 37
971 38
971 39
971 40
971 41
971 42
971 43
971 44
9...

result:

ok Found equal strings: 352, 402

Test #21:

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

input:

1000
33
24
17
23
31
25
26
26
29
26
22
20
24
23
24
25
26
20
26
22
23
23
23
20
29
26
17
24
27
23
22
28
17
28
29
21
25
23
26
25
33
26
19
27
19
26
24
24
31
33
29
25
24
26
27
26
25
28
28
18
28
28
21
26
21
30
17
23
27
16
27
26
18
25
22
26
25
17
24
25
28
25
26
25
28
27
25
27
27
21
20
25
23
23
21
19
23
29
2...

output:

971 1
971 2
971 3
971 4
971 5
971 6
971 7
971 8
971 9
971 10
971 11
971 12
971 13
971 14
971 15
971 16
971 17
971 18
971 19
971 20
971 21
971 22
971 23
971 24
971 25
971 26
971 27
971 28
971 29
971 30
971 31
971 32
971 33
971 34
971 35
971 36
971 37
971 38
971 39
971 40
971 41
971 42
971 43
971 44
9...

result:

ok Found equal strings: 462, 874

Test #22:

score: 0
Accepted
time: 30ms
memory: 3968kb

input:

1000
28
21
26
28
29
24
22
25
32
26
28
25
23
21
23
23
21
25
26
25
26
21
22
28
23
29
25
24
26
25
23
30
28
26
21
22
23
25
28
20
31
24
22
23
24
24
25
26
28
26
29
31
32
26
21
29
29
24
21
22
23
25
22
19
27
24
26
29
24
29
29
32
27
29
23
25
30
22
28
26
25
30
24
23
24
24
26
28
22
19
18
23
27
36
16
28
26
22
2...

output:

971 1
971 2
971 3
971 4
971 5
971 6
971 7
971 8
971 9
971 10
971 11
971 12
971 13
971 14
971 15
971 16
971 17
971 18
971 19
971 20
971 21
971 22
971 23
971 24
971 25
971 26
971 27
971 28
971 29
971 30
971 31
971 32
971 33
971 34
971 35
971 36
971 37
971 38
971 39
971 40
971 41
971 42
971 43
971 44
9...

result:

ok Found equal strings: 521, 747

Test #23:

score: 0
Accepted
time: 30ms
memory: 4224kb

input:

1000
27
23
21
22
22
22
29
24
26
25
23
21
22
19
24
21
29
15
22
21
22
31
29
28
20
24
23
25
23
24
28
20
28
22
23
21
24
25
30
28
26
26
27
26
24
28
27
30
22
20
28
27
20
27
25
25
20
30
21
29
18
24
29
27
20
27
24
25
22
22
22
24
18
26
22
28
31
30
30
24
27
27
24
20
30
24
29
25
25
31
23
23
21
26
26
24
23
20
2...

output:

971 1
971 2
971 3
971 4
971 5
971 6
971 7
971 8
971 9
971 10
971 11
971 12
971 13
971 14
971 15
971 16
971 17
971 18
971 19
971 20
971 21
971 22
971 23
971 24
971 25
971 26
971 27
971 28
971 29
971 30
971 31
971 32
971 33
971 34
971 35
971 36
971 37
971 38
971 39
971 40
971 41
971 42
971 43
971 44
9...

result:

ok Found equal strings: 621, 861

Test #24:

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

input:

1000
24
21
25
24
31
23
25
26
27
19
25
23
24
22
21
26
21
21
26
23
24
28
28
27
27
23
27
26
26
22
24
20
26
20
24
24
25
27
27
25
23
24
25
24
24
17
26
33
29
29
21
31
27
29
22
24
18
29
17
25
28
23
30
23
26
33
30
23
17
25
24
27
25
20
27
30
18
29
20
25
23
26
27
33
23
33
25
26
23
25
23
22
25
27
27
22
27
20
2...

output:

971 1
971 2
971 3
971 4
971 5
971 6
971 7
971 8
971 9
971 10
971 11
971 12
971 13
971 14
971 15
971 16
971 17
971 18
971 19
971 20
971 21
971 22
971 23
971 24
971 25
971 26
971 27
971 28
971 29
971 30
971 31
971 32
971 33
971 34
971 35
971 36
971 37
971 38
971 39
971 40
971 41
971 42
971 43
971 44
9...

result:

ok Found equal strings: 143, 920

Test #25:

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

input:

1000
27
31
27
30
26
30
25
22
26
21
24
19
21
33
28
21
29
30
27
25
27
27
26
26
20
31
31
29
27
23
28
26
27
23
23
23
24
29
25
28
27
17
24
30
27
28
28
23
29
24
25
29
24
25
28
26
23
25
25
29
31
24
27
23
20
30
28
27
30
25
22
27
26
24
25
25
23
25
23
24
29
23
26
17
23
22
22
21
19
30
23
25
25
21
25
25
18
29
2...

output:

971 1
971 2
971 3
971 4
971 5
971 6
971 7
971 8
971 9
971 10
971 11
971 12
971 13
971 14
971 15
971 16
971 17
971 18
971 19
971 20
971 21
971 22
971 23
971 24
971 25
971 26
971 27
971 28
971 29
971 30
971 31
971 32
971 33
971 34
971 35
971 36
971 37
971 38
971 39
971 40
971 41
971 42
971 43
971 44
9...

result:

ok Found equal strings: 17, 979

Test #26:

score: 0
Accepted
time: 18ms
memory: 4096kb

input:

1000
25
26
18
27
29
24
27
27
26
22
24
20
22
27
23
29
21
22
24
27
31
24
23
32
23
28
23
17
28
30
29
27
32
27
33
23
20
22
22
27
24
26
25
25
24
24
29
21
20
24
23
22
27
18
26
26
18
23
21
24
28
28
26
25
20
27
33
28
22
26
26
25
27
21
29
27
23
23
29
21
26
27
26
25
22
29
26
33
23
22
28
24
29
25
30
24
28
22
2...

output:

971 1
971 2
971 3
971 4
971 5
971 6
971 7
971 8
971 9
971 10
971 11
971 12
971 13
971 14
971 15
971 16
971 17
971 18
971 19
971 20
971 21
971 22
971 23
971 24
971 25
971 26
971 27
971 28
971 29
971 30
971 31
971 32
971 33
971 34
971 35
971 36
971 37
971 38
971 39
971 40
971 41
971 42
971 43
971 44
9...

result:

ok Found equal strings: 39, 538

Test #27:

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

input:

1000
29
23
26
24
26
25
25
26
21
28
26
26
26
30
27
24
28
27
23
30
31
22
24
21
21
23
24
25
26
26
29
28
17
28
26
28
25
26
26
26
34
29
29
21
25
23
18
24
26
26
23
21
19
26
30
25
22
27
23
26
24
21
22
35
23
28
22
25
24
22
21
27
20
24
26
24
30
20
26
27
20
25
25
25
25
24
26
24
26
26
25
26
28
23
27
25
24
25
2...

output:

971 1
971 2
971 3
971 4
971 5
971 6
971 7
971 8
971 9
971 10
971 11
971 12
971 13
971 14
971 15
971 16
971 17
971 18
971 19
971 20
971 21
971 22
971 23
971 24
971 25
971 26
971 27
971 28
971 29
971 30
971 31
971 32
971 33
971 34
971 35
971 36
971 37
971 38
971 39
971 40
971 41
971 42
971 43
971 44
9...

result:

ok Found equal strings: 98, 412

Test #28:

score: 0
Accepted
time: 17ms
memory: 4224kb

input:

1000
21
27
23
21
27
25
26
26
23
22
21
19
18
24
26
30
21
19
23
23
23
22
19
27
30
26
29
25
23
23
28
22
25
28
17
31
27
24
26
24
24
28
23
24
22
21
23
23
26
26
29
28
20
28
19
25
20
20
26
21
24
23
29
23
18
25
26
27
30
21
26
24
27
33
23
28
21
28
19
26
22
27
28
24
29
25
22
22
28
19
28
26
25
20
24
25
22
29
2...

output:

971 1
971 2
971 3
971 4
971 5
971 6
971 7
971 8
971 9
971 10
971 11
971 12
971 13
971 14
971 15
971 16
971 17
971 18
971 19
971 20
971 21
971 22
971 23
971 24
971 25
971 26
971 27
971 28
971 29
971 30
971 31
971 32
971 33
971 34
971 35
971 36
971 37
971 38
971 39
971 40
971 41
971 42
971 43
971 44
9...

result:

ok Found equal strings: 598, 970

Test #29:

score: 0
Accepted
time: 27ms
memory: 4096kb

input:

1000
28
24
27
23
28
30
24
27
22
23
22
23
24
19
22
29
24
33
20
25
26
28
27
22
28
29
17
26
25
29
23
28
26
18
35
21
17
33
30
22
21
28
28
25
27
25
28
26
23
23
31
19
27
24
24
33
29
30
21
20
25
21
26
22
23
23
33
19
30
25
23
27
19
26
25
33
27
22
26
25
22
20
23
30
27
31
31
19
25
26
23
22
28
23
25
19
22
22
2...

output:

971 1
971 2
971 3
971 4
971 5
971 6
971 7
971 8
971 9
971 10
971 11
971 12
971 13
971 14
971 15
971 16
971 17
971 18
971 19
971 20
971 21
971 22
971 23
971 24
971 25
971 26
971 27
971 28
971 29
971 30
971 31
971 32
971 33
971 34
971 35
971 36
971 37
971 38
971 39
971 40
971 41
971 42
971 43
971 44
9...

result:

ok Found equal strings: 657, 844

Test #30:

score: 0
Accepted
time: 30ms
memory: 3840kb

input:

1000
21
27
24
24
24
24
24
27
20
23
32
29
21
17
30
23
23
30
28
23
21
24
30
23
22
26
35
28
24
29
29
33
25
23
20
23
29
29
22
25
25
30
25
25
26
26
23
23
25
27
28
27
17
28
24
25
30
21
29
26
23
18
19
24
25
25
18
27
26
23
30
24
26
27
27
25
28
17
20
29
28
25
23
21
23
23
26
27
20
28
23
22
21
26
22
29
22
23
2...

output:

971 1
971 2
971 3
971 4
971 5
971 6
971 7
971 8
971 9
971 10
971 11
971 12
971 13
971 14
971 15
971 16
971 17
971 18
971 19
971 20
971 21
971 22
971 23
971 24
971 25
971 26
971 27
971 28
971 29
971 30
971 31
971 32
971 33
971 34
971 35
971 36
971 37
971 38
971 39
971 40
971 41
971 42
971 43
971 44
9...

result:

ok Found equal strings: 716, 718

Test #31:

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

input:

1000
29
21
24
22
21
23
20
31
27
24
26
23
28
24
23
32
18
26
27
28
22
22
21
28
30
19
21
26
26
25
30
19
23
28
26
25
26
23
25
20
30
22
23
23
28
24
31
29
21
26
26
33
26
27
23
21
26
19
29
26
30
31
23
25
23
26
25
20
22
22
21
24
25
20
25
27
20
24
23
19
23
19
24
28
28
26
28
22
27
25
23
32
19
25
30
25
25
20
3...

output:

971 1
971 2
971 3
971 4
971 5
971 6
971 7
971 8
971 9
971 10
971 11
971 12
971 13
971 14
971 15
971 16
971 17
971 18
971 19
971 20
971 21
971 22
971 23
971 24
971 25
971 26
971 27
971 28
971 29
971 30
971 31
971 32
971 33
971 34
971 35
971 36
971 37
971 38
971 39
971 40
971 41
971 42
971 43
971 44
9...

result:

ok Found equal strings: 57, 240

Test #32:

score: 0
Accepted
time: 23ms
memory: 3968kb

input:

1000
28
23
32
25
25
20
21
26
24
24
23
24
23
23
26
26
25
34
21
27
24
25
23
28
24
21
26
21
28
26
21
26
30
26
27
22
33
23
22
30
28
22
22
22
22
25
17
25
28
22
18
28
25
30
24
22
20
23
26
29
22
29
24
24
20
25
26
19
22
21
31
28
28
29
29
16
22
19
24
22
30
24
26
31
27
25
24
27
29
22
21
20
19
22
31
23
25
24
2...

output:

971 1
971 2
971 3
971 4
971 5
971 6
971 7
971 8
971 9
971 10
971 11
971 12
971 13
971 14
971 15
971 16
971 17
971 18
971 19
971 20
971 21
971 22
971 23
971 24
971 25
971 26
971 27
971 28
971 29
971 30
971 31
971 32
971 33
971 34
971 35
971 36
971 37
971 38
971 39
971 40
971 41
971 42
971 43
971 44
9...

result:

ok Found equal strings: 113, 116

Test #33:

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

input:

1000
26
30
26
26
25
21
26
22
23
24
25
25
20
19
19
20
25
23
25
20
25
26
27
34
27
22
28
19
24
33
26
30
32
24
25
20
15
26
27
27
32
24
32
28
26
27
27
25
31
24
24
27
20
28
22
20
30
25
26
27
21
26
25
27
25
29
21
23
25
25
25
25
24
29
31
20
21
25
25
24
29
26
25
28
26
21
29
27
26
26
20
31
24
26
27
28
23
23
3...

output:

971 1
971 2
971 3
971 4
971 5
971 6
971 7
971 8
971 9
971 10
971 11
971 12
971 13
971 14
971 15
971 16
971 17
971 18
971 19
971 20
971 21
971 22
971 23
971 24
971 25
971 26
971 27
971 28
971 29
971 30
971 31
971 32
971 33
971 34
971 35
971 36
971 37
971 38
971 39
971 40
971 41
971 42
971 43
971 44
9...

result:

ok Found equal strings: 175, 635

Test #34:

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

input:

1000
24
25
23
30
25
29
21
24
23
30
30
26
27
22
19
23
24
26
21
22
21
18
24
28
25
25
18
26
24
26
28
27
22
28
28
30
24
30
30
25
23
28
24
30
23
22
29
27
34
25
28
31
26
26
33
22
23
26
27
19
26
24
19
23
24
26
30
23
30
18
27
29
28
21
24
19
23
27
22
35
28
24
31
30
24
27
26
22
30
28
27
26
24
26
21
25
26
19
1...

output:

971 1
971 2
971 3
971 4
971 5
971 6
971 7
971 8
971 9
971 10
971 11
971 12
971 13
971 14
971 15
971 16
971 17
971 18
971 19
971 20
971 21
971 22
971 23
971 24
971 25
971 26
971 27
971 28
971 29
971 30
971 31
971 32
971 33
971 34
971 35
971 36
971 37
971 38
971 39
971 40
971 41
971 42
971 43
971 44
9...

result:

ok Found equal strings: 235, 509

Test #35:

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

input:

1000
21
28
30
20
32
29
26
19
26
35
21
19
26
28
30
27
27
22
26
23
28
24
23
22
27
30
29
24
20
24
29
30
29
32
24
29
22
25
27
23
29
23
28
26
24
24
22
25
28
24
20
26
24
29
27
20
30
24
28
24
19
28
24
21
29
31
19
27
31
24
28
20
24
25
17
19
30
30
26
26
23
36
25
24
14
27
25
28
30
29
27
29
21
27
30
30
21
23
2...

output:

971 1
971 2
971 3
971 4
971 5
971 6
971 7
971 8
971 9
971 10
971 11
971 12
971 13
971 14
971 15
971 16
971 17
971 18
971 19
971 20
971 21
971 22
971 23
971 24
971 25
971 26
971 27
971 28
971 29
971 30
971 31
971 32
971 33
971 34
971 35
971 36
971 37
971 38
971 39
971 40
971 41
971 42
971 43
971 44
9...

result:

ok Found equal strings: 30, 294

Test #36:

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

input:

1000
26
30
25
29
29
23
28
23
22
29
20
25
22
37
21
22
24
25
26
23
27
31
24
27
21
28
27
23
22
24
22
28
28
19
24
27
26
23
23
23
24
29
23
28
34
36
30
26
22
29
30
19
30
19
23
22
25
27
25
24
24
28
31
28
28
25
22
27
28
28
26
17
27
26
30
22
29
27
25
21
19
25
28
30
18
21
25
23
16
21
19
23
24
27
24
30
28
27
2...

output:

971 1
971 2
971 3
971 4
971 5
971 6
971 7
971 8
971 9
971 10
971 11
971 12
971 13
971 14
971 15
971 16
971 17
971 18
971 19
971 20
971 21
971 22
971 23
971 24
971 25
971 26
971 27
971 28
971 29
971 30
971 31
971 32
971 33
971 34
971 35
971 36
971 37
971 38
971 39
971 40
971 41
971 42
971 43
971 44
9...

result:

ok Found equal strings: 634, 904

Test #37:

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

input:

1000
35
30
26
25
31
28
28
23
23
27
29
23
22
20
24
26
25
26
24
24
22
25
31
32
28
24
29
24
26
21
30
27
25
29
23
28
26
27
30
28
24
25
26
25
25
24
25
21
25
22
25
19
23
25
24
27
15
23
25
26
23
29
31
29
23
20
30
25
23
24
26
24
21
24
25
31
27
29
22
20
25
26
22
23
26
30
26
27
20
27
27
20
25
20
26
30
20
30
2...

output:

971 1
971 2
971 3
971 4
971 5
971 6
971 7
971 8
971 9
971 10
971 11
971 12
971 13
971 14
971 15
971 16
971 17
971 18
971 19
971 20
971 21
971 22
971 23
971 24
971 25
971 26
971 27
971 28
971 29
971 30
971 31
971 32
971 33
971 34
971 35
971 36
971 37
971 38
971 39
971 40
971 41
971 42
971 43
971 44
9...

result:

ok Found equal strings: 693, 778

Test #38:

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

input:

1000
24
21
24
23
25
24
21
32
27
36
22
22
25
26
33
27
24
21
29
23
26
23
25
25
26
24
21
24
28
17
26
25
25
23
27
28
27
21
28
23
24
29
23
17
28
23
24
22
27
27
26
24
22
25
23
22
33
29
25
26
26
22
23
22
27
27
26
22
22
25
28
18
28
27
22
22
22
24
23
28
24
26
17
27
22
19
26
27
30
21
16
27
26
21
21
21
26
29
2...

output:

971 1
971 2
971 3
971 4
971 5
971 6
971 7
971 8
971 9
971 10
971 11
971 12
971 13
971 14
971 15
971 16
971 17
971 18
971 19
971 20
971 21
971 22
971 23
971 24
971 25
971 26
971 27
971 28
971 29
971 30
971 31
971 32
971 33
971 34
971 35
971 36
971 37
971 38
971 39
971 40
971 41
971 42
971 43
971 44
9...

result:

ok Found equal strings: 336, 912

Test #39:

score: 0
Accepted
time: 0ms
memory: 3712kb

input:

2
0

output:

1 2

result:

ok Found equal strings: 1, 2

Extra Test:

score: 0
Extra Test Passed