結果
問題 |
No.677 10^Nの約数
|
ユーザー |
|
提出日時 | 2019-02-28 14:54:27 |
言語 | C++14 (gcc 13.3.0 + boost 1.87.0) |
結果 |
AC
|
実行時間 | 3 ms / 2,000 ms |
コード長 | 427 bytes |
コンパイル時間 | 1,807 ms |
コンパイル使用メモリ | 173,132 KB |
実行使用メモリ | 6,944 KB |
最終ジャッジ日時 | 2024-06-23 11:41:51 |
合計ジャッジ時間 | 2,471 ms |
ジャッジサーバーID (参考情報) |
judge4 / judge1 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 2 |
other | AC * 17 |
ソースコード
#include <bits/stdc++.h> using namespace std; typedef long long ll; int main(){ ll n; cin >> n; vector<ll> ans; for(int i=0; i<=n; i++){ for(int j=0; j<=n; j++){ ll tmp = pow(2, i) * pow(5, j); ans.push_back(tmp); } } sort(ans.begin(), ans.end()); ans.erase(unique(ans.begin(), ans.end()), ans.end()); for(auto x: ans) cout << x << endl; return 0; }