QOJ.ac

QOJ

IDProblemSubmitterResultTimeMemoryLanguageFile sizeSubmit timeJudge time
#515314#4883. Bayan TestingZhaoZiLongWA 33ms10096kbC++111.7kb2024-08-11 17:03:572024-08-11 17:03:57

Details

Tip: Click on the bar to expand more detailed information

Test #1:

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

input:

3
2 1
1 1
2 2
6 2
1 3
4 6
2 4
3 5
4 3
1 2
1 1
2 2
2 3
3 3
3 4

output:

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

result:

ok ok (3 test cases)

Test #2:

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

input:

100000
2 1
1 1
2 2
2 1
2 2
1 2
2 1
1 2
2 2
2 1
1 2
2 2
2 1
2 2
1 2
2 1
2 2
1 1
2 1
1 1
2 2
2 1
1 2
2 2
2 1
2 2
1 1
2 1
2 2
1 2
2 1
2 2
1 1
2 1
2 2
1 2
2 1
2 2
1 2
2 1
2 2
1 1
2 1
2 2
1 1
2 1
1 2
2 2
2 1
2 2
1 2
2 1
2 2
1 2
2 1
2 2
1 2
2 1
1 1
2 2
2 1
2 2
1 2
2 1
1 1
2 2
2 1
1 1
2 2
2 1
2 2
1 2
2 1
2...

output:

-1
1 1 
1 1 
1 1 
1 1 
-1
-1
1 1 
-1
1 1 
-1
1 1 
1 1 
-1
-1
1 1 
1 1 
1 1 
1 1 
-1
1 1 
-1
-1
1 1 
-1
1 1 
1 1 
-1
-1
1 1 
1 1 
-1
1 1 
1 1 
1 1 
1 1 
1 1 
1 1 
1 1 
1 1 
-1
1 1 
1 1 
1 1 
1 1 
1 1 
1 1 
-1
1 1 
1 1 
1 1 
1 1 
-1
1 1 
-1
1 1 
1 1 
1 1 
1 1 
1 1 
1 1 
1 1 
-1
1 1 
1 1 
1 1 
-1
-1
1 ...

result:

ok ok (100000 test cases)

Test #3:

score: -100
Wrong Answer
time: 32ms
memory: 10096kb

input:

25000
10 5
4 10
1 4
9 9
2 9
5 8
1 8
1 5
5 5
4 9
6 6
11 5
9 11
4 7
2 2
2 5
8 10
3 11
2 4
4 8
3 10
4 6
5 2
1 3
4 4
1 5
5 5
6 3
4 6
3 3
1 5
3 6
1 1
1 3
7 3
4 4
3 5
1 6
3 4
2 3
1 2
7 3
3 4
1 5
6 7
2 6
3 5
2 3
5 2
5 5
4 5
2 3
1 1
10 5
3 6
4 5
3 3
6 9
2 5
9 10
5 6
5 7
1 4
8 9
11 5
1 10
2 11
6 9
2 6
6 6
8 ...

output:

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

result:

wrong answer the number of segments with two equal elements is 5 != 3 (test case 6)