結果
| 問題 | No.677 10^Nの約数 | 
| コンテスト | |
| ユーザー |  watarimaycry2 | 
| 提出日時 | 2019-12-09 22:18:50 | 
| 言語 | Java (openjdk 23) | 
| 結果 | 
                                AC
                                 
                             | 
| 実行時間 | 140 ms / 2,000 ms | 
| コード長 | 948 bytes | 
| コンパイル時間 | 2,850 ms | 
| コンパイル使用メモリ | 76,832 KB | 
| 実行使用メモリ | 41,512 KB | 
| 最終ジャッジ日時 | 2024-06-23 07:01:03 | 
| 合計ジャッジ時間 | 5,850 ms | 
| ジャッジサーバーID (参考情報) | judge4 / judge1 | 
(要ログイン)
| ファイルパターン | 結果 | 
|---|---|
| sample | AC * 2 | 
| other | AC * 17 | 
ソースコード
import java.util.*;
public class Main {
        static Scanner sc = new Scanner(System.in);
        static void myout(Object t){System.out.println(t);}
        static String getStr(){return sc.next();}
        static int getInt(){return sc.nextInt();}
        static Long getLong(){return sc.nextLong();}
        static boolean isNext(){return sc.hasNext();}
        public static void main(String[] args){
          long N = getInt();
          ArrayList<Long> list = new ArrayList<Long>();
          
          for(int i = 0; i <= N; i++){
            for(int j = 0; j <= N; j++){
              list.add((long)(Math.pow(2,i) * Math.pow(5,j)));
            }
          }
          Collections.sort(list,Comparator.naturalOrder());
          for(int i = 0; i < list.size(); i++){
            myout(list.get(i));
          }
          
        }
        //便利メソッド追加枠ここから
        //便利メソッド追加枠ここまで
}
            
            
            
        