| Run ID | 作者 | 问题 | 语言 | 测评结果 | Time | Memory | 代码长度 | 提交时间 |
|---|---|---|---|---|---|---|---|---|
| 66160 | 游四鑫 | 百钱买百鸡II | C++ | Wrong Answer | 504 MS | 272 KB | 419 | 2024-03-02 16:41:52 |
# include<iostream> using namespace std; int main(){ int n,q=0,a; cin>>a; for(int j=0;j<=a/5;j++){ for(int i=0;i<=a/3;i++){ for(int x=0;x<=a*3;x++){ if(j*5+i*3+x/3.0==a&&j+x+i==a){ q++; cout<<q<<": "<<j<<','<<i<<','<<x<<endl; } } } } return 0; }
------Input------
10
------Answer-----
None
------Your output-----