QOJ.ac

QOJ

IDProblemSubmitterResultTimeMemoryLanguageFile sizeSubmit timeJudge time
#464630#4522. Orchard Division / Divide and SellMaMengQiAC ✓1881ms73852kbC++172.0kb2024-07-06 13:15:032024-07-06 13:15:03

Details

Tip: Click on the bar to expand more detailed information

Test #1:

score: 100
Accepted
time: 1881ms
memory: 73852kb

input:

2 2
0 0
1 1
3 3
2 0
1 1
0 2
5 4
0 0
0 4
1 1
3 3
1 1
0 0
2 1
0 0
2 1
0 1
2 2
0 0
0 1
2 1
1 0
2 2
0 0
1 0
2 2
0 1
1 0
2 3
0 0
0 1
1 0
2 1
1 1
2 2
0 0
1 1
2 2
0 1
1 1
2 3
0 0
0 1
1 1
2 2
1 0
1 1
2 3
0 0
1 0
1 1
2 3
0 1
1 0
1 1
2 4
0 0
0 1
1 0
1 1
16 128
0 0
0 1
0 2
0 3
0 4
0 5
0 6
0 7
0 8
0 9
0 10
0 11...

output:

1
-1
4
-1
-1
-1
1
-1
1
1
-1
-1
1
1
-1
1
-1
-1
2
112
112
49
200
72
72
72
180
24
36
10
40
24
24
50
10
8
-1
962
644
256
408
480
104
208
1161
1147
200
2925
1715
1344
2850
2772
4784
3844
3843
4770
2200
15370986841276356
2877993933040512
41134990537084484
9427060193835330
203654902990282524
24659767492258...

result:

ok 93 lines