結果
問題 | No.537 ユーザーID |
ユーザー |
![]() |
提出日時 | 2020-02-05 22:11:39 |
言語 | C++14 (gcc 13.3.0 + boost 1.87.0) |
結果 |
AC
|
実行時間 | 16 ms / 2,000 ms |
コード長 | 357 bytes |
コンパイル時間 | 766 ms |
コンパイル使用メモリ | 79,920 KB |
実行使用メモリ | 6,944 KB |
最終ジャッジ日時 | 2024-09-23 03:42:40 |
合計ジャッジ時間 | 2,139 ms |
ジャッジサーバーID (参考情報) |
judge2 / judge3 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 3 |
other | AC * 32 |
ソースコード
#include <iostream> #include <string> #include <set> #include <cmath> using namespace std; int main(void) { long long n; cin >> n; set<string> st; for (int i = 1; i <= sqrt(n); ++i) { if (n % i == 0) { string s = to_string(i); string t = to_string(n / i); st.insert(s + t); st.insert(t + s); } } cout << st.size() << endl; return 0; }