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 1313. Some Words about Sport

Little hint for you
Posted by Marko Bogdanovic 5 May 2005 07:00
Just use secondary diagonals of (1,1), (2,2),...,(n,n) matrixs (this wasn't regular plural of noun matrix , excuse me for my grammar).

p.s that was my way, maybe there is another

Edited by author 05.05.2005 07:06
Re: Little hint for you
Posted by [ za-Nuker ]™ 21 Apr 2006 19:08
More Hint: Maybe you can use BFS. Enqueue position adjacent to itself.

But think of which one could be enqueued first.
Re: Little hint for you
Posted by Zhihua Lai 19 Jan 2009 00:33
i agree, and then recursively call print function to walk through every pixel.. very easy problem,, got AC