返回小组 开始 2024-12-11 15:45:00

结课测试

结束 2024-12-11 17:45:00
Contest is over.
当前 2025-01-18 19:11:54

D

include

using namespace std;

int main() {

int n, i = 1, d = 0;
scanf("%d", &n);
for (i = 1; i <= n; i++) {
	if (n % i == 0) {
		d = d + i;

	}
}
printf("%d", d);
return 0;

}


GNSZSTM  •  1个月前

比赛已结束。