結果
問題 |
No.677 10^Nの約数
|
ユーザー |
![]() |
提出日時 | 2018-04-27 23:03:37 |
言語 | Java (openjdk 23) |
結果 |
WA
|
実行時間 | - |
コード長 | 476 bytes |
コンパイル時間 | 2,134 ms |
コンパイル使用メモリ | 76,108 KB |
実行使用メモリ | 56,444 KB |
最終ジャッジ日時 | 2024-06-27 22:10:31 |
合計ジャッジ時間 | 5,650 ms |
ジャッジサーバーID (参考情報) |
judge4 / judge5 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | WA * 2 |
other | WA * 17 |
ソースコード
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); } } }