結果
問題 |
No.677 10^Nの約数
|
ユーザー |
![]() |
提出日時 | 2019-01-21 21:09:00 |
言語 | C++14 (gcc 13.3.0 + boost 1.87.0) |
結果 |
AC
|
実行時間 | 2 ms / 2,000 ms |
コード長 | 367 bytes |
コンパイル時間 | 1,710 ms |
コンパイル使用メモリ | 172,800 KB |
実行使用メモリ | 5,376 KB |
最終ジャッジ日時 | 2024-09-15 13:15:13 |
合計ジャッジ時間 | 2,277 ms |
ジャッジサーバーID (参考情報) |
judge6 / judge4 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 2 |
other | AC * 17 |
ソースコード
#include <bits/stdc++.h> using namespace std; #define ll long long int main() { ll N; cin >> N; N++; set<ll> res; for(int i = 0 ; i < N ; i++){ int tmp = (1<<i); for(int j = 0 ; j < N ; j++){ res.insert(tmp*pow(5,j)); } } for (auto e : res) { std::cout << e << "\n"; } return 0; }