結果
| 問題 |
No.888 約数の総和
|
| コンテスト | |
| ユーザー |
vjudge1
|
| 提出日時 | 2024-09-26 00:39:39 |
| 言語 | C++17(clang) (17.0.6 + boost 1.87.0) |
| 結果 |
WA
|
| 実行時間 | - |
| コード長 | 419 bytes |
| コンパイル時間 | 2,095 ms |
| コンパイル使用メモリ | 163,260 KB |
| 実行使用メモリ | 6,944 KB |
| 最終ジャッジ日時 | 2024-09-26 00:39:45 |
| 合計ジャッジ時間 | 3,132 ms |
|
ジャッジサーバーID (参考情報) |
judge3 / judge4 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 3 |
| other | AC * 23 WA * 7 |
ソースコード
#include <bits/stdc++.h>
#include<string>
#include<map>
#include<cmath>
#define ll long long
using namespace std;
ll b,l,r,MOD=1e9,j,c=0,k,A[1000000],i,n,mi=INT_MAX,res=0,D[1000000],d=0,e,f,g,h,t=0;
string s;
int main()
{
//freopen("standard.inp","r",stdin)
//freopen("standard.out","w",stdout)
cin>>n;
for(i=1;i<=sqrt(n);i++)
if(n%i==0)
{
t+=i+n/i;
}
if(sqrt(n)*sqrt(n)==n)
{
t-=sqrt(n);
}
cout<<t;
}
vjudge1