結果

問題 No.888 約数の総和
コンテスト
ユーザー vjudge1
提出日時 2024-09-25 23:03:00
言語 C++17(clang)
(clang++ 22.1.2 + boost 1.89.0)
コンパイル:
clang++ -O2 -lm -std=c++1z -Wuninitialized -DONLINE_JUDGE -o a.out _filename_
実行:
./a.out
結果
WA  
実行時間 -
コード長 367 bytes
記録
記録タグの例:
初AC ショートコード 純ショートコード 純主流ショートコード 最速実行時間
コンパイル時間 1,844 ms
コンパイル使用メモリ 172,424 KB
実行使用メモリ 6,400 KB
最終ジャッジ日時 2026-04-13 02:03:51
合計ジャッジ時間 3,169 ms
ジャッジサーバーID
(参考情報)
judge2_0 / judge3_0
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 3
other AC * 15 WA * 15
権限があれば一括ダウンロードができます

ソースコード

diff #
raw source code

	#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