QOJ.ac

QOJ

IDProblemSubmitterResultTimeMemoryLanguageFile sizeSubmit timeJudge time
#872597#8615. Equal Stringsucup-team3612#AC ✓37ms3968kbC++231.0kb2025-01-26 02:39:102025-01-26 02:39:10

Details

Tip: Click on the bar to expand more detailed information

Test #1:

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

input:

4
21
0

output:

1 4
2 4

result:

ok Found equal strings: 2, 4

Test #2:

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

input:

4
23
25
23
23
25
23
28
0

output:

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

result:

ok Found equal strings: 3, 1

Test #3:

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

input:

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

output:

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

result:

ok Found equal strings: 3, 9

Test #4:

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

input:

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

output:

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

result:

ok Found equal strings: 62, 100

Test #5:

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

input:

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

output:

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 225
4...

result:

ok Found equal strings: 100, 334

Test #6:

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

input:

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

output:

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

result:

ok Found equal strings: 130, 698

Test #7:

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

input:

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

output:

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

result:

ok Found equal strings: 205, 281

Test #8:

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

input:

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

output:

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

result:

ok Found equal strings: 211, 327

Test #9:

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

input:

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

output:

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

result:

ok Found equal strings: 220, 448

Test #10:

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

input:

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

output:

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

result:

ok Found equal strings: 279, 970

Test #11:

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

input:

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

output:

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

result:

ok Found equal strings: 619, 843

Test #12:

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

input:

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

output:

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

result:

ok Found equal strings: 678, 717

Test #13:

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

input:

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

output:

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

result:

ok Found equal strings: 239, 737

Test #14:

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

input:

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

output:

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

result:

ok Found equal strings: 112, 796

Test #15:

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

input:

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

output:

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

result:

ok Found equal strings: 634, 855

Test #16:

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

input:

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

output:

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

result:

ok Found equal strings: 508, 196

Test #17:

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

input:

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

output:

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

result:

ok Found equal strings: 30, 255

Test #18:

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

input:

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

output:

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

result:

ok Found equal strings: 284, 957

Test #19:

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

input:

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

output:

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

result:

ok Found equal strings: 343, 478

Test #20:

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

input:

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

output:

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

result:

ok Found equal strings: 352, 402

Test #21:

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

input:

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

output:

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

result:

ok Found equal strings: 462, 874

Test #22:

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

input:

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

output:

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

result:

ok Found equal strings: 521, 747

Test #23:

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

input:

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

output:

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

result:

ok Found equal strings: 621, 861

Test #24:

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

input:

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

output:

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

result:

ok Found equal strings: 143, 920

Test #25:

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

input:

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

output:

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

result:

ok Found equal strings: 17, 979

Test #26:

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

input:

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

output:

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

result:

ok Found equal strings: 39, 538

Test #27:

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

input:

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

output:

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

result:

ok Found equal strings: 98, 412

Test #28:

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

input:

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

output:

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

result:

ok Found equal strings: 598, 970

Test #29:

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

input:

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

output:

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

result:

ok Found equal strings: 657, 844

Test #30:

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

input:

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

output:

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

result:

ok Found equal strings: 716, 718

Test #31:

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

input:

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

output:

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

result:

ok Found equal strings: 57, 240

Test #32:

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

input:

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

output:

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

result:

ok Found equal strings: 113, 116

Test #33:

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

input:

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

output:

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

result:

ok Found equal strings: 175, 635

Test #34:

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

input:

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

output:

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

result:

ok Found equal strings: 235, 509

Test #35:

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

input:

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

output:

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

result:

ok Found equal strings: 30, 294

Test #36:

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

input:

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

output:

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

result:

ok Found equal strings: 634, 904

Test #37:

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

input:

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

output:

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

result:

ok Found equal strings: 693, 778

Test #38:

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

input:

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

output:

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

result:

ok Found equal strings: 336, 912

Test #39:

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

input:

2
0

output:

1 2

result:

ok Found equal strings: 1, 2

Extra Test:

score: 0
Extra Test Passed