結果
問題 |
No.677 10^Nの約数
|
ユーザー |
![]() |
提出日時 | 2019-01-21 20:57:47 |
言語 | C++14 (gcc 13.3.0 + boost 1.87.0) |
結果 |
TLE
|
実行時間 | - |
コード長 | 427 bytes |
コンパイル時間 | 1,796 ms |
コンパイル使用メモリ | 172,552 KB |
実行使用メモリ | 10,752 KB |
最終ジャッジ日時 | 2024-09-15 13:14:59 |
合計ジャッジ時間 | 7,171 ms |
ジャッジサーバーID (参考情報) |
judge4 / judge2 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 2 |
other | AC * 15 TLE * 1 -- * 1 |
ソースコード
#include <bits/stdc++.h> using namespace std; #define ll long long int main() { ll N; cin >> N; vector<ll> res; if(N % 2 == 0)res.push_back(pow(10,N/2)); N = pow(10,N); for (ll i = 1; i * i < N; ++i){ if(N % i != 0)continue; res.push_back(i); res.push_back(N / i); } sort(res.begin(),res.end()); for (auto e : res){ cout << e << "\n"; } return 0; }