QOJ.ac

QOJ

IDProblemSubmitterResultTimeMemoryLanguageFile sizeSubmit timeJudge time
#649798#4825. Even and Odd Combinationsucup-team3475#0 0ms3844kbC++20580b2024-10-18 10:28:582024-10-18 10:28:58

Details

Tip: Click on the bar to expand more detailed information

Test #1:

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

input:

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

output:

3 3
1 2 3 
2 0

3 0

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

input:

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

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: 3844kb

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: 3600kb

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 4
4 8 10 11 
11 5
1 2 4 9 10 
12 5
2 3 4 5 8 12 
11 5
4 5 6 7 8 
12 4
1 5 8 11 
9 6
1 2 4 5 6 9 
12 2
4 6 12 
12 7
1 3 4 5 7 8 9 12 
10 6
1 3 5 6 7 9 10 
12 5
2 5 6 8 9 12 
11 8
1 2 4 5 8 9 10 11 
11 5
1 2 4 6 11 
12 7
2 3 5 6 7 9 10 12 
11 5
1 4 7 8 11 
12 7
1 3 5 6 8 9 10 12 
12 6
1 2 7 8 9 11 ...

input:


output:


result:

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