結果

問題 No.677 10^Nの約数
コンテスト
ユーザー yuppe19 😺
提出日時 2018-07-25 21:36:40
言語 C++14
(gcc 13.3.0 + boost 1.87.0)
結果
AC  
実行時間 2 ms / 2,000 ms
コード長 407 bytes
コンパイル時間 959 ms
コンパイル使用メモリ 81,836 KB
実行使用メモリ 6,944 KB
最終ジャッジ日時 2024-06-27 03:32:20
合計ジャッジ時間 1,628 ms
ジャッジサーバーID
(参考情報)
judge5 / judge2
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 2
other AC * 17
権限があれば一括ダウンロードができます

ソースコード

diff #

#include <algorithm>
#include <cmath>
#include <iostream>
#include <vector>
using namespace std;
using i64 = long long;

int main(void) {
  int n; scanf("%d", &n);
  vector<i64> v;
  for(int i=0; i<=n; ++i) {
    for(int j=0; j<=n; ++j) {
      // 2**i * 5**j
      v.push_back(i64(powl(2, i) * powl(5, j)));
    }
  }
  sort(begin(v), end(v));
  for(i64 x : v) {
    printf("%lld\n", x);
  }
  return 0;
}
0