結果
問題 | No.537 ユーザーID |
ユーザー |
|
提出日時 | 2024-03-30 19:01:34 |
言語 | C++17 (gcc 13.3.0 + boost 1.87.0) |
結果 |
AC
|
実行時間 | 15 ms / 2,000 ms |
コード長 | 433 bytes |
コンパイル時間 | 4,385 ms |
コンパイル使用メモリ | 257,984 KB |
最終ジャッジ日時 | 2025-02-20 16:01:02 |
ジャッジサーバーID (参考情報) |
judge2 / judge2 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 3 |
other | AC * 32 |
ソースコード
#include <bits/stdc++.h> #include <atcoder/all> using namespace std; using namespace atcoder; using ll = long long; using ld = long double; int main() { ll N; cin >> N; set<string> st; for (ll i = 1; i * i <= N; i++) { if (N % i == 0) { string s = to_string(i) + to_string(N / i); st.insert(s); s = to_string(N / i) + to_string(i); st.insert(s); } } cout << st.size() << endl; return 0; }