結果
問題 | No.537 ユーザーID |
ユーザー |
|
提出日時 | 2017-10-23 02:07:58 |
言語 | C++11 (gcc 13.3.0) |
結果 |
AC
|
実行時間 | 18 ms / 2,000 ms |
コード長 | 429 bytes |
コンパイル時間 | 1,315 ms |
コンパイル使用メモリ | 168,128 KB |
実行使用メモリ | 5,248 KB |
最終ジャッジ日時 | 2024-11-21 14:41:05 |
合計ジャッジ時間 | 2,463 ms |
ジャッジサーバーID (参考情報) |
judge3 / judge2 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 3 |
other | AC * 32 |
ソースコード
#include <bits/stdc++.h>using namespace std;typedef long long ll;template<typename T>string toString(const T& x) {ostringstream os; os << x; return os.str();}int main(void) {ll n;cin >> n;set<string> st;for (ll i = 1; i * i <= n; i++) {if (n % i) continue;st.insert(toString(i) + toString(n / i));st.insert(toString(n / i) + toString(i));}cout << st.size() << endl;return 0;}