結果

問題 No.537 ユーザーID
ユーザー mmn15277198
提出日時 2020-06-06 21:15:39
言語 C++14
(gcc 13.3.0 + boost 1.87.0)
結果
AC  
実行時間 13 ms / 2,000 ms
コード長 540 bytes
コンパイル時間 1,224 ms
コンパイル使用メモリ 102,984 KB
実行使用メモリ 6,820 KB
最終ジャッジ日時 2024-12-23 13:58:15
合計ジャッジ時間 2,236 ms
ジャッジサーバーID
(参考情報)
judge4 / judge1
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 3
other AC * 32
権限があれば一括ダウンロードができます

ソースコード

diff #

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

int main(){
	long long n;
	cin >> n;
	map<string,int> mp;
	for(long long i=1;i*i<=n;i++){
		if(n%i==0){
			long long x=n/i;
			string a="";
			string b="";
			string c="";
			a+=to_string(x);
			b+=to_string(i);
			c=a+b;
			mp[c]++;
			c=b+a;
			mp[c]++;
		}
	}
	long long cnt=0;
	for(auto itr=mp.begin();itr!=mp.end();itr++){
		cnt++;
	}
	cout << cnt << endl;		
	return 0;
}

0