結果
問題 |
No.537 ユーザーID
|
ユーザー |
![]() |
提出日時 | 2017-09-13 14:26:36 |
言語 | C++11(廃止可能性あり) (gcc 13.3.0) |
結果 |
WA
|
実行時間 | - |
コード長 | 403 bytes |
コンパイル時間 | 784 ms |
コンパイル使用メモリ | 70,800 KB |
実行使用メモリ | 5,248 KB |
最終ジャッジ日時 | 2024-11-07 19:44:52 |
合計ジャッジ時間 | 4,170 ms |
ジャッジサーバーID (参考情報) |
judge3 / judge5 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 2 WA * 1 |
other | AC * 10 WA * 5 RE * 17 |
ソースコード
#include <iostream> #include <set> #include <cmath> #include <string> int main() { int N; std::set <int> st; std::cin >> N; std::cin.ignore(); for (int i = 1; i < std::sqrt(N); i++) { if (N%i == 0) { st.insert(std::stoi(std::to_string(N/i) + std::to_string(i))); st.insert(std::stoi(std::to_string(i) + std::to_string(N/i))); } } std::cout << st.size() << std::endl; return 0; }