| Run ID | Author | Problem | Lang | Verdict | Time | Memory | Code Length | Submit Time |
|---|---|---|---|---|---|---|---|---|
| 80011 | sh25_zhuwy | 大整数的因子 | C++ | Accepted | 0 MS | 256 KB | 550 | 2026-01-04 14:56:00 |
#include <iostream> #include <string> using namespace std; bool isDivisible(const string& num, int k) { int sum = 0; for (char digit : num) { sum = (sum * 10 + digit - '0') % k; } return sum == 0; } int main() { string c; cin >> c; bool found = false; for (int k = 2; k <= 9; ++k) { if (isDivisible(c, k)) { if (found) cout << " "; cout << k; found = true; } } if (!found) cout << "none"; cout << endl; return 0; }