Run ID Author Problem Lang Verdict Time Memory Code Length Submit Time
31580 闻航 【入门】百钱百鸡问题 C++ Accepted 0 MS 248 KB 257 2023-11-19 18:26:59

Tests(1/1):


#include <iostream> using namespace std; int main(){ int i,j,k; for(i=0;i<99;i++){ for(j=0;j<99;j++){ for(k=0;k<99;k++){ if(i*15+j*9+k==300 && i+j+k==100) cout<<i<<" "<<j<<" "<<k<<endl; } } } }


Judgement Protocol: