結果
問題 | No.537 ユーザーID |
ユーザー |
|
提出日時 | 2019-02-02 15:45:01 |
言語 | C++14 (gcc 13.3.0 + boost 1.87.0) |
結果 |
AC
|
実行時間 | 15 ms / 2,000 ms |
コード長 | 359 bytes |
コンパイル時間 | 1,734 ms |
コンパイル使用メモリ | 173,588 KB |
実行使用メモリ | 5,248 KB |
最終ジャッジ日時 | 2024-11-27 18:54:05 |
合計ジャッジ時間 | 3,075 ms |
ジャッジサーバーID (参考情報) |
judge4 / judge3 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 3 |
other | AC * 32 |
ソースコード
#include <bits/stdc++.h>using namespace std;typedef long long ll;int main(){set<string> st;ll n;cin >> n;for(ll i=1; i<=sqrt(n)+1; i++){if(n%i == 0){string f = to_string(i), s = to_string(n/i);st.insert(f+s);st.insert(s+f);}}cout << st.size() << endl;return 0;}