結果
| 問題 |
No.888 約数の総和
|
| コンテスト | |
| ユーザー |
vjudge1
|
| 提出日時 | 2025-07-09 02:50:55 |
| 言語 | C++23 (gcc 13.3.0 + boost 1.87.0) |
| 結果 |
WA
|
| 実行時間 | - |
| コード長 | 299 bytes |
| コンパイル時間 | 2,800 ms |
| コンパイル使用メモリ | 276,308 KB |
| 実行使用メモリ | 7,848 KB |
| 最終ジャッジ日時 | 2025-07-09 02:51:00 |
| 合計ジャッジ時間 | 4,460 ms |
|
ジャッジサーバーID (参考情報) |
judge5 / judge4 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 3 |
| other | AC * 23 WA * 7 |
ソースコード
#include<bits/stdc++.h>
#define ll long long
using namespace std;
ll tonguoc(ll x)
{
ll d=1+x;
for(ll i = 2; i*i <= x; i++)
if(x%i==0) d+=i+(x/i);
if(sqrt(x)*sqrt(x)==x) d-=sqrt(x);
return d;
}
int main()
{
ll n; cin >> n;
cout << tonguoc(n) << "\n";
return 0;
}
vjudge1