結果

問題 No.888 約数の総和
ユーザー vjudge1
提出日時 2024-09-30 21:17:48
言語 C++17(clang)
(17.0.6 + boost 1.87.0)
結果
WA  
実行時間 -
コード長 395 bytes
コンパイル時間 3,624 ms
コンパイル使用メモリ 163,008 KB
実行使用メモリ 6,820 KB
最終ジャッジ日時 2024-09-30 21:17:53
合計ジャッジ時間 4,499 ms
ジャッジサーバーID
(参考情報)
judge1 / judge4
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 3
other AC * 23 WA * 7
権限があれば一括ダウンロードができます

ソースコード

diff #

#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,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;
}
0