結果
問題 | No.537 ユーザーID |
ユーザー |
![]() |
提出日時 | 2019-12-31 01:51:33 |
言語 | C++14 (gcc 13.3.0 + boost 1.87.0) |
結果 |
AC
|
実行時間 | 14 ms / 2,000 ms |
コード長 | 355 bytes |
コンパイル時間 | 1,724 ms |
コンパイル使用メモリ | 173,396 KB |
実行使用メモリ | 5,248 KB |
最終ジャッジ日時 | 2024-11-16 21:44:03 |
合計ジャッジ時間 | 2,715 ms |
ジャッジサーバーID (参考情報) |
judge3 / judge5 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 3 |
other | AC * 32 |
ソースコード
#include <bits/stdc++.h> using namespace std; typedef long long ll; int main() { ll n; cin >> n; ll ans = 0; set <string> s; for (ll i = 1; i <= sqrt(n); i++) { if (n % i == 0) { string s1 = to_string(i); string s2 = to_string(n / i); s.insert(s1 + s2); s.insert(s2 + s1); } } cout << s.size() << endl; return 0; }