結果
| 問題 |
No.677 10^Nの約数
|
| コンテスト | |
| ユーザー |
Konton7
|
| 提出日時 | 2020-01-14 00:18:24 |
| 言語 | C++17 (gcc 13.3.0 + boost 1.87.0) |
| 結果 |
AC
|
| 実行時間 | 2 ms / 2,000 ms |
| コード長 | 379 bytes |
| コンパイル時間 | 2,018 ms |
| コンパイル使用メモリ | 198,260 KB |
| 最終ジャッジ日時 | 2025-01-08 17:51:30 |
|
ジャッジサーバーID (参考情報) |
judge2 / judge4 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 2 |
| other | AC * 17 |
ソースコード
#include <bits/stdc++.h>
using namespace std;
typedef long long ll;
int main(){
int n;
cin >> n;
ll y;
vector<ll> v;
for (int i = 0; i <= n; i++)
for (int j = 0; j <= n; j++){
y = pow(2,i)*pow(5,j);
v.push_back(y);
}
sort(v.begin(), v.end());
for(auto x : v)
cout << x << endl;
return 0;
}
Konton7