結果

問題 No.677 10^Nの約数
ユーザー lunnearlunnear
提出日時 2018-05-07 16:25:34
言語 C++11
(gcc 11.4.0)
結果
WA  
実行時間 -
コード長 269 bytes
コンパイル時間 375 ms
コンパイル使用メモリ 51,560 KB
実行使用メモリ 8,756 KB
最終ジャッジ日時 2023-09-10 10:54:22
合計ジャッジ時間 5,347 ms
ジャッジサーバーID
(参考情報)
judge13 / judge14
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 WA -
testcase_01 WA -
testcase_02 WA -
testcase_03 WA -
testcase_04 WA -
testcase_05 WA -
testcase_06 WA -
testcase_07 WA -
testcase_08 WA -
testcase_09 TLE -
testcase_10 -- -
testcase_11 -- -
testcase_12 -- -
testcase_13 -- -
testcase_14 -- -
testcase_15 -- -
testcase_16 -- -
testcase_17 -- -
testcase_18 -- -
権限があれば一括ダウンロードができます

ソースコード

diff #

#include <iostream>

int main()
{
	unsigned long long a = 1;
	int N;
	std::cin >> N;

	for (int i = 0; i < N; i++)
	{
		a *= 10;
	}

	for (unsigned long long i = 1; i < a; i++)
	{
		if (a % i == 0)
		{
			std::cout << i << ",";
		}
	}

	std::cout << '\b';

	return 0;
}
0