結果
| 問題 | No.537 ユーザーID |
| コンテスト | |
| ユーザー |
yamyam122
|
| 提出日時 | 2017-09-13 15:10:21 |
| 言語 | C++11 (gcc 15.3.0 + boost 1.92.0) |
| 結果 |
AC
不安定
|
| 実行時間 | 5 ms / 2,000 ms |
| + 496µs | |
| コード長 | 425 bytes |
| 記録 | |
| コンパイル時間 | 438 ms |
| コンパイル使用メモリ | 97,252 KB |
| 実行使用メモリ | 9,924 KB |
| 最終ジャッジ日時 | 2026-09-20 20:06:10 |
| 合計ジャッジ時間 | 2,191 ms |
|
ジャッジサーバーID (参考情報) |
judge1_0 / judge4_0 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 3 |
| other | AC * 32 |
ソースコード
#include <iostream>
#include <set>
#include <string>
#include <cmath>
int main() {
long long N;
std::set <long long> st;
std::cin >> N; std::cin.ignore();
for (long long i = 1; i <= std::sqrt(N); i++) {
if (N%i == 0) {
st.insert(std::stoll(std::to_string(N / i) + std::to_string(i)));
st.insert(std::stoll(std::to_string(i) + std::to_string(N / i)));
}
}
std::cout << st.size() << std::endl;
return 0;
}
yamyam122