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 1814. Continued Fraction

About condition...
Posted by bsu.mmf.team 11 Feb 2011 16:15
The statement of the problem says: "Output the value of the convergent continued fraction of order k of the square root of x as an IRREDUCIBLE fraction."
But it is well-known, that every such convergent fraction is irreducible. However after taking modulo it may become reducible. So I thought I should reduce the answer in this case. But it is not true! You don't have to do it. Otherwise you'll get WA#8.

May admins clarify this misunderstanding somehow, please?