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 1867. Nanotechnologies

TLE at 39
Posted by 198808xc 26 Aug 2012 21:07
I got AC with a bruteforce (Depth First Search) algorithm in 0.218 sec.

If you get TLE at test 39, it is something like this:
N = 100
The element of A is all 0, except for a(99, 100) = a(100, 99) = 1.