結果
問題 |
No.677 10^Nの約数
|
ユーザー |
|
提出日時 | 2020-07-07 23:21:55 |
言語 | C++14 (gcc 13.3.0 + boost 1.87.0) |
結果 |
TLE
|
実行時間 | - |
コード長 | 414 bytes |
コンパイル時間 | 1,651 ms |
コンパイル使用メモリ | 175,492 KB |
実行使用メモリ | 10,624 KB |
最終ジャッジ日時 | 2024-10-01 21:45:22 |
合計ジャッジ時間 | 7,174 ms |
ジャッジサーバーID (参考情報) |
judge3 / judge1 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 2 |
other | AC * 15 TLE * 1 -- * 1 |
ソースコード
#include <bits/stdc++.h> using namespace std; #define rep(i,n) for(int i=0; i<(n); i++) typedef long long ll; #define all(x) (x).begin(),(x).end() #define UNIQUE(v) v.erase(unique(v.begin(), v.end()), v.end()); int main(){ ll n; cin>>n; n=pow(10,n); vector<ll> v; for(ll i=1; i*i<=n; i++){ if(n%i==0){ v.push_back(i); v.push_back(n/i); } } sort(all(v)); UNIQUE(v); for(auto x:v) cout<<x<<endl; }