QOJ.ac

QOJ

IDProblemSubmitterResultTimeMemoryLanguageFile sizeSubmit timeJudge time
#869536#8615. Equal Stringsucup-team5284#RE 6ms7680kbC++17703b2025-01-25 10:56:442025-01-25 10:56:45

Details

Tip: Click on the bar to expand more detailed information

Test #1:

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

input:

4
21
24
21
0

output:

1 2
1 3
1 4
2 4

result:

ok Found equal strings: 2, 4

Test #2:

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

input:

4
28
0

output:

1 2
1 3

result:

ok Found equal strings: 1, 3

Test #3:

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

input:

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

output:

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

result:

ok Found equal strings: 3, 9

Test #4:

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

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

Test #5:

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

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

Test #6:

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

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:

ok Found equal strings: 130, 698

Test #7:

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

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:

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: 205, 281

Test #8:

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

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:

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: 211, 327

Test #9:

score: 0
Accepted
time: 6ms
memory: 7556kb

input:

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

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: 220, 448

Test #10:

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

input:

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

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: 279, 970

Test #11:

score: -100
Runtime Error

input:

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

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: