大帅傅 李艺成 · 发布于 2025-12-29 · 浏览 254 回复 0 include <bits/stdc++.h> using namespace std; int main() { int a, b, c = 0; cin >> a; for (b = 1; b <= a ; b++) { if (a % b == 0) { c += b; } } cout << c; return 0; }