大帅傅

大帅傅  •  22小时前


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; }


评论:

请先登录,才能进行评论