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

14

Output for Sample Input 1

1

Explanation of Output for Sample Input 1

This is one of the examples in the problem description.

Sample Input 2

40

Output for Sample Input 2

3

Explanation of Output for Sample Input 2

This is one of the examples in the problem description.

Sample Input 3

6

Output for Sample Input 3

0

Explanation of Output for Sample Input 3

There is no way to use a sum of fours and fives to get \(6\) .


Comments

There are no comments at the moment.