Run ID:66197
提交时间:2024-03-02 20:43:30
#include <iostream> using namespace std; int main() { int x,y,z,s=1; for(x=3; x<100 ;){ for(y=0;y<34;y++){ for(z=0;z<20;z++){ if( ( (x/3) + 3*y + 5*z)== 100 && (x+y+z)==100){ printf("%d:%d,%d,%d\n",s,z,y,x); s++; } } } x = x+3; } }