結果

問題 No.677 10^Nの約数
ユーザー hiro_ei1812hiro_ei1812
提出日時 2019-08-12 20:05:38
言語 C++11
(gcc 11.4.0)
結果
WA  
実行時間 -
コード長 233 bytes
コンパイル時間 509 ms
コンパイル使用メモリ 58,948 KB
実行使用メモリ 7,884 KB
最終ジャッジ日時 2023-10-17 12:15:31
合計ジャッジ時間 6,013 ms
ジャッジサーバーID
(参考情報)
judge15 / judge11
このコードへのチャレンジ(β)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
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 WA -
testcase_10 TLE -
testcase_11 -- -
testcase_12 -- -
testcase_13 -- -
testcase_14 -- -
testcase_15 -- -
testcase_16 -- -
testcase_17 -- -
testcase_18 -- -
権限があれば一括ダウンロードができます

ソースコード

diff #

#include <iostream>
#include <cmath>
using namespace std;

int main(){
	int in;
	int i,ans;

	cin>>in;
	cout<<"\n";

	ans=pow(10,in);

	for(i=1;i<=ans/2;i++){
		if(ans%i==0){
			cout<<i<<"\n";
		}
	}

	cout<<ans<<"\n";

	return 0;
}
0