Run ID Author Problem Lang Verdict Score Time Memory Code Length Submit Time
5947 张志鹏 百钱买百鸡 C++ Accepted 100 0 MS 240 KB 318 2020-08-20 12:59:33

Tests(1/1):


#include<bits/stdc++.h> using namespace std; int main(){ for(int i=33;i>=0;i--){ for(int j=50;j>=0;j--){ for(int k=100;k>=0;k--){ if(k%3!=0) continue; if(i+j+k==100){ if(i*3+j*2+k/3==100) cout<<i<<" "<<j<<" "<<k<<endl; else continue; }else continue; } } } return 0; }


Judgement Protocol: