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 1214. Strange Procedure

idea and solution ?
Posted by Rumter (3) 8 Nov 2008 13:38
(sorry my bad english)

What is solution for this problem?
I could not solve this problem up to the end

My not finished solution:

P(&x, &y)
{
s = x + y;
for (int i = 0; i < s; ++ i)
{
x0 = x;
y0 = y;
x = y0 - 2*x0*x0;
y = (int)(sqrt (2) * x0) // floor
}
}

but I don't know what to do further.

Tell me please.