#include<bits/stdc++.h> using namespace std; int main() { int n,i,j,s,d=0; for(i=0;i<=100;i++){ for(j=0;j<=100;j++){ for(s=0;s<=11;s++){ if(i+j+s*9==100&&i*2+j*4+s*2==100){ cout<<s<<" "<<i<<" "<<j<<endl; d++; } } } } cout<<d; return 0; } /************************************************************** Problem: 1076 User: zzz Language: C++ Result: Wrong Answer ****************************************************************/