提交时间:2024-07-25 19:25:39

运行 ID: 285395

#include<bits/stdc++.h> using namespace std; int main(){ int i,j,t,s=0; for(i=1;i<=11;i++){ for(j=1;j<=50;j++){ t=100-9*i-j; if(t>0&&i*9+j+t==100&&i*2+j*2+t*4==10){ cout<<i<<" "<<j<<" "<<t<<endl; s++; } } } return 0; }