結果
問題 |
No.537 ユーザーID
|
ユーザー |
![]() |
提出日時 | 2021-02-11 00:30:03 |
言語 | C++14 (gcc 13.3.0 + boost 1.87.0) |
結果 |
WA
|
実行時間 | - |
コード長 | 378 bytes |
コンパイル時間 | 1,768 ms |
コンパイル使用メモリ | 174,368 KB |
実行使用メモリ | 5,376 KB |
最終ジャッジ日時 | 2024-07-08 11:40:20 |
合計ジャッジ時間 | 2,687 ms |
ジャッジサーバーID (参考情報) |
judge1 / judge3 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 3 |
other | AC * 24 WA * 8 |
ソースコード
#include <bits/stdc++.h> using namespace std; int main() { int64_t N, ans = 0; cin >> N; set<string> t; for (int i = 1; i <= (int64_t)sqrt(N); i++) { string s; if (N % i == 0) { s = to_string(i); s += to_string(N / i); t.insert(s); reverse(s.begin(), s.end()); t.insert(s); } s.erase(); } cout << t.size() << endl; }