|
||||||||||
Ice RainTime Limit: 9000/3000 MS (Java/Others) Memory Limit: 32768/32768 K (Java/Others)Total Submission(s): 766 Accepted Submission(s): 316 Problem Description Ice Rain------I was waiting for a girl, or waiting for been addicted to the bitter sea. Love for irrigation in silence. No one considered whether the flowers came out or wither. Love which I am not sure swing left and right. I had no choice but to put my sadness into my heart deeply. Yifenfei was waiting for a girl come out, but never. His love is caught by Lemon Demon. So yifenfei ¡¯s heart is ¡°Da Xue Fen Fei¡± like his name. The weather is cold. Ice as quickly as rain dropped. Lemon said to yifenfei, if he can solve his problem which is to calculate the value of , he will release his love. Unluckily, yifenfei was bored with Number Theory problem, now you, with intelligent, please help him to find yifenfei¡¯s First Love. Input Given two integers n, k(1 <= n, k <= 109). Output For each n and k, print Ice(n, k) in a single line. Sample Input
Sample Output
Author WhereIsHeroFrom Source | ||||||||||
|