結果
| 問題 |
No.537 ユーザーID
|
| コンテスト | |
| ユーザー |
mkawa2
|
| 提出日時 | 2020-08-27 11:32:17 |
| 言語 | C++14 (gcc 13.3.0 + boost 1.87.0) |
| 結果 |
AC
|
| 実行時間 | 13 ms / 2,000 ms |
| コード長 | 528 bytes |
| コンパイル時間 | 1,577 ms |
| コンパイル使用メモリ | 170,836 KB |
| 実行使用メモリ | 5,248 KB |
| 最終ジャッジ日時 | 2024-11-07 15:35:11 |
| 合計ジャッジ時間 | 2,707 ms |
|
ジャッジサーバーID (参考情報) |
judge4 / judge1 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 3 |
| other | AC * 32 |
ソースコード
#include <bits/stdc++.h>
using namespace std;
#define rep(i, n) for (int i = 0; i < (n); i++)
#define all(x) (x).begin(), (x).end()
using ll = long long;
using pii = pair<int, int>;
using vi = vector<int>;
using vvi = vector<vector<int>>;
const ll inf = 1e9;
ll ten(ll a){
ll res=1;
while(res<=a) res*=10;
return res;
}
int main() {
ll n;
set<ll> s;
cin>>n;
for(ll d=1;d*d<=n;d++){
if(n%d) continue;
ll e=n/d;
s.insert(d*ten(e)+e);
s.insert(e*ten(d)+d);
}
cout<<s.size()<<endl;
return 0;
}
mkawa2