結果
問題 |
No.537 ユーザーID
|
ユーザー |
![]() |
提出日時 | 2020-01-26 17:10:48 |
言語 | C++14 (gcc 13.3.0 + boost 1.87.0) |
結果 |
AC
|
実行時間 | 15 ms / 2,000 ms |
コード長 | 425 bytes |
コンパイル時間 | 1,833 ms |
コンパイル使用メモリ | 176,176 KB |
実行使用メモリ | 6,948 KB |
最終ジャッジ日時 | 2024-09-14 11:08:33 |
合計ジャッジ時間 | 2,928 ms |
ジャッジサーバーID (参考情報) |
judge3 / judge6 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 3 |
other | AC * 32 |
ソースコード
#include <bits/stdc++.h> using namespace std; typedef long long ll; int main() { ll N; scanf("%lld", &N); unordered_set<string> s; for (ll i = 1; i * i <= N; ++i) { if (N % i == 0) { if (N / i == i) s.insert(to_string(i) + to_string(i)); else { s.insert(to_string(i) + to_string(N / i)); s.insert(to_string(N / i) + to_string(i)); } } } printf("%lld\n", (ll)s.size()); return 0; }