結果
問題 | No.677 10^Nの約数 |
ユーザー | asahi32942398 |
提出日時 | 2018-04-27 23:04:24 |
言語 | Java21 (openjdk 21) |
結果 |
WA
|
実行時間 | - |
コード長 | 476 bytes |
コンパイル時間 | 2,192 ms |
コンパイル使用メモリ | 72,516 KB |
実行使用メモリ | 56,496 KB |
最終ジャッジ日時 | 2023-09-10 06:42:47 |
合計ジャッジ時間 | 5,914 ms |
ジャッジサーバーID (参考情報) |
judge11 / judge15 |
(要ログイン)
テストケース
テストケース表示入力 | 結果 | 実行時間 実行使用メモリ |
---|---|---|
testcase_00 | AC | 125 ms
56,488 KB |
testcase_01 | AC | 123 ms
56,400 KB |
testcase_02 | AC | 122 ms
55,860 KB |
testcase_03 | AC | 125 ms
56,104 KB |
testcase_04 | AC | 130 ms
56,252 KB |
testcase_05 | AC | 125 ms
56,068 KB |
testcase_06 | AC | 127 ms
56,088 KB |
testcase_07 | AC | 129 ms
56,224 KB |
testcase_08 | AC | 130 ms
56,032 KB |
testcase_09 | AC | 129 ms
56,352 KB |
testcase_10 | WA | - |
testcase_11 | WA | - |
testcase_12 | WA | - |
testcase_13 | WA | - |
testcase_14 | WA | - |
testcase_15 | WA | - |
testcase_16 | WA | - |
testcase_17 | WA | - |
testcase_18 | WA | - |
ソースコード
import java.util.*; public class Main{ public static void main(String[] args){ Scanner sc = new Scanner(System.in); int n = sc.nextInt(); List<Integer> list = new ArrayList<>(); for(int i=0;i<n+1;i++){ for(int j=0;j<n+1;j++){ list.add((int)Math.pow(2,i)*(int)Math.pow(5,j)); } } Collections.sort(list); for(int m:list){ System.out.println(m); } } }