結果

問題 No.888 約数の総和
ユーザー vjudge1
提出日時 2025-07-07 23:26:22
言語 C++17
(gcc 13.3.0 + boost 1.87.0)
結果
TLE  
実行時間 -
コード長 221 bytes
コンパイル時間 1,778 ms
コンパイル使用メモリ 193,984 KB
実行使用メモリ 16,068 KB
最終ジャッジ日時 2025-07-07 23:26:29
合計ジャッジ時間 5,882 ms
ジャッジサーバーID
(参考情報)
judge4 / judge3
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 3
other AC * 15 TLE * 1 -- * 14
権限があれば一括ダウンロードができます

ソースコード

diff #

#include <bits/stdc++.h>
using namespace std;
int main() {
    long long n;
    cin>>n;
    int t=0;
	for (int i = 1; i <= n; i++) {
        if (n % i == 0) {
            t+=i;
        }
    }
    cout<<t;
    return 0;
}
0