| Run ID | 作者 | 问题 | 语言 | 测评结果 | Time | Memory | 代码长度 | 提交时间 |
|---|---|---|---|---|---|---|---|---|
| 136116 | 蔡胤泽 | 百钱买百鸡II | C++ | Accepted | 616 MS | 272 KB | 429 | 2025-11-09 16:03:20 |
#include <iostream> using namespace std; int main() { int n; cin >> n; int s = 0; for(int i = 0;i<=n;i++) { for(int j = 0;j <= n;j++) { for(int k = 0;k <= n;k++) { if(i + j + k == n && 5 * i + 3 * j + 1.0 / 3.0 * k == n) { s++; cout << s << ": "<< i <<"," << j<< ","<<k <<endl; } } } } if(s == 0) { cout << "None" << endl; } return 0; }