提交时间:2024-08-20 15:52:09

运行 ID: 291700

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