結果
| 問題 | No.677 10^Nの約数 | 
| コンテスト | |
| ユーザー |  | 
| 提出日時 | 2020-06-28 03:59:37 | 
| 言語 | C++11(廃止可能性あり) (gcc 13.3.0) | 
| 結果 | 
                                AC
                                 
                             | 
| 実行時間 | 2 ms / 2,000 ms | 
| コード長 | 682 bytes | 
| コンパイル時間 | 676 ms | 
| コンパイル使用メモリ | 80,544 KB | 
| 実行使用メモリ | 6,944 KB | 
| 最終ジャッジ日時 | 2024-07-06 13:42:14 | 
| 合計ジャッジ時間 | 1,413 ms | 
| ジャッジサーバーID (参考情報) | judge2 / judge3 | 
(要ログイン)
| ファイルパターン | 結果 | 
|---|---|
| sample | AC * 2 | 
| other | AC * 17 | 
ソースコード
#include <algorithm>
#include <cmath>
#include <cstdio>
#include <deque>
#include <iostream>
#include <map>
#include <numeric>
#include <queue>
#include <set>
#include <stack>
#include <string>
#include <vector>
using namespace std;
typedef long long ll;
#define MOD 1000000007
int main() {
  int n;
  cin >> n;
  vector<ll> pow_2(n + 1), pow_5(n + 1);
  pow_2[0] = pow_5[0] = 1;
  for (int i = 0; i < n; ++i) {
    pow_2[i + 1] = pow_2[i] * 2;
    pow_5[i + 1] = pow_5[i] * 5;
  }
  set<ll> st;
  for (int i = 0; i <= n; ++i) {
    for (int j = 0; j <= n; ++j) {
      st.insert(pow_2[i] * pow_5[j]);
    }
  }
  for (auto ans : st) {
    cout << ans << endl;
  }
  return 0;
}
            
            
            
        