QOJ.ac

QOJ

IDProblemSubmitterResultTimeMemoryLanguageFile sizeSubmit timeJudge time
#872564#8615. Equal Stringsucup-team018#WA 5ms3584kbC++142.0kb2025-01-26 02:26:172025-01-26 02:26:25

Details

Tip: Click on the bar to expand more detailed information

Test #1:

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

input:

4
21
24
23
21
0

output:

2 1
3 1
3 2
4 1
4 2

result:

ok Found equal strings: 4, 2

Test #2:

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

input:

4
28
0

output:

2 1
3 1

result:

ok Found equal strings: 3, 1

Test #3:

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

input:

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

output:

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

result:

ok Found equal strings: 9, 3

Test #4:

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

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

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:

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

Test #6:

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

wrong answer format  Unexpected end of file - int32 expected