// 一元换钢镚.cpp : Defines the entry point for the console application.
//======================================================================
#include "stdafx.h"
#include "iostream.h"
int sum=0; //sum 每多一种分法,sum加1
int five=0; //five 5分
int two=0; //two 2分
int one=0; //one 1分
int main()
//----------------------------------------------------------------------
{
for (five; five<=20; five++){
for (two; two<=50; two++){
for(one; one<=100; one++){
if(one+two+five>19 && one+2*two+5*five==100){
cout<<"one:"<<" "<<one<<","<<"two:"<<" "<<two<<","<<"five:"<<five<<endl;
sum++;
}
}
one=0;
}
two=0;
}
cout <<sum <<endl;
return 0;
}//======================================================================