結果
問題 | No.677 10^Nの約数 |
ユーザー |
|
提出日時 | 2018-04-27 22:42:06 |
言語 | C++11 (gcc 13.3.0) |
結果 |
AC
|
実行時間 | 2 ms / 2,000 ms |
コード長 | 445 bytes |
コンパイル時間 | 1,429 ms |
コンパイル使用メモリ | 165,440 KB |
実行使用メモリ | 6,944 KB |
最終ジャッジ日時 | 2024-06-27 22:01:22 |
合計ジャッジ時間 | 2,066 ms |
ジャッジサーバーID (参考情報) |
judge3 / judge2 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 2 |
other | AC * 17 |
ソースコード
#include <bits/stdc++.h>using namespace std;typedef long long ll;int main() {cin.tie(0);ios::sync_with_stdio(false);ll n;cin >> n;vector<ll> v;for(int i=0;i<=n;i++) {for(int j=0;j<=n;j++) {ll x = 1;for(int k = 0;k<i;k++)x *= 2;for(int l = 0;l<j;l++)x *= 5;v.push_back(x);}}sort(v.begin(), v.end());for(int i=0;i<v.size();i++)cout << v[i] << endl;}