#include<iostream> #include<map> using namespace std; int main() { map<float, int> mymap; int i,j,k,c=0; float sum; for(i=0;i<=5;i++) { for(j=0;j<=4;j++) { for(k=0;k<=6;k++) { sum=i*0.8+j+k*1.8; if(mymap[sum]==0) { mymap[sum]++; c++; } } } } printf("%d\n",--c); //去掉0,0,0情况 return 0; }