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 1287. Mars Canals

That might help you if you have WA #8
Posted by Mahilewets 25 May 2017 16:29
Maybe you are using expressions like (n-j) for j=0...n-i-1 and 0-indexing when checking diagonals.  So,  (n-j)  results in WA #8. Correct expression is (n-1-j)