結果
| 問題 | No.888 約数の総和 |
| コンテスト | |
| ユーザー |
vjudge1
|
| 提出日時 | 2026-01-27 12:17:31 |
| 言語 | C++23 (gcc 15.2.0 + boost 1.90.0) |
| 結果 |
WA
|
| 実行時間 | - |
| コード長 | 338 bytes |
| 記録 | |
| コンパイル時間 | 1,959 ms |
| コンパイル使用メモリ | 329,008 KB |
| 実行使用メモリ | 5,888 KB |
| 最終ジャッジ日時 | 2026-07-20 21:44:40 |
| 合計ジャッジ時間 | 3,656 ms |
|
ジャッジサーバーID (参考情報) |
judge3_0 / judge2_0 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 3 |
| other | AC * 29 WA * 1 |
ソースコード
#include <bits/stdc++.h>
#define ll long long
using namespace std;
ll tong(ll x)
{
ll t = 1;
for(ll i = 2; i * i <= x; i++)
{
if(x % i == 0)
{
t += i;
if(x / i != i) t += x/i;
}
}
return t + x;
}
int main()
{
ll n;
cin >> n;
cout << tong(n);
return 0;
}
vjudge1