結果
問題 |
No.888 約数の総和
|
ユーザー |
![]() |
提出日時 | 2025-07-07 22:52:30 |
言語 | C++23 (gcc 13.3.0 + boost 1.87.0) |
結果 |
AC
|
実行時間 | 11 ms / 2,000 ms |
コード長 | 308 bytes |
コンパイル時間 | 3,385 ms |
コンパイル使用メモリ | 273,980 KB |
実行使用メモリ | 7,844 KB |
最終ジャッジ日時 | 2025-07-07 22:52:35 |
合計ジャッジ時間 | 3,855 ms |
ジャッジサーバーID (参考情報) |
judge2 / judge5 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 3 |
other | AC * 30 |
ソースコード
#include <bits/stdc++.h> #define int long long using namespace std; int n; int tu(int x) { int t=0; for(int i=1;i*i<=x;i++) { if(x%i==0) { t+=i; if(x/i!=i)t+=x/i; } } return t; } signed main() { cin>>n; cout<<tu(n); return 0; }