#D7233. Shelter
Shelter
Shelter
Example
Input
4 1 0 0 3 0 3 3 0 3 1 1
Output
2.0000000000
inputFormat
Input
4 1 0 0 3 0 3 3 0 3 1 1
outputFormat
Output
2.0000000000
样例
4 1
0 0
3 0
3 3
0 3
1 1
2.0000000000
Example
Input
4 1 0 0 3 0 3 3 0 3 1 1
Output
2.0000000000
Input
4 1 0 0 3 0 3 3 0 3 1 1
Output
2.0000000000
4 1
0 0
3 0
3 3
0 3
1 1
2.0000000000
By signing up a OpenJudge universal account, you can submit code and join discussions in all online judging services provided by us.