QOJ.ac

QOJ

ID题目提交者结果用时内存语言文件大小提交时间测评时间
#872496#8615. Equal Stringsucup-team1878#AC ✓38ms3968kbC++14806b2025-01-26 02:08:042025-01-26 02:08:05

詳細信息

Test #1:

score: 100
Accepted
time: 1ms
memory: 3456kb

input:

4
21
24
21
21
23
0

output:

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

result:

ok Found equal strings: 2, 4

Test #2:

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

input:

4
0

output:

3 1

result:

ok Found equal strings: 3, 1

Test #3:

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

input:

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

output:

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

result:

ok Found equal strings: 9, 3

Test #4:

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

input:

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

output:

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

result:

ok Found equal strings: 62, 100

Test #5:

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

input:

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

output:

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

result:

ok Found equal strings: 100, 334

Test #6:

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

input:

750
26
25
21
23
21
26
21
24
30
21
25
22
25
23
24
28
20
22
24
29
29
28
23
26
27
19
28
26
33
24
24
24
26
23
24
20
21
25
28
27
26
30
21
26
26
26
28
32
22
28
26
27
24
28
26
21
28
23
22
27
27
23
23
22
26
22
21
26
24
28
29
28
22
25
29
24
27
28
20
24
29
32
27
29
26
29
28
27
17
21
23
28
26
28
28
22
36
26
32...

output:

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

result:

ok Found equal strings: 698, 130

Test #7:

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

input:

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

output:

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

result:

ok Found equal strings: 205, 281

Test #8:

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

input:

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

output:

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

result:

ok Found equal strings: 211, 327

Test #9:

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

input:

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

output:

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

result:

ok Found equal strings: 220, 448

Test #10:

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

input:

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

output:

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

result:

ok Found equal strings: 279, 970

Test #11:

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

input:

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

output:

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

result:

ok Found equal strings: 619, 843

Test #12:

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

input:

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

output:

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

result:

ok Found equal strings: 678, 717

Test #13:

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

input:

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

output:

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

result:

ok Found equal strings: 239, 737

Test #14:

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

input:

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

output:

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

result:

ok Found equal strings: 112, 796

Test #15:

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

input:

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

output:

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

result:

ok Found equal strings: 634, 855

Test #16:

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

input:

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

output:

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

result:

ok Found equal strings: 196, 508

Test #17:

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

input:

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

output:

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

result:

ok Found equal strings: 30, 255

Test #18:

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

input:

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

output:

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

result:

ok Found equal strings: 284, 957

Test #19:

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

input:

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

output:

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

result:

ok Found equal strings: 343, 478

Test #20:

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

input:

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

output:

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

result:

ok Found equal strings: 352, 402

Test #21:

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

input:

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

output:

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

result:

ok Found equal strings: 462, 874

Test #22:

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

input:

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

output:

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

result:

ok Found equal strings: 521, 747

Test #23:

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

input:

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

output:

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

result:

ok Found equal strings: 621, 861

Test #24:

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

input:

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

output:

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

result:

ok Found equal strings: 143, 920

Test #25:

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

input:

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

output:

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

result:

ok Found equal strings: 17, 979

Test #26:

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

input:

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

output:

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

result:

ok Found equal strings: 39, 538

Test #27:

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

input:

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

output:

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

result:

ok Found equal strings: 98, 412

Test #28:

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

input:

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

output:

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

result:

ok Found equal strings: 598, 970

Test #29:

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

input:

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

output:

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

result:

ok Found equal strings: 657, 844

Test #30:

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

input:

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

output:

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

result:

ok Found equal strings: 716, 718

Test #31:

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

input:

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

output:

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

result:

ok Found equal strings: 57, 240

Test #32:

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

input:

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

output:

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

result:

ok Found equal strings: 113, 116

Test #33:

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

input:

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

output:

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

result:

ok Found equal strings: 175, 635

Test #34:

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

input:

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

output:

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

result:

ok Found equal strings: 235, 509

Test #35:

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

input:

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

output:

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

result:

ok Found equal strings: 30, 294

Test #36:

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

input:

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

output:

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

result:

ok Found equal strings: 634, 904

Test #37:

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

input:

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

output:

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

result:

ok Found equal strings: 693, 778

Test #38:

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

input:

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

output:

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

result:

ok Found equal strings: 336, 912

Test #39:

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

input:

2
0

output:

2 1

result:

ok Found equal strings: 2, 1

Extra Test:

score: 0
Extra Test Passed