QOJ.ac

QOJ

ID题目提交者结果用时内存语言文件大小提交时间测评时间
#869532#8615. Equal Stringsucup-team5284#WA 22ms3712kbC++17722b2025-01-25 10:53:132025-01-25 10:53:19

详细

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: 1ms
memory: 3584kb

input:

4
23
25
23
0

output:

1 4
2 4
3 4
1 3

result:

ok Found equal strings: 1, 3

Test #3:

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

input:

10
24
19
26
25
27
23
23
26
20
0

output:

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

result:

ok Found equal strings: 3, 9

Test #4:

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

input:

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

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: 62, 100

Test #5:

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

input:

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

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: 100, 334

Test #6:

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

input:

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

output:

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

result:

ok Found equal strings: 130, 698

Test #7:

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

input:

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

output:

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

result:

ok Found equal strings: 205, 281

Test #8:

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

input:

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

output:

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

result:

ok Found equal strings: 211, 327

Test #9:

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

input:

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

output:

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

result:

ok Found equal strings: 220, 448

Test #10:

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

input:

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

output:

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

result:

ok Found equal strings: 279, 970

Test #11:

score: -100
Wrong Answer
time: 22ms
memory: 3584kb

input:

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

output:

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

result:

wrong answer Too many queries