結果
| 問題 | No.677 10^Nの約数 |
| コンテスト | |
| ユーザー |
m1025o1184t
|
| 提出日時 | 2019-12-10 01:58:17 |
| 言語 | C++14 (gcc 13.3.0 + boost 1.89.0) |
| 結果 |
WA
|
| 実行時間 | - |
| コード長 | 509 bytes |
| 記録 | |
| コンパイル時間 | 1,996 ms |
| コンパイル使用メモリ | 172,824 KB |
| 実行使用メモリ | 13,884 KB |
| 最終ジャッジ日時 | 2024-06-23 12:45:43 |
| 合計ジャッジ時間 | 7,431 ms |
|
ジャッジサーバーID (参考情報) |
judge4 / judge1 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 2 |
| other | AC * 11 WA * 4 TLE * 1 -- * 1 |
ソースコード
#include <bits/stdc++.h>
#define rep(i,n) for(int i=0;i<(n);++i)
#define all(a) (a).begin(),(a).end()
using namespace std;
typedef long long ll;
int main() {
ios::sync_with_stdio(false);
cin.tie(0);
int n;
cin >> n;
ll res = pow(10, n);
vector<ll> ans;
for (int i = 1; i <= sqrt(res); ++i) {
if (res % i == 0 ) {
ans.push_back(i);
if (i * i != res) {
ans.push_back(res / i);
}
}
}
sort(all(ans));
int k = (n + 1) * (n + 1);
rep(i, k) {
cout << ans[i] << endl;
}
return 0;
}
m1025o1184t