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 1507. Difficult Decision

ideas of improving perfomance
Posted by arrammis 5 Mar 2015 01:54
I have AC at 0.14 sec, but I can see there are lot of faster solutions.
So how did you optimize your solution so hard ??
Re: ideas of improving perfomance
Posted by esbybb 1 Dec 2016 04:02
hi, maybe the answer with powers from 2 to N+1 is always identical to given at this task(my AC is less than 0.14), also use some breaks like if (a[i][j] is already 1 then halt from cell computation etc.)

send at night ))