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 1115. Ships

Same code - AC on 1115, WA11 on 1394
Posted by Hristo Nikolaev (B&W) 27 Dec 2022 23:30
Apparently, this is a very complicated problem,
but 1115 allows solutions with naive implementations.
I almost used brute force here, with some little optimizations (like looking for solutions for the next few sums while working on the 'current' one).