eolymp
bolt
Try our new interface for solving problems
Problems

Cutting

Cutting

Statement for this problem is only available as a file.
Time limit 0.5 seconds
Memory limit 512 MiB
Input example #1
20 10
4
10 5
4 7
0 1
16 3
Output example #1
175.00
167.00
138.50
103.00