|Online Judge||Problem Set||Authors||Online Contests||User|
Computer has greatly released scientists from heavy calculation. Before computer is invented, calculation must be done by hand, which is boring and easy to make mistake. But now, with the help of computer much calculation can be finished within a second.
But one day Professor Smith met a strange problem. He had tried to find the positive solutions of the equation with the following form:
in which N is a positive integer. But for many values of N, his poor computer seems cannot find an answer!
"That's strange!" said Professor Smith "There must be something wrong with my program!" And you, the assistant of Professor Smith, are assigned the work to solve the problem.
The input will contain several test cases; each contains a positive integer N (1 <= N <= 10 ^ 8) in a single line.
For each test case, in a line output two positive integers X and Y that satisfy the equation and are smaller than 10 ^ 1000. If there is no such solution, output "No solution!"
52 256 991
649 90 No solution! 379516400906811930638014896080 12055735790331359447442538767
[Submit] [Go Back] [Status] [Discuss]
Home Page Go Back To top
All Rights Reserved 2003-2013 Ying Fuchen,Xu Pengcheng,Xie Di
Any problem, Please Contact Administrator