結果
問題 |
No.537 ユーザーID
|
ユーザー |
|
提出日時 | 2019-07-31 12:28:50 |
言語 | C++17 (gcc 13.3.0 + boost 1.87.0) |
結果 |
WA
|
実行時間 | - |
コード長 | 464 bytes |
コンパイル時間 | 2,118 ms |
コンパイル使用メモリ | 202,192 KB |
最終ジャッジ日時 | 2025-01-07 10:16:08 |
ジャッジサーバーID (参考情報) |
judge4 / judge1 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | WA * 3 |
other | WA * 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); if (se.find(a) != se.end()) se.insert(a); if (se.find(b) != se.end()) se.insert(b); } cout << se.size() << endl; return 0; }