| Run ID | 作者 | 问题 | 语言 | 测评结果 | Time | Memory | 代码长度 | 提交时间 |
|---|---|---|---|---|---|---|---|---|
| 64203 | 彭慕允 | 百钱买百鸡II | C++ | Compile Error | 0 MS | 0 KB | 458 | 2024-01-20 20:38:16 |
#include<bits/stdc++.h> using namespace std; int main() { long long gj; long long mj; long long cj; int n; cin>>n; int s=0; int foug=0; for(gj=0; gj<=n/5; gj++) { for(mj=0; mj<=n/3; mj++) { for(cj=0; cj<=n; cj++) { if(gj*5+mj*3+cj/3==n&&gj+mj+cj==n&&cj%3==0) { foug=1; if(foug==1) { s++; cout<<s<<": "<<gj<<","<<mj<<","<<cj<<endl; } else { cout<<"None" } } } } } }
Main.cc: In function 'int main()':
Main.cc:22:6: error: expected ';' before '}' token
}
^