結果
| 問題 | No.537 ユーザーID |
| コンテスト | |
| ユーザー |
yamyam122
|
| 提出日時 | 2017-09-13 15:10:21 |
| 言語 | C++11 (gcc 15.2.0 + boost 1.89.0) |
| 結果 |
AC
|
| 実行時間 | 5 ms / 2,000 ms |
| コード長 | 425 bytes |
| 記録 | |
| コンパイル時間 | 551 ms |
| コンパイル使用メモリ | 94,156 KB |
| 実行使用メモリ | 6,400 KB |
| 最終ジャッジ日時 | 2026-05-08 03:10:16 |
| 合計ジャッジ時間 | 1,744 ms |
|
ジャッジサーバーID (参考情報) |
judge1_0 / judge3_1 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| 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