結果
問題 |
No.888 約数の総和
|
ユーザー |
![]() |
提出日時 | 2020-10-08 15:15:46 |
言語 | C++14 (gcc 13.3.0 + boost 1.87.0) |
結果 |
WA
|
実行時間 | - |
コード長 | 204 bytes |
コンパイル時間 | 1,445 ms |
コンパイル使用メモリ | 164,944 KB |
実行使用メモリ | 10,624 KB |
最終ジャッジ日時 | 2024-07-20 05:55:18 |
合計ジャッジ時間 | 5,336 ms |
ジャッジサーバーID (参考情報) |
judge3 / judge2 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 3 |
other | AC * 7 WA * 8 TLE * 1 -- * 14 |
ソースコード
#include <bits/stdc++.h> using namespace std; int main() { long long int N; cin >> N; long long int Ans=0; for(int i=1;i*i<=N;i++){ if(N%i==0){ Ans=Ans+i+N/i; } } cout << Ans; }