ENG  RUSTimus Online Judge
Online Judge
Problems
Authors
Online contests
About Online Judge
Frequently asked questions
Site news
Webboard
Links
Problem set
Submit solution
Judge status
Guide
Register
Update your info
Authors ranklist
Current contest
Scheduled contests
Past contests
Rules
back to board

Discussion of Problem 1793. Tray 2

Hint for WA 16
Posted by Juve45 9 Sep 2017 17:07
Had WA 16 because i checked if the plates can fit with > instead of >= (the upper part of the plates can touch.)

Also, if the height of the box is smaller than the plates, and the plates margin fall out of the box, don't forget that their full margins can't touch each other!
Example test:
4 8 1
1 3
1 3
2

Answer: NO