| Run ID | Author | Problem | Lang | Verdict | Score | Time | Memory | Code Length | Submit Time |
|---|---|---|---|---|---|---|---|---|---|
| 368950 | 许安哲 | 【C6-9】报数 | C++ | Runtime Error | 0 | 3 MS | 244 KB | 285 | 2025-12-18 19:21:44 |
#include <iostream> #include <cstdio> using namespace std; int main(){ int n, a, b; cin >> n >> a >> b; int sum = 0; for (int i = 1; i <= n; i++){ int x = (i - 1) % a + 1; int y = (i - 1) % b + 1; if (x == y) sum++; } cout << sum << endl; return 0; }