#include <cstdio>
#include <cstring>
#include <string>
#include <cmath>
#include <iostream>
#include <algorithm>
#include <vector>
#include <stack>
#include <queue>
#include <stdlib.h>
#include <sstream>
#include <map>
#include <set>
typedef long long ll;
using namespace std;
int main()
{
int n, sum;
sum = 0;
cin>>n;
for(int i = 0; i <= 10; i++)//一定一定要记得,有等于号!
{
for(int j = 0; j <= 20; j++)
{
for(int k = 0; k <= 100; k++)
{
if(k + 5*j + i*10==n)
sum++;
}
}
}
cout<<sum;
return 0;
}
sdnuoj 1035 找零钱
猜你喜欢
转载自blog.csdn.net/weixin_51216553/article/details/109537288
今日推荐
周排行