QOJ.ac

QOJ

ID题目提交者结果用时内存语言文件大小提交时间测评时间
#704746#9524. 1D Galaxyntu_vjudge_1TL 0ms3604kbC++206.7kb2024-11-02 20:53:242024-11-02 20:53:26

详细

Test #1:

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

input:

4 12
0 1
1 2
-1 3
2 2
0 1
0 2
0 3
0 4
1 1
1 2
1 3
1 4
2 1
2 2
2 3
2 4

output:

0
1
-1
2
1
0
0
1
0
1
1
0

result:

ok 12 lines

Test #2:

score: -100
Time Limit Exceeded

input:

5 5
-4 5
-1 3
5 5
0 4
-4 2
0 3
3 1
5 5
1 3
3 3

output:


result: