QOJ.ac

QOJ

IDProblemSubmitterResultTimeMemoryLanguageFile sizeSubmit timeJudge time
#294149#4825. Even and Odd Combinationsucup-team1249#0 1ms3752kbC++231.5kb2023-12-30 08:34:292023-12-30 08:34:29

Details

Tip: Click on the bar to expand more detailed information

Test #1:

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

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 2
1 2 
3 0

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

input:

6
3 3
1 2 3
2 2
1 2
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: 3612kb

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

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: 100
Accepted
time: 1ms
memory: 3624kb

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

input:

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

output:

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 ...

result:

ok 2000 lines

Test #5:

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

input:

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

output:

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

input:

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

output:

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

result:

ok 2000 lines

Test #6:

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

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

input:

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

output:

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 ...

result:

ok 2000 lines

Test #7:

score: 0
Wrong Answer
time: 1ms
memory: 3620kb

input:

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

output:

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

input:

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

output:

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

result:

wrong answer 1883rd lines differ - expected: '2 0', found: '2 2'