結果

問題 No.537 ユーザーID
ユーザー mmn15277198mmn15277198
提出日時 2020-06-06 20:37:56
言語 C++14
(gcc 13.3.0 + boost 1.87.0)
結果
WA  
実行時間 -
コード長 337 bytes
コンパイル時間 869 ms
コンパイル使用メモリ 81,124 KB
実行使用メモリ 6,824 KB
最終ジャッジ日時 2024-12-23 13:50:02
合計ジャッジ時間 2,161 ms
ジャッジサーバーID
(参考情報)
judge2 / judge1
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 3
other AC * 19 WA * 13
権限があれば一括ダウンロードができます

ソースコード

diff #

#include<iostream>
#include<math.h>
#include<string.h>
#include<vector>
#include<algorithm>
#include<iomanip>
#include<deque>
using namespace std;

int main(){
	long long n;
	cin >> n;
	long long cnt=0;
	for(long long i=1;i*i<=n;i++){
		if(n%i==0){
			cnt++;
			if(n/i == i)continue;
			cnt++;
		}
	}
	cout << cnt << endl;
	return 0;
}

0