結果
| 問題 | No.677 10^Nの約数 | 
| コンテスト | |
| ユーザー |  ama_nuko | 
| 提出日時 | 2018-07-12 19:01:37 | 
| 言語 | C++14 (gcc 13.3.0 + boost 1.87.0) | 
| 結果 | 
                                AC
                                 
                             | 
| 実行時間 | 2 ms / 2,000 ms | 
| コード長 | 706 bytes | 
| コンパイル時間 | 897 ms | 
| コンパイル使用メモリ | 102,296 KB | 
| 実行使用メモリ | 5,248 KB | 
| 最終ジャッジ日時 | 2024-10-02 13:14:05 | 
| 合計ジャッジ時間 | 1,677 ms | 
| ジャッジサーバーID (参考情報) | judge1 / judge5 | 
(要ログイン)
| ファイルパターン | 結果 | 
|---|---|
| sample | AC * 2 | 
| other | AC * 17 | 
ソースコード
#include <cmath>
#include <iostream>
#include <vector>
#include <queue>
#include <deque>
#include <map>
#include <set>
#include <stack>
#include <tuple>
#include <bitset>
#include <algorithm>
#include <functional>
#include <utility>
#include <iomanip>
#define int long long int
#define rep(i, n) for(int i = 0; i < (n); ++i)
using namespace std;
typedef pair<int, int> P;
const int INF = 1e15;
const int MOD = 1e9+7;
signed main(){
    int n;
    cin >> n;
    vector<int> ans;
    rep(i, n+1){
        rep(j, n+1){
            ans.push_back(pow(2, i) * pow(5, j));
        }
    }
    sort(ans.begin(), ans.end());
    rep(i, (int)ans.size()){
        cout << ans[i] << endl;
    }
    return 0;
}
            
            
            
        