結果
問題 | No.677 10^Nの約数 |
ユーザー |
![]() |
提出日時 | 2023-08-19 16:28:37 |
言語 | C++17 (gcc 13.3.0 + boost 1.87.0) |
結果 |
AC
|
実行時間 | 2 ms / 2,000 ms |
コード長 | 380 bytes |
コンパイル時間 | 1,023 ms |
コンパイル使用メモリ | 98,216 KB |
最終ジャッジ日時 | 2025-02-16 11:37:43 |
ジャッジサーバーID (参考情報) |
judge1 / judge4 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 2 |
other | AC * 17 |
ソースコード
#include<iostream> #include<map> #include<vector> #include <algorithm> #include<math.h> using namespace std; int main() { int n; cin >> n; vector<long long> v; for (int i = 0; i < n+1; i++){ for (int j = 0; j < n+1; j++){ v.push_back(pow(2, i)*pow(5, j)); } } sort(v.begin(), v.end()); for (auto x : v) cout << x << endl; }