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 1005. Stone Pile

WA #1
Posted by Artem 18 Nov 2011 18:23
Hello,

I'm trying to solve this problem using brute force. I've tried several inputs and program works just fine, but for some reason I'm getting WA on the first test. :(

I searched threads and saw that many users had the same problem and then solved it, but no one of them said how he managed to overcome this problem.

Please help.

Thank in advance.