結果
問題 | No.677 10^Nの約数 |
ユーザー |
![]() |
提出日時 | 2018-07-29 15:08:27 |
言語 | C++11(廃止可能性あり) (gcc 13.3.0) |
結果 |
AC
|
実行時間 | 2 ms / 2,000 ms |
コード長 | 325 bytes |
コンパイル時間 | 1,404 ms |
コンパイル使用メモリ | 164,720 KB |
実行使用メモリ | 6,948 KB |
最終ジャッジ日時 | 2024-07-17 23:26:16 |
合計ジャッジ時間 | 2,282 ms |
ジャッジサーバーID (参考情報) |
judge4 / judge3 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 2 |
other | AC * 17 |
ソースコード
#include <bits/stdc++.h> using namespace std; int main(){ int n; cin >> n; vector<long long> ans; for(int i=0;i<=n;++i){ for(int j=0;j<=n;++j){ ans.push_back(pow(2,i)*pow(5,j)); } } sort(ans.begin(),ans.end()); for(int i=0;i<ans.size();++i)cout << ans[i] << endl; return 0; }