Files
OI-source/history_source/ccf 入门篇/U4/4.4.5.cpp
2023-08-03 09:22:52 +08:00

20 lines
243 B
C++

#include<iostream>
using namespace std;
int main()
{
int n,s,r,w,a;
while(true)
{
cin>>n;
a=0;
for(w=0;w<=n/50;w++)
{
for(r=0;r<=n/20;r++)
{
for(s=0;s<=100/10;s++) if(w*50+r*20+s*10==n) a++;
}
}
cout<<a<<endl;
}
}