結果
問題 |
No.888 約数の総和
|
ユーザー |
![]() |
提出日時 | 2024-09-25 23:37:28 |
言語 | C++17 (gcc 13.3.0 + boost 1.87.0) |
結果 |
WA
|
実行時間 | - |
コード長 | 264 bytes |
コンパイル時間 | 1,902 ms |
コンパイル使用メモリ | 191,508 KB |
最終ジャッジ日時 | 2025-02-24 12:39:21 |
ジャッジサーバーID (参考情報) |
judge1 / judge4 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 3 |
other | AC * 15 WA * 15 |
ソースコード
#include<iostream> #include<bits/stdc++.h> #include<string> using namespace std; int tong_u(int x) { int t=0,k=sqrt(x),i; for (i=1;i<=k;i++) if (x%i==0) t+=i+x/i; if(k*k==x) t-=k; return t; } long long n; int main() { cin>>n; cout<<tong_u(n); }