結果

問題 No.677 10^Nの約数
ユーザー asahi32942398asahi32942398
提出日時 2018-04-27 23:14:11
言語 Java21
(openjdk 21)
結果
WA  
実行時間 -
コード長 552 bytes
コンパイル時間 2,508 ms
コンパイル使用メモリ 72,880 KB
実行使用メモリ 57,344 KB
最終ジャッジ日時 2023-09-10 06:45:47
合計ジャッジ時間 6,116 ms
ジャッジサーバーID
(参考情報)
judge11 / judge14
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 128 ms
55,792 KB
testcase_01 AC 127 ms
56,040 KB
testcase_02 AC 128 ms
56,168 KB
testcase_03 AC 128 ms
57,344 KB
testcase_04 AC 130 ms
55,904 KB
testcase_05 AC 127 ms
55,872 KB
testcase_06 AC 130 ms
56,416 KB
testcase_07 AC 130 ms
55,460 KB
testcase_08 AC 132 ms
55,716 KB
testcase_09 AC 132 ms
55,700 KB
testcase_10 AC 132 ms
56,520 KB
testcase_11 AC 136 ms
55,848 KB
testcase_12 AC 139 ms
56,112 KB
testcase_13 AC 141 ms
55,908 KB
testcase_14 WA -
testcase_15 WA -
testcase_16 WA -
testcase_17 WA -
testcase_18 WA -
権限があれば一括ダウンロードができます

ソースコード

diff #

import java.util.*;

public class Main{
    public static void main(String[] args){
        Scanner sc = new Scanner(System.in);
        int n = sc.nextInt();
       
        List<Long> list = new ArrayList<>();
       for(long i=0;i<n+1;i++){
            for(long j=0;j<n+1;j++){
                int two = (int)Math.pow(2,i);
                int five = (int)Math.pow(5,j);
                list.add((long)two*(long)five);
            }
        }
       Collections.sort(list);
       for(long m:list){
           System.out.println(m);
       }
    }
}
0