結果
問題 |
No.677 10^Nの約数
|
ユーザー |
👑 |
提出日時 | 2020-01-22 07:07:49 |
言語 | C++14 (gcc 13.3.0 + boost 1.87.0) |
結果 |
AC
|
実行時間 | 2 ms / 2,000 ms |
コード長 | 434 bytes |
コンパイル時間 | 1,066 ms |
コンパイル使用メモリ | 75,896 KB |
実行使用メモリ | 6,944 KB |
最終ジャッジ日時 | 2024-07-07 05:25:11 |
合計ジャッジ時間 | 1,210 ms |
ジャッジサーバーID (参考情報) |
judge4 / judge3 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 2 |
other | AC * 17 |
ソースコード
#include <iostream> #include <vector> #include <algorithm> using namespace std; int main(){ int n;cin>>n; long long a = 1; vector<long long> Z; for(int i = 0; n >= i; i++){ long long 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; } }