結果

問題 No.888 約数の総和
ユーザー vjudge1
提出日時 2024-09-25 23:03:00
言語 C++17(clang)
(17.0.6 + boost 1.87.0)
結果
WA  
実行時間 -
コード長 367 bytes
コンパイル時間 4,675 ms
コンパイル使用メモリ 161,732 KB
実行使用メモリ 5,376 KB
最終ジャッジ日時 2024-09-25 23:03:07
合計ジャッジ時間 2,845 ms
ジャッジサーバーID
(参考情報)
judge1 / judge3
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 3
other AC * 15 WA * 15
権限があれば一括ダウンロードができます

ソースコード

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