| Run ID | 作者 | 问题 | 语言 | 测评结果 | Time | Memory | 代码长度 | 提交时间 |
|---|---|---|---|---|---|---|---|---|
| 129779 | 李朋秦 | 百钱买百鸡II | C++ | Wrong Answer | 33 MS | 272 KB | 326 | 2025-09-06 14:07:52 |
#include<bits/stdc++.h> using namespace std; int main(){ int n,c=0; cin>>n; for(int x=0;x<=n/5;x++){ for(int y=0;y<=n/3;y++){ for(int z=0;z<=n/3;z++){ if((x+y+z*3==n)&&(5*x+3*y+z==n)){ c++; cout<<c<<": "<<x<<","<<y<<","<<3*z<<endl; } } } } if(c==0)cout<<"Nong"; return 0; }
------Input------
10
------Answer-----
None
------Your output-----
Nong