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