結果
問題 | No.677 10^Nの約数 |
ユーザー |
![]() |
提出日時 | 2018-04-27 22:24:22 |
言語 | C++11(廃止可能性あり) (gcc 13.3.0) |
結果 |
AC
|
実行時間 | 2 ms / 2,000 ms |
コード長 | 416 bytes |
コンパイル時間 | 615 ms |
コンパイル使用メモリ | 69,712 KB |
実行使用メモリ | 6,944 KB |
最終ジャッジ日時 | 2024-06-27 21:48:30 |
合計ジャッジ時間 | 1,318 ms |
ジャッジサーバーID (参考情報) |
judge4 / judge5 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 2 |
other | AC * 17 |
ソースコード
#include <iostream> #include <algorithm> #include <vector> #include <string> #include <cmath> using namespace std; typedef long long ll; int main() { int N; cin >> N; vector<ll>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; }