結果

問題 No.537 ユーザーID
ユーザー WA_TLEWA_TLE
提出日時 2017-07-01 00:36:15
言語 C++17
(gcc 12.3.0 + boost 1.83.0)
結果
AC  
実行時間 15 ms / 2,000 ms
コード長 1,008 bytes
コンパイル時間 1,387 ms
コンパイル使用メモリ 125,888 KB
実行使用メモリ 6,944 KB
最終ジャッジ日時 2024-04-15 07:43:45
合計ジャッジ時間 2,728 ms
ジャッジサーバーID
(参考情報)
judge1 / judge5
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 2 ms
6,812 KB
testcase_01 AC 1 ms
6,944 KB
testcase_02 AC 2 ms
6,944 KB
testcase_03 AC 2 ms
6,940 KB
testcase_04 AC 2 ms
6,940 KB
testcase_05 AC 1 ms
6,940 KB
testcase_06 AC 2 ms
6,940 KB
testcase_07 AC 1 ms
6,944 KB
testcase_08 AC 2 ms
6,944 KB
testcase_09 AC 2 ms
6,944 KB
testcase_10 AC 2 ms
6,940 KB
testcase_11 AC 2 ms
6,940 KB
testcase_12 AC 2 ms
6,940 KB
testcase_13 AC 2 ms
6,940 KB
testcase_14 AC 2 ms
6,940 KB
testcase_15 AC 2 ms
6,940 KB
testcase_16 AC 1 ms
6,940 KB
testcase_17 AC 1 ms
6,940 KB
testcase_18 AC 9 ms
6,940 KB
testcase_19 AC 13 ms
6,940 KB
testcase_20 AC 11 ms
6,944 KB
testcase_21 AC 8 ms
6,940 KB
testcase_22 AC 12 ms
6,940 KB
testcase_23 AC 8 ms
6,940 KB
testcase_24 AC 3 ms
6,944 KB
testcase_25 AC 12 ms
6,940 KB
testcase_26 AC 13 ms
6,940 KB
testcase_27 AC 10 ms
6,940 KB
testcase_28 AC 7 ms
6,944 KB
testcase_29 AC 15 ms
6,944 KB
testcase_30 AC 13 ms
6,940 KB
testcase_31 AC 5 ms
6,940 KB
testcase_32 AC 5 ms
6,944 KB
testcase_33 AC 14 ms
6,944 KB
testcase_34 AC 9 ms
6,940 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

#include<string>
#include<deque>
#include<queue>
#include<vector>
#include<algorithm>
#include<iostream>
#include<set>
#include<cmath>
#include<tuple>
#include<chrono>
#include<random>
#include<unordered_set>
using namespace std;
typedef long long int llint;
#define mp make_pair
#define mt make_tuple
#define pub push_back
#define puf push_front
#define pob pop_back
#define pof pop_front
#define fir first
#define sec second
#define res resize
#define ins insert
#define era erase
const int mod=1000000007;
const int big=1e9+1e8;
const llint red=0xE869120;
const llint pro=1002001;
const long double pai=3.141592653589793238462643383279;
template <class T,class U>void mineq(T& a,U b){if(a>b){a=b;}}
template <class T,class U>void maxeq(T& a,U b){if(a<b){a=b;}}
int main(void){
	llint n;cin>>n;
	set<string> se;
	string s;
	for(llint i=1;i*i<=n;i++){
		if(n%i!=0){continue;}
		s=to_string(i)+to_string(n/i);
		se.ins(s);
		s=to_string(n/i)+to_string(i);
		se.ins(s);
	}
	cout<<se.size()<<endl;
	return 0;
}
0