| Run ID | 作者 | 问题 | 语言 | 测评结果 | Time | Memory | 代码长度 | 提交时间 |
|---|---|---|---|---|---|---|---|---|
| 137488 | hjx2333 | 统计硬币 | C++ | Wrong Answer | 647 MS | 268 KB | 420 | 2025-11-17 20:58:06 |
#include <bits/stdc++.h> using namespace std; int main() { int i, j, k, n, a, b, sum; cin >> n; while (n--) { sum = 0; cin >> a >> b; for (i = 0; i <= a; i++) for (j = 0; j <= a; j++) for (k = 0; k <= a; k++) if (i + 2 * j + 5 * k == b) sum++; cout << sum << endl; } return 0; }
------Input------
20 5 10 8 20 3 6 2 4 10 26 11 27 1 1 1 2 2 2 1 5 5 25 100 250 1000 3000 26 120 9 30 12 27 7 25 27 54 32 100 4 13
------Answer-----
2 2 1 1 3 3 1 1 1 1 1 21 167 1 2 3 1 7 6 1
------Your output-----
7 16 3 2 24 28 1 1 2 1 8 1921 200401 146 20 31 13 123 218 5