結果

問題 No.677 10^Nの約数
ユーザー matsuyoshi30matsuyoshi30
提出日時 2018-09-27 09:21:00
言語 Java21
(openjdk 21)
結果
TLE  
実行時間 -
コード長 299 bytes
コンパイル時間 2,269 ms
コンパイル使用メモリ 73,952 KB
実行使用メモリ 61,436 KB
最終ジャッジ日時 2024-04-20 09:02:34
合計ジャッジ時間 7,899 ms
ジャッジサーバーID
(参考情報)
judge1 / judge3
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 114 ms
61,228 KB
testcase_01 AC 115 ms
54,144 KB
testcase_02 AC 114 ms
53,856 KB
testcase_03 AC 104 ms
53,004 KB
testcase_04 AC 122 ms
54,112 KB
testcase_05 AC 120 ms
54,248 KB
testcase_06 AC 121 ms
53,412 KB
testcase_07 AC 217 ms
54,052 KB
testcase_08 AC 1,102 ms
54,232 KB
testcase_09 TLE -
testcase_10 -- -
testcase_11 -- -
testcase_12 -- -
testcase_13 -- -
testcase_14 -- -
testcase_15 -- -
testcase_16 -- -
testcase_17 -- -
testcase_18 -- -
権限があれば一括ダウンロードができます

ソースコード

diff #

import java.util.*;

class Main {
    public static void main(String[] args) {
        Scanner in = new Scanner(System.in);
        long n = in.nextLong();
        long m = (long)Math.pow(10, n);

        for(long i=1; i<=m; i++) {
            if(m % i == 0) System.out.println(i);
        }
    }
}
0