結果
問題 | No.537 ユーザーID |
ユーザー |
|
提出日時 | 2019-07-31 12:31:41 |
言語 | C++17 (gcc 13.3.0 + boost 1.87.0) |
結果 |
AC
|
実行時間 | 16 ms / 2,000 ms |
コード長 | 408 bytes |
コンパイル時間 | 2,485 ms |
コンパイル使用メモリ | 202,408 KB |
最終ジャッジ日時 | 2025-01-07 10:16:18 |
ジャッジサーバーID (参考情報) |
judge2 / judge1 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 3 |
other | AC * 32 |
ソースコード
#include <bits/stdc++.h>using namespace std;typedef long long ll;int main() {ll n;cin>>n;set<string> se;for (ll i = 1; i*i <= n; i++) {if (n % i != 0) continue;ll j = n / i;string a = to_string(i) + to_string(j);string b = to_string(j) + to_string(i);se.insert(a);se.insert(b);}cout << se.size() << endl;return 0;}