結果
問題 |
No.537 ユーザーID
|
ユーザー |
![]() |
提出日時 | 2020-08-27 11:31:41 |
言語 | C++14 (gcc 13.3.0 + boost 1.87.0) |
結果 |
WA
|
実行時間 | - |
コード長 | 529 bytes |
コンパイル時間 | 1,762 ms |
コンパイル使用メモリ | 170,976 KB |
実行使用メモリ | 5,248 KB |
最終ジャッジ日時 | 2024-11-07 15:35:08 |
合計ジャッジ時間 | 2,779 ms |
ジャッジサーバーID (参考情報) |
judge5 / judge4 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 3 |
other | AC * 27 WA * 5 |
ソースコード
#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; int e=n/d; s.insert(d*ten(e)+e); s.insert(e*ten(d)+d); } cout<<s.size()<<endl; return 0; }