結果
問題 |
No.537 ユーザーID
|
ユーザー |
![]() |
提出日時 | 2020-12-24 18:33:08 |
言語 | C++17 (gcc 13.3.0 + boost 1.87.0) |
結果 |
WA
|
実行時間 | - |
コード長 | 350 bytes |
コンパイル時間 | 1,873 ms |
コンパイル使用メモリ | 199,636 KB |
最終ジャッジ日時 | 2025-01-17 06:41:33 |
ジャッジサーバーID (参考情報) |
judge1 / judge3 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 2 WA * 1 |
other | AC * 14 WA * 18 |
ソースコード
#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, r = n % i; s.insert(to_string(d) + to_string(r)); s.insert(to_string(r) + to_string(d)); } cout << s.size() << endl; }