Canadian Computing Competition: 2012 Stage 1, Senior #1
A CCC soccer game operates under slightly different soccer rules. A goal is only counted if the
Players have jerseys numbered from
Given a jersey number of the goal scorer, indicate how many possible combinations of players can produce a valid goal.
Input Specification
The input will be the positive integer
Output Specification
The output will be one line containing the number of possible scoring combinations that could have
Sample Input 1
Copy
4
Output for Sample Input 1
Copy
1
Sample Input 2
Copy
2
Output for Sample Input 2
Copy
0
Sample Input 3
Copy
90
Output for Sample Input 3
Copy
113564
Comments