题目比较简单,看答案就能看懂什么意思
#include<stdio.h>
int main()
{
int count = 0;
int n;
scanf("%d", &n);
for (int i = 0; i <= n; i++)
{
for (int k = 0; k <=n/2; k++)
{
for (int j = 0; j <= n/5 ; j++)
{
if (i + 2 * k + 5 * j == n)
{
count++;
}
}
}
}
printf("%d\n", count);
return 0;
}