QOJ.ac

QOJ

IDProblemSubmitterResultTimeMemoryLanguageFile sizeSubmit timeJudge time
#869926#8615. Equal Stringsucup-team4866#WA 27ms3712kbC++201.7kb2025-01-25 13:56:522025-01-25 13:56:56

Details

Tip: Click on the bar to expand more detailed information

Test #1:

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

input:

4
21
24
21
0

output:

2 1
3 1
4 1
2 4

result:

ok Found equal strings: 2, 4

Test #2:

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

input:

4
28
0

output:

2 1
3 1

result:

ok Found equal strings: 3, 1

Test #3:

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

input:

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

output:

2 1
3 1
4 1
5 1
6 1
7 1
8 1
9 1
10 1
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:

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
63 ...

result:

ok Found equal strings: 62, 100

Test #5:

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

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:

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
63 ...

result:

ok Found equal strings: 100, 334

Test #6:

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

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:

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
63 ...

result:

ok Found equal strings: 130, 698

Test #7:

score: 0
Accepted
time: 1ms
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:

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
63 ...

result:

ok Found equal strings: 205, 281

Test #8:

score: -100
Wrong Answer
time: 27ms
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:

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
63 ...

result:

wrong answer Too many queries