| Run ID | 作者 | 问题 | 语言 | 测评结果 | Time | Memory | 代码长度 | 提交时间 |
|---|---|---|---|---|---|---|---|---|
| 137204 | 小徐老师 | 拆分分数 | C++ | Accepted | 2 MS | 272 KB | 314 | 2025-11-16 16:14:19 |
#include <bits/stdc++.h> using namespace std; int main() { int k; cin >> k; for(int x = k + 1;; ++x) { if(k * x % (x - k) == 0) { int y = k * x / (x - k); if(x <= y) cout << "1/" << k << " = 1/" << x << " + 1/" << y << "\n"; if(x == y) break; } } return 0; }