結果
問題 | No.537 ユーザーID |
ユーザー |
![]() |
提出日時 | 2017-06-30 22:56:08 |
言語 | C++14 (gcc 13.3.0 + boost 1.87.0) |
結果 |
AC
|
実行時間 | 14 ms / 2,000 ms |
コード長 | 1,459 bytes |
コンパイル時間 | 1,698 ms |
コンパイル使用メモリ | 175,380 KB |
実行使用メモリ | 5,248 KB |
最終ジャッジ日時 | 2024-10-04 20:56:54 |
合計ジャッジ時間 | 2,473 ms |
ジャッジサーバーID (参考情報) |
judge1 / judge5 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 3 |
other | AC * 32 |
ソースコード
#include <bits/stdc++.h>using namespace std ;#define pb(n) push_back(n)#define fi first#define se second#define all(r) begin(r),end(r)#define vmax(ary) *max_element(all(ary))#define vmin(ary) *min_element(all(ary))#define debug(x) cout<<#x<<": "<<x<<endl#define fcout(n) cout<<fixed<<setprecision((n))#define scout(n) cout<<setw(n)#define vary(type,name,size,init) vector< type> name(size,init)#define vvl(v,w,h,init) vector<vector<ll>> v(w,vector<ll>(h,init))#define mp(a,b) make_pair(a,b)#define rep(i,n) for(int i = 0; i < (int)(n);++i)#define REP(i,a,b) for(int i = (a);i < (int)(b);++i)#define repi(it,array) for(auto it = array.begin(),end = array.end(); it != end;++it)#define repa(n,array) for(auto &n :(array))using ll = long long;using pii = pair<int,int> ;using pll = pair<ll,ll> ;template<typename T>void O(T t){cout << t << endl;}const ll mod = 1e9+7;constexpr ll inf = ((1<<30)-1)*2+1 ;constexpr double PI = acos(-1.0) ;double eps = 1e-10 ;const int dy[] = {-1,0,1,0,1,-1,1,-1};const int dx[] = {0,-1,0,1,1,-1,-1,1};inline bool value(int x,int y,int w,int h){return (x >= 0 && x < w && y >= 0 && y < h);}int main(){cin.tie(0);ios::sync_with_stdio(false);ll n;cin >> n;set<string> ss;REP(i,1,sqrt(n)+1){if(n % i == 0){ss.insert(to_string(i) + to_string(n/i));ss.insert(to_string(n/i) + to_string(i));}}std::cout << ss.size() << std::endl;return 0;}