結果

問題 No.537 ユーザーID
ユーザー fura
提出日時 2020-04-11 03:46:28
言語 C++17
(gcc 13.3.0 + boost 1.87.0)
結果
AC  
実行時間 15 ms / 2,000 ms
コード長 314 bytes
コンパイル時間 2,085 ms
コンパイル使用メモリ 200,684 KB
最終ジャッジ日時 2025-01-09 17:11:12
ジャッジサーバーID
(参考情報)
judge3 / judge3
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 3
other AC * 32
権限があれば一括ダウンロードができます

ソースコード

diff #

#include <bits/stdc++.h>

#define rep(i,n) for(int i=0;i<(n);i++)

using namespace std;
using lint=long long;

int main(){
	lint x; cin>>x;

	set<string> S;
	for(lint i=1;i*i<=x;i++) if(x%i==0) {
		string s=to_string(i),t=to_string(x/i);
		S.emplace(s+t);
		S.emplace(t+s);
	}
	cout<<S.size()<<'\n';

	return 0;
}
0