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 1698. Square Country 5

Its solution
Posted by gnaggnoyil 14 Mar 2009 15:18
The Easy Number is in fact the Automorphic Number. And a number is a Automorphic Number when and only when it is the suffix of another Automorphic Number. So, I download a program to make the Automorphic Number of 2000 dights. And...
No subject
Posted by Gevorgyan Vahan 14 Mar 2009 16:59
Edited by author 14.03.2009 22:51

Edited by author 14.03.2009 22:51

Edited by author 14.03.2009 22:51
Re: Its solution
Posted by svr 13 Jul 2009 13:37
It is evident.
But how to implement this without long arithmetic.
My solution uses Java.BigInteger and reccurence:
k^2*10^2*L+k*(2*A-1)*10^L+Z*10^L=Z1*10^L1;
where A*A-A=Z*10^L
and A1=k*10^L+A- new value where
A1*A1-A1=Z1*10^L1, L1>=L+1
Re: Its solution
Posted by unlucky [Vologda SPU] 1 Feb 2010 06:54
Preculc works nice :)
Re: Its solution
Posted by invokerj 12 Dec 2013 11:04
well, you win,,,,,