結果
問題 |
No.537 ユーザーID
|
ユーザー |
![]() |
提出日時 | 2019-07-19 03:10:26 |
言語 | C++14 (gcc 13.3.0 + boost 1.87.0) |
結果 |
AC
|
実行時間 | 14 ms / 2,000 ms |
コード長 | 398 bytes |
コンパイル時間 | 1,827 ms |
コンパイル使用メモリ | 173,156 KB |
実行使用メモリ | 5,248 KB |
最終ジャッジ日時 | 2024-12-25 23:30:48 |
合計ジャッジ時間 | 3,122 ms |
ジャッジサーバーID (参考情報) |
judge4 / judge3 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 3 |
other | AC * 32 |
ソースコード
#include <bits/stdc++.h> using namespace std; int main() { long long n; cin >> n; set<string> st; for (long long i = 1; i * i <= n; i++) { if (n % i == 0) { string s1 = to_string(i); string s2 = to_string(n / i); st.insert(s1 + s2); st.insert(s2 + s1); } } cout << st.size() << endl; return 0; }