QOJ.ac

QOJ

IDProblemSubmitterResultTimeMemoryLanguageFile sizeSubmit timeJudge time
#321552#4825. Even and Odd CombinationsHuangHanSheng0 0ms3836kbC++201.5kb2024-02-04 22:33:442024-02-04 22:33:45

Details

Tip: Click on the bar to expand more detailed information

Test #1:

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

input:

6
3 0
2 1
1
3 3
1 2 3
3 1
1
3 1
2
3 1
3

output:

3 1
1 
2 0

3 2
2 3 
3 0

3 2
1 2 
3 2
1 3 

input:

6
3 1
1
2 0
3 2
2 3
3 0
3 2
1 2
3 2
1 3

output:

3 0

2 1
1 
3 3
1 2 3 
3 1
1 
3 1
2 
3 1
3 

result:

ok 12 lines

Test #2:

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

input:

1
1 0

output:

1 1
1 

input:

1
1 1
1

output:

1 0


result:

ok single line: '1 0'

Test #3:

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

input:

3
1 1
1
1 0
1 1
1

output:

1 0

1 1
1 
1 0


input:

3
1 0
1 1
1
1 0

output:

1 1
1 
1 0

1 1
1 

result:

ok 6 lines

Test #4:

score: 0
Wrong Answer on the first run

input:

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

output:

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

input:


output:


result:

wrong answer the size of your subset must have a different parity (test case 577)