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