QOJ.ac

QOJ

ID题目提交者结果用时内存语言文件大小提交时间测评时间
#649675#6802. Yet Another Geometry ProblemFantasy_BallAC ✓763ms3936kbC++201.5kb2024-10-18 08:50:432024-10-18 08:50:46

详细

Test #1:

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

input:

1
5 5
1 4
2 1
3 2
4 1
4 4
3
3 1
2 3
4 3

output:

4
9
4

result:

ok 3 lines

Test #2:

score: 0
Accepted
time: 763ms
memory: 3908kb

input:

10
5 0
2
1 1
4 4
5 5
1 4
2 1
3 2
4 1
4 4
3
3 1
4 3
2 3
6 5
1 3
2 3
3 3
4 3
5 3
3
5 2
5 3
5 4
6 5
3 1
3 2
3 3
3 4
3 5
3
2 1
3 1
4 1
6 9
3 3
4 4
5 5
1 1
2 2
1 5
5 1
4 2
2 4
4
1 3
5 3
2 1
4 5
1000000000 5000
2010137 9193310
22814417 27301098
7092651 1468794
32719415 26016837
11683091 8204561
8225991 10...

output:

25
25
4
4
9
9
0
9
9
0
9
4
4
4
4
762590013696
200892204100
673389283609
1902319528516
387458941444
460503388816
541660672576
440783127225
682637835961
485669610000
311964697444
263216198116
224437167504
614527430724
1175875646884
275337375076
610021919521
621792177444
467594748481
291646441849
583463...

result:

ok 25015 lines