Run ID:94251
提交时间:2024-10-20 10:06:38
#include<bits/stdc++.h> using namespace std; int main(){ int x,y,z,c=1; for(x=0;x<=20;x++){ for(y=0;y<=33;y++){ for(z=0;z<=100;z++){ if(x+y+z==100 && x*5+y*3+z*(1.0/3)==100){ printf("%d: %d,%d,%d\n",c,x,y,z); c++; } } } } if(c==1){ cout<<"None"; } return 0; }