QOJ.ac

QOJ

IDProblemSubmitterResultTimeMemoryLanguageFile sizeSubmit timeJudge time
#869943#8615. Equal Stringsucup-team6093#AC ✓7ms3712kbC++232.5kb2025-01-25 14:01:212025-01-25 14:01:29

Details

Tip: Click on the bar to expand more detailed information

Test #1:

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

input:

4
21
24
21
0

output:

1 2
1 3
1 4
2 4

result:

ok Found equal strings: 2, 4

Test #2:

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

input:

4
28
0

output:

1 2
1 3

result:

ok Found equal strings: 1, 3

Test #3:

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

input:

10
23
24
24
21
25
29
25
24
28
28
26
0

output:

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

result:

ok Found equal strings: 3, 9

Test #4:

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

input:

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

output:

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

result:

ok Found equal strings: 62, 100

Test #5:

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

input:

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

output:

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

result:

ok Found equal strings: 100, 334

Test #6:

score: 0
Accepted
time: 3ms
memory: 3584kb

input:

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

output:

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

result:

ok Found equal strings: 130, 698

Test #7:

score: 0
Accepted
time: 3ms
memory: 3584kb

input:

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

output:

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

result:

ok Found equal strings: 205, 281

Test #8:

score: 0
Accepted
time: 6ms
memory: 3584kb

input:

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

output:

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

result:

ok Found equal strings: 211, 327

Test #9:

score: 0
Accepted
time: 6ms
memory: 3584kb

input:

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

output:

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

result:

ok Found equal strings: 220, 448

Test #10:

score: 0
Accepted
time: 3ms
memory: 3584kb

input:

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

output:

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

result:

ok Found equal strings: 279, 970

Test #11:

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

input:

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

output:

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

result:

ok Found equal strings: 619, 843

Test #12:

score: 0
Accepted
time: 3ms
memory: 3584kb

input:

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

output:

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

result:

ok Found equal strings: 678, 717

Test #13:

score: 0
Accepted
time: 4ms
memory: 3584kb

input:

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

output:

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

result:

ok Found equal strings: 239, 737

Test #14:

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

input:

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

output:

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

result:

ok Found equal strings: 112, 796

Test #15:

score: 0
Accepted
time: 3ms
memory: 3584kb

input:

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

output:

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

result:

ok Found equal strings: 634, 855

Test #16:

score: 0
Accepted
time: 3ms
memory: 3584kb

input:

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

output:

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

result:

ok Found equal strings: 196, 508

Test #17:

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

input:

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

output:

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

result:

ok Found equal strings: 30, 255

Test #18:

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

input:

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

output:

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

result:

ok Found equal strings: 284, 957

Test #19:

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

input:

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

output:

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

result:

ok Found equal strings: 343, 478

Test #20:

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

input:

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

output:

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

result:

ok Found equal strings: 352, 402

Test #21:

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

input:

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

output:

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

result:

ok Found equal strings: 462, 874

Test #22:

score: 0
Accepted
time: 4ms
memory: 3584kb

input:

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

output:

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

result:

ok Found equal strings: 521, 747

Test #23:

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

input:

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

output:

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

result:

ok Found equal strings: 621, 861

Test #24:

score: 0
Accepted
time: 4ms
memory: 3584kb

input:

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

output:

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

result:

ok Found equal strings: 143, 920

Test #25:

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

input:

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

output:

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

result:

ok Found equal strings: 17, 979

Test #26:

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

input:

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

output:

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

result:

ok Found equal strings: 39, 538

Test #27:

score: 0
Accepted
time: 7ms
memory: 3584kb

input:

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

output:

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

result:

ok Found equal strings: 98, 412

Test #28:

score: 0
Accepted
time: 6ms
memory: 3584kb

input:

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

output:

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

result:

ok Found equal strings: 598, 970

Test #29:

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

input:

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

output:

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

result:

ok Found equal strings: 657, 844

Test #30:

score: 0
Accepted
time: 3ms
memory: 3584kb

input:

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

output:

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

result:

ok Found equal strings: 716, 718

Test #31:

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

input:

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

output:

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

result:

ok Found equal strings: 57, 240

Test #32:

score: 0
Accepted
time: 5ms
memory: 3584kb

input:

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

output:

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

result:

ok Found equal strings: 113, 116

Test #33:

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

input:

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

output:

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

result:

ok Found equal strings: 175, 635

Test #34:

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

input:

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

output:

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

result:

ok Found equal strings: 235, 509

Test #35:

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

input:

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

output:

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

result:

ok Found equal strings: 30, 294

Test #36:

score: 0
Accepted
time: 3ms
memory: 3584kb

input:

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

output:

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

result:

ok Found equal strings: 634, 904

Test #37:

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

input:

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

output:

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

result:

ok Found equal strings: 693, 778

Test #38:

score: 0
Accepted
time: 4ms
memory: 3584kb

input:

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

output:

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

result:

ok Found equal strings: 336, 912

Test #39:

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

input:

2
0

output:

1 2

result:

ok Found equal strings: 1, 2

Extra Test:

score: 0
Extra Test Passed