QOJ.ac

QOJ

IDProblemSubmitterResultTimeMemoryLanguageFile sizeSubmit timeJudge time
#669485#9292. FoodSberryZhangYiDe TL 0ms4104kbC++172.3kb2024-10-23 18:45:382024-10-23 18:45:38

Details

Tip: Click on the bar to expand more detailed information

Test #1:

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

input:

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

output:

3

result:

ok answer is '3'

Test #2:

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

input:

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

output:

-1

result:

ok answer is '-1'

Test #3:

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

input:

5 10 10 20 3 2
2 -3
-7 -2
-5 2
8 -3
-1 2
-5 4
-3 -4
-1 -8
-1 1
-2 5
2 -1
0 6
-4 -8
0 6
-8 8

output:

-1

result:

ok answer is '-1'

Test #4:

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

input:

5 10 10 20 3 2
7 -2
-7 1
8 -6
0 -3
-7 10
3 -10
-8 8
6 -5
5 2
-1 9
-3 -6
-3 9
0 -8
5 -7
8 0

output:

-1

result:

ok answer is '-1'

Test #5:

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

input:

5 10 10 20 3 2
10 4
-5 -10
4 -6
9 -3
-3 0
-10 10
-10 8
-7 5
-2 -4
-5 2
-4 -6
4 -8
-8 -2
2 -5
-4 -10

output:

-1

result:

ok answer is '-1'

Test #6:

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

input:

5 10 10 20 3 2
8 10
7 -2
4 9
8 -6
9 2
10 0
-8 0
3 6
-3 8
-3 2
-6 -7
-9 0
3 -1
3 9
-7 -8

output:

-1

result:

ok answer is '-1'

Test #7:

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

input:

5 10 10 20 3 2
-1 2
9 3
8 2
0 8
-3 1
3 1
2 0
-2 6
-9 -4
-1 -5
-9 -1
2 7
2 -1
3 0
7 3

output:

-1

result:

ok answer is '-1'

Test #8:

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

input:

5 10 5 10 3 2
-5 -8
8 -6
-6 8
-1 5
7 -3
-1 0
-10 2
-8 -10
-10 -9
10 -2
4 1
-8 2
1 -8
-7 6
3 5

output:

-1

result:

ok answer is '-1'

Test #9:

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

input:

5 10 5 10 3 2
-1 10
-10 3
1 -3
-3 3
4 10
-4 -5
1 10
-10 -8
-2 -5
4 -7
0 9
-4 3
-8 -6
-5 -2
2 8

output:

3

result:

ok answer is '3'

Test #10:

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

input:

5 10 5 10 3 2
-10 6
5 9
-5 -6
-8 -6
-10 8
-8 -7
4 4
-2 4
6 10
-1 -6
-1 -2
2 6
-5 9
-10 9
10 4

output:

10

result:

ok answer is '10'

Test #11:

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

input:

5 10 5 10 3 2
-6 -6
-10 9
10 -1
-4 10
-3 1
-7 5
-7 -6
2 3
7 -9
0 1
-3 2
-8 8
-9 -1
3 2
-10 3

output:

-1

result:

ok answer is '-1'

Test #12:

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

input:

5 10 5 10 3 2
4 6
6 -8
-8 4
6 -8
4 2
9 10
2 0
10 5
-1 -6
9 -2
-4 1
10 -4
-9 8
9 -10
-4 -6

output:

10

result:

ok answer is '10'

Test #13:

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

input:

5 10 5 10 3 1
-10 -1
-1 -3
-6 -1
-8 -5
-1 6
-8 0
8 -7
9 -10
-8 4
-4 3
8 1
10 -2
-10 6
9 7
9 6

output:

3

result:

ok answer is '3'

Test #14:

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

input:

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

output:

3

result:

ok answer is '3'

Test #15:

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

input:

5 10 5 10 3 1
-5 2
-8 1
1 -10
5 -10
6 9
5 5
10 -3
7 -7
0 5
5 7
-1 10
-8 1
7 2
0 -8
-4 -8

output:

-1

result:

ok answer is '-1'

Test #16:

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

input:

5 10 5 10 3 1
-6 -8
-8 1
-7 8
1 5
-6 -7
-3 0
6 -1
7 10
-9 3
2 2
7 7
-6 8
6 9
0 -10
-1 -4

output:

3

result:

ok answer is '3'

Test #17:

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

input:

5 10 5 10 3 1
1 -5
-3 10
-3 -8
0 -1
-2 4
2 -1
-10 4
7 1
2 -5
6 10
8 -9
3 -4
5 1
-3 7
-5 9

output:

8

result:

ok answer is '8'

Test #18:

score: -100
Time Limit Exceeded

input:

500 500 10000 20000 4 2
7017 -4644
7028 -8844
3816 7238
-6598 -2637
-8844 -5307
1543 4512
7734 -3683
-9477 -4017
7538 -9708
1619 -400
-9348 768
-5410 8317
5346 -145
2971 2720
-6503 -3696
-1110 -1787
263 -8432
-1485 -9909
-3990 -3065
-9173 7227
-5305 -5329
-6247 -9849
-3284 2298
-3995 8511
-1103 -250...

output:


result: