結果
| 問題 |
No.677 10^Nの約数
|
| ユーザー |
asahi32942398
|
| 提出日時 | 2018-04-27 23:04:24 |
| 言語 | Java (openjdk 23) |
| 結果 |
WA
|
| 実行時間 | - |
| コード長 | 476 bytes |
| コンパイル時間 | 2,214 ms |
| コンパイル使用メモリ | 76,916 KB |
| 実行使用メモリ | 41,756 KB |
| 最終ジャッジ日時 | 2024-06-27 22:11:05 |
| 合計ジャッジ時間 | 5,660 ms |
|
ジャッジサーバーID (参考情報) |
judge1 / judge4 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 2 |
| other | AC * 8 WA * 9 |
ソースコード
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);
}
}
}
asahi32942398