結果
問題 | No.537 ユーザーID |
ユーザー |
![]() |
提出日時 | 2020-12-24 18:35:30 |
言語 | C++17 (gcc 13.3.0 + boost 1.87.0) |
結果 |
AC
|
実行時間 | 26 ms / 2,000 ms |
コード長 | 339 bytes |
コンパイル時間 | 2,511 ms |
コンパイル使用メモリ | 200,388 KB |
最終ジャッジ日時 | 2025-01-17 06:41:42 |
ジャッジサーバーID (参考情報) |
judge2 / judge4 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 3 |
other | AC * 32 |
ソースコード
#include <bits/stdc++.h> using namespace std; int main() { int64_t n; cin >> n; set<string> s; for (int64_t i = 1; i * i <= n; i++) { if (n % i) continue; int64_t d = n / i; s.insert(to_string(d) + to_string(i)); s.insert(to_string(i) + to_string(d)); } cout << s.size() << endl; }