結果

問題 No.537 ユーザーID
ユーザー evawenis
提出日時 2020-06-02 01:31:22
言語 C++17
(gcc 13.3.0 + boost 1.87.0)
結果
WA  
実行時間 -
コード長 288 bytes
コンパイル時間 3,209 ms
コンパイル使用メモリ 199,388 KB
最終ジャッジ日時 2025-01-10 20:28:04
ジャッジサーバーID
(参考情報)
judge3 / judge3
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 3
other AC * 18 WA * 14
権限があれば一括ダウンロードができます

ソースコード

diff #

#include<bits/stdc++.h>
using namespace std;

int main(){
	cin.tie(0),ios::sync_with_stdio(false);
	int64_t n; cin>>n;
	unordered_map<int64_t,int64_t>m; ++m[1];
	int64_t t=n,ans=1;
	for(int64_t i=2;i*i<n;++i){
		if(t%i==0)++ans;
	}
	cout<<(powl((int)sqrt(n),2)==n?ans*2+1:ans*2)<<"\n"s;
}
0