結果
| 問題 | No.888 約数の総和 |
| コンテスト | |
| ユーザー |
vjudge1
|
| 提出日時 | 2024-09-25 23:37:28 |
| 言語 | C++17 (gcc 15.2.0 + boost 1.90.0) |
| 結果 |
WA
|
| 実行時間 | - |
| コード長 | 264 bytes |
| 記録 | |
| コンパイル時間 | 1,009 ms |
| コンパイル使用メモリ | 211,880 KB |
| 実行使用メモリ | 16,768 KB |
| 最終ジャッジ日時 | 2026-07-05 19:06:24 |
| 合計ジャッジ時間 | 2,801 ms |
|
ジャッジサーバーID (参考情報) |
judge3_1 / judge2_0 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| 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);
}
vjudge1