結果
| 問題 | No.537 ユーザーID |
| コンテスト | |
| ユーザー |
hatsuka_iwa
|
| 提出日時 | 2021-02-11 00:30:03 |
| 言語 | C++14 (gcc 15.2.0 + boost 1.89.0) |
| 結果 |
WA
|
| 実行時間 | - |
| コード長 | 378 bytes |
| 記録 | |
| コンパイル時間 | 1,222 ms |
| コンパイル使用メモリ | 190,036 KB |
| 実行使用メモリ | 6,272 KB |
| 最終ジャッジ日時 | 2026-03-30 05:14:08 |
| 合計ジャッジ時間 | 2,399 ms |
|
ジャッジサーバーID (参考情報) |
judge1_0 / judge2_1 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| 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;
}
hatsuka_iwa