| 시간 제한 | 메모리 제한 | 제출 | 정답 | 맞힌 사람 | 정답 비율 |
|---|---|---|---|---|---|
| 0.5 초 | 512 MB | 35 | 12 | 9 | 28.125% |
Greedy Smurf is opening a new shop in Smurf Village. Smurfs use coins with four denominations: 1, 5, 10 and 25 SmurfCoins. Write a program that will compute for Greedy the number of ways that he can give change of $n$ SmurfCoins.
Output the number of different ways of giving change modulo 10ドル^9 + 7$. Two ways of giving change are considered different if they differ in the amount of used coins of some denomination.
First and only input line contains $n$ (1ドル \leq n \leq 10^{18}$) -- the amount of change.
Output the number of different ways of giving change modulo 10ドル^9 + 7$. Two ways of giving change are considered different if they differ in the amount of used coins of some denomination.
14
4