CCC '22 S1 - Good Fours and Good Fives
Submit solution
Points:
1
Time limit:
2.0s
Memory limit:
1G
Problem type
Allowed languages
C++, Python
Output Specification
Output the number of unordered sums of fours and fives which form the number \(N\) . Output \(0\) if there are no such sums of fours and fives.
Sample Input 1
14Output for Sample Input 1
1Explanation of Output for Sample Input 1
This is one of the examples in the problem description.
Sample Input 2
40Output for Sample Input 2
3Explanation of Output for Sample Input 2
This is one of the examples in the problem description.
Sample Input 3
6Output for Sample Input 3
0Explanation of Output for Sample Input 3
There is no way to use a sum of fours and fives to get \(6\) .
Comments