結果

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

ソースコード

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(sqrtl(n),2)==n?ans*2+1:ans*2)<<"\n"s;
}
0