Online Judge | Problem Set | Authors | Online Contests | User | ||||||
---|---|---|---|---|---|---|---|---|---|---|

Web Board Home Page F.A.Qs Statistical Charts | Current Contest Past Contests Scheduled Contests Award Contest |

Language: Sum and Product
Description For a sequence of N integers A _{1}, A_{2}, ... , A_{N}, we can calculate their sum S and product P easily. With given N, S and P, can you find out the sequence A_{1}, A_{2}, ... , A_{N}?Input The input only contains a line with three integers N, S and P. Here N is positive and not more than 1000000, and the absolute values of S and P do not exceed 150000000. Output Just output "No solution" if there is no such sequence, or you may output any solution with N integers A _{1}, A_{2}, ... , A_{N}, separated by just one space.Sample Input
Sample Output
Source POJ Monthly--2006.06.25, Yang Yi |

[Submit] [Go Back] [Status] [Discuss]

All Rights Reserved 2003-2013 Ying Fuchen,Xu Pengcheng,Xie Di

Any problem, Please Contact Administrator