标签:str 题目 for std ret cout pac highlight set
#include <iostream> //超时,80分
using namespace std;
int main()
{
int i ,sum=0;
cin>>i;
for(int a=0;a<=2;a++) //从50开始
{
for(int b=0;b<=5;b++)
{
for(int c=0;c<=10;c++)
{
if(a*50+b*20+c*10==i)
{
sum++;
}
}
}
}
cout<<sum;
return 0;
}
标签:str 题目 for std ret cout pac highlight set
原文地址:https://www.cnblogs.com/fangzheng-nie/p/9928182.html