結果
問題 | No.677 10^Nの約数 |
ユーザー |
|
提出日時 | 2020-06-13 08:24:16 |
言語 | C++17 (gcc 13.3.0 + boost 1.87.0) |
結果 |
AC
|
実行時間 | 4 ms / 2,000 ms |
コード長 | 462 bytes |
コンパイル時間 | 2,838 ms |
コンパイル使用メモリ | 197,116 KB |
最終ジャッジ日時 | 2025-01-11 03:38:11 |
ジャッジサーバーID (参考情報) |
judge5 / judge2 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 2 |
other | AC * 17 |
ソースコード
#include <bits/stdc++.h> using namespace std; #define REP(i,n) for(int i=0; i<(int)(n); i++) int main() { ios_base::sync_with_stdio(0); cin.tie(0); int n; cin >> n; long long t = 1; vector<long long> v; for (int i = 0; i <= n; i++) { long long f = 1; for (int i = 0; i <=n; i++) { v.push_back(t * f); f *= 5; } t *= 2; } sort(v.begin(), v.end()); for (long long x: v) cout << x << endl; return 0; }