結果

問題 No.677 10^Nの約数
ユーザー uafr_csuafr_cs
提出日時 2018-04-27 22:25:05
言語 Java19
(openjdk 21)
結果
WA  
実行時間 -
コード長 500 bytes
コンパイル時間 4,640 ms
コンパイル使用メモリ 73,476 KB
実行使用メモリ 58,336 KB
最終ジャッジ日時 2023-09-10 06:23:03
合計ジャッジ時間 7,007 ms
ジャッジサーバーID
(参考情報)
judge12 / judge15
このコードへのチャレンジ(β)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 125 ms
56,224 KB
testcase_01 AC 122 ms
56,068 KB
testcase_02 AC 126 ms
55,832 KB
testcase_03 AC 124 ms
55,840 KB
testcase_04 AC 125 ms
55,828 KB
testcase_05 AC 130 ms
55,548 KB
testcase_06 AC 130 ms
55,768 KB
testcase_07 AC 130 ms
56,128 KB
testcase_08 AC 126 ms
56,176 KB
testcase_09 AC 132 ms
56,232 KB
testcase_10 AC 131 ms
55,604 KB
testcase_11 AC 138 ms
55,776 KB
testcase_12 AC 135 ms
55,740 KB
testcase_13 AC 138 ms
56,036 KB
testcase_14 WA -
testcase_15 WA -
testcase_16 WA -
testcase_17 WA -
testcase_18 WA -
権限があれば一括ダウンロードができます

ソースコード

diff #

import java.util.Arrays;
import java.util.LinkedList;
import java.util.Scanner;
import java.util.TreeSet;

public class Main {
	
	public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
		
		final int N = sc.nextInt();
		
		TreeSet<Long> set = new TreeSet<Long>();
		
		
		for(long i = 0, two = 1; i <= N; i++, two *= 2) {
			for(int j = 0, five = 1; j <= N; j++, five *= 5) {
				set.add(two * five);
			}
		}
		
		for(final long x : set) {
			System.out.println(x);
		}
	}
}
0