結果
問題 | No.677 10^Nの約数 |
ユーザー | Pachicobue |
提出日時 | 2018-04-27 22:26:52 |
言語 | C++17 (gcc 13.3.0 + boost 1.87.0) |
結果 |
AC
|
実行時間 | 3 ms / 2,000 ms |
コード長 | 323 bytes |
コンパイル時間 | 600 ms |
コンパイル使用メモリ | 75,020 KB |
最終ジャッジ日時 | 2025-01-05 10:23:49 |
ジャッジサーバーID (参考情報) |
judge3 / judge2 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 2 |
other | AC * 17 |
ソースコード
#include <set> #include <iostream> using namespace std; using ll = long long; int main() { int N; cin >> N;set<ll> ans; for(ll t = 1, i = 0; i <=N; i++,t*=2){ for(ll te =1,j = 0; j <= N; j++,te*=5){ ans.insert(t*te); } } for(const ll a:ans){cout << a <<endl;} return 0; }