結果

問題 No.537 ユーザーID
ユーザー yamyam122yamyam122
提出日時 2017-09-13 14:26:36
言語 C++11
(gcc 11.4.0)
結果
WA  
実行時間 -
コード長 403 bytes
コンパイル時間 565 ms
コンパイル使用メモリ 71,288 KB
実行使用メモリ 5,376 KB
最終ジャッジ日時 2024-04-25 09:11:36
合計ジャッジ時間 3,587 ms
ジャッジサーバーID
(参考情報)
judge3 / judge4
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 1 ms
5,248 KB
testcase_01 AC 1 ms
5,376 KB
testcase_02 WA -
testcase_03 AC 1 ms
5,376 KB
testcase_04 WA -
testcase_05 WA -
testcase_06 WA -
testcase_07 AC 2 ms
5,376 KB
testcase_08 AC 1 ms
5,376 KB
testcase_09 WA -
testcase_10 AC 1 ms
5,376 KB
testcase_11 WA -
testcase_12 AC 1 ms
5,376 KB
testcase_13 AC 1 ms
5,376 KB
testcase_14 AC 2 ms
5,376 KB
testcase_15 AC 1 ms
5,376 KB
testcase_16 AC 2 ms
5,376 KB
testcase_17 AC 1 ms
5,376 KB
testcase_18 RE -
testcase_19 RE -
testcase_20 RE -
testcase_21 RE -
testcase_22 RE -
testcase_23 RE -
testcase_24 RE -
testcase_25 RE -
testcase_26 RE -
testcase_27 RE -
testcase_28 RE -
testcase_29 RE -
testcase_30 RE -
testcase_31 RE -
testcase_32 RE -
testcase_33 RE -
testcase_34 RE -
権限があれば一括ダウンロードができます

ソースコード

diff #

#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;

}

0