結果
| 問題 | No.677 10^Nの約数 | 
| コンテスト | |
| ユーザー | 👑 | 
| 提出日時 | 2020-01-22 07:07:23 | 
| 言語 | C++14 (gcc 13.3.0 + boost 1.87.0) | 
| 結果 | 
                                WA
                                 
                             | 
| 実行時間 | - | 
| コード長 | 416 bytes | 
| コンパイル時間 | 704 ms | 
| コンパイル使用メモリ | 75,032 KB | 
| 実行使用メモリ | 6,944 KB | 
| 最終ジャッジ日時 | 2024-07-07 05:24:38 | 
| 合計ジャッジ時間 | 1,479 ms | 
| ジャッジサーバーID (参考情報) | judge2 / judge1 | 
(要ログイン)
| ファイルパターン | 結果 | 
|---|---|
| sample | AC * 2 | 
| other | AC * 8 WA * 9 | 
ソースコード
#include <iostream>
#include <vector>
#include <algorithm>
using namespace std;
int main(){
    int n;cin>>n;
    int a = 1;
    vector<int> Z;
    for(int i = 0; n >= i; i++){
        int b = 1;
        for(int j = 0; n >= j; j++){
            Z.push_back(a*b);
            b*=5;
        }
        a*=2;
    }
    sort(Z.begin(),Z.end());
    for(int i = 0; Z.size() > i; i++){
        cout << Z[i] << endl;
    }
}
            
            
            
        