1088

guanyuxun 2021-07-13 20:41:32 2

#include

using namespace std; int main() { int n; long long ans = 0; cin >> n; for (int i = 2; i <= n - 1; i++) { if (n % i == 0) { ans += i; } } cout << ans; return 0; }

{{ vote && vote.total.up }}