QOJ.ac

QOJ

IDProblemSubmitterResultTimeMemoryLanguageFile sizeSubmit timeJudge time
#851895#8749. 贸易MaMengQiWA 76ms9812kbC++14873b2025-01-11 08:43:092025-01-11 08:43:09

Details

Tip: Click on the bar to expand more detailed information

Test #1:

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

input:

10 5
1 1 0 0 0 0 0 1 1 1
1 1 1 1 1 1 1 1 1 1
4 6
2 4
2 6
7 10
4 7

output:

0
0
0
1
0

result:

ok 5 lines

Test #2:

score: -100
Wrong Answer
time: 76ms
memory: 7748kb

input:

20 500000
1 0 0 1 0 0 0 0 1 0 1 0 1 0 1 0 1 0 0 0
1 2 1 2 2 1 1 2 1 1 1 2 2 1 2 2 2 1 1 2
13 20
8 9
1 7
5 13
3 10
3 19
14 15
1 5
9 17
7 10
6 6
8 20
1 17
13 20
4 6
16 20
7 14
2 16
3 17
11 12
1 1
15 20
11 15
2 12
2 15
8 16
9 12
9 13
10 19
12 19
9 13
4 8
2 2
19 19
9 17
4 20
4 14
4 8
6 13
13 17
15 16
13...

output:

1048575
1048575
1048575
1048575
1048575
1048575
1048575
1048575
1048575
1048575
1048575
1048575
1048575
1048575
1048575
1048575
1048575
1048575
1048575
1048575
1048575
1048575
1048575
1048575
1048575
1048575
1048575
1048575
1048575
1048575
1048575
1048575
1048575
1048575
1048575
1048575
1048575
1048...

result:

wrong answer 1st lines differ - expected: '1', found: '1048575'