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 1295. Crazy Notions

Bad tests.
Posted by yujj 12 May 2008 19:50
I've got AC with two variants of solution. Brute force and period. Period was {1,1,2,0}, but it is not correct!
Re: Bad tests.
Posted by panhantao 30 Jun 2011 19:40
Period is not {1,1,2,0},but a 20-number period instead...
You can use an unsigned long long int type in C++ to check for n from 1 - 25 to get that period

sorry for my poor English...