結果
| 問題 | No.537 ユーザーID |
| コンテスト | |
| ユーザー |
trineutron
|
| 提出日時 | 2020-12-24 18:33:08 |
| 言語 | C++17 (gcc 15.2.0 + boost 1.90.0) |
| 結果 |
WA
|
| 実行時間 | - |
| コード長 | 350 bytes |
| 記録 | |
| コンパイル時間 | 1,203 ms |
| コンパイル使用メモリ | 222,908 KB |
| 実行使用メモリ | 7,968 KB |
| 最終ジャッジ日時 | 2026-06-16 05:26:44 |
| 合計ジャッジ時間 | 2,397 ms |
|
ジャッジサーバーID (参考情報) |
judge1_0 / judge2_0 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| 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;
}
trineutron