結果
問題 |
No.537 ユーザーID
|
ユーザー |
![]() |
提出日時 | 2017-07-08 04:29:29 |
言語 | C++11(廃止可能性あり) (gcc 13.3.0) |
結果 |
TLE
|
実行時間 | - |
コード長 | 403 bytes |
コンパイル時間 | 668 ms |
コンパイル使用メモリ | 63,884 KB |
実行使用メモリ | 13,640 KB |
最終ジャッジ日時 | 2024-10-06 11:37:18 |
合計ジャッジ時間 | 4,789 ms |
ジャッジサーバーID (参考情報) |
judge3 / judge2 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 3 |
other | AC * 15 TLE * 1 -- * 16 |
ソースコード
#include<iostream> #include<string> #include<set> using namespace std; set<long long> st; int F(long long x){ int t=1; while(x>=t)t*=10; return t; } int main(){ long long n; cin>>n; for(int i=1;i*i<=n;i++){ if(n%i==0){ long long a=i,b=n/i; if(st.find(a*F(b)+b)==st.end())st.insert(a*F(b)+b); if(st.find(a+b*F(a))==st.end())st.insert(a+b*F(a)); } }cout<<st.size()<<endl; return 0; }