QOJ.ac

QOJ

IDProblemSubmitterResultTimeMemoryLanguageFile sizeSubmit timeJudge time
#357913#7798. Colorful Villageucup-team2880WA 4ms18044kbC++232.6kb2024-03-19 14:54:562024-03-19 14:54:56

Details

Tip: Click on the bar to expand more detailed information

Test #1:

score: 100
Accepted
time: 2ms
memory: 17944kb

input:

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

output:

2 3 5 7 
-1

result:

ok ok, 1 yes, 1 no (2 test cases)

Test #2:

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

input:

1
1
1 1
1 2

output:

1 

result:

ok ok, 1 yes, 0 no (1 test case)

Test #3:

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

input:

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

output:

1 
1 
1 5 6 
2 4 5 7 
1 

result:

ok ok, 5 yes, 0 no (5 test cases)

Test #4:

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

input:

10
3
3 2 3 1 1 2
3 1
3 4
2 5
5 3
6 4
15
8 9 13 12 2 4 11 15 10 10 1 12 8 6 15 7 9 5 3 6 14 14 13 3 1 7 11 5 4 2
24 30
1 26
2 16
4 7
30 19
3 19
13 11
21 25
23 22
30 4
19 27
17 26
16 17
21 7
23 25
15 11
10 8
4 16
2 11
14 16
5 10
22 6
11 5
21 18
15 29
24 9
28 19
23 12
13 20
23
21 20 5 9 18 20 21 9 3 6 ...

output:

3 4 6 
-1
-1
-1
-1
1 2 3 5 8 
1 2 5 8 9 
2 4 7 9 12 13 14 16 
1 8 9 13 14 15 16 17 18 20 21 
-1

result:

ok ok, 5 yes, 5 no (10 test cases)

Test #5:

score: -100
Wrong Answer
time: 4ms
memory: 18044kb

input:

100
12
1 2 2 8 10 9 12 11 10 4 12 6 9 3 3 7 5 1 7 6 11 5 8 4
6 5
24 7
2 12
11 3
20 15
8 10
7 10
18 16
15 14
19 2
10 14
18 14
9 14
17 5
12 18
4 23
5 20
10 13
1 4
16 22
11 2
3 21
4 24
2
1 2 1 2
2 1
3 4
1 3
3
1 1 2 2 3 3
1 4
6 4
4 5
2 6
3 4
8
1 8 6 8 4 6 7 5 5 7 4 3 2 1 2 3
9 3
2 16
8 10
1 13
13 2
13 1...

output:

-1
1 2 
2 4 6 
2 3 7 9 11 12 13 14 
1 3 6 
-1
1 
2 5 6 8 
1 3 5 6 9 10 11 14 16 19 20 22 24 27 
4 5 6 7 8 9 11 16 
-1
2 4 5 8 10 11 12 13 14 16 17 20 24 26 28 30 31 35 38 39 
-1
1 
1 2 3 4 7 9 13 15 17 19 
2 5 6 
-1
-1
-1
1 
1 
2 3 5 7 9 10 11 15 
1 2 5 6 
1 3 
1 
1 
-1
-1
1 2 4 5 9 
3 5 6 
-1
1 3 6...

result:

wrong answer jury found a solution but participant did not (test case 31)