結果
| 問題 | No.677 10^Nの約数 | 
| コンテスト | |
| ユーザー |  ldsyb | 
| 提出日時 | 2018-04-27 22:30:42 | 
| 言語 | C++14 (gcc 13.3.0 + boost 1.87.0) | 
| 結果 | 
                                TLE
                                 
                             | 
| 実行時間 | - | 
| コード長 | 465 bytes | 
| コンパイル時間 | 1,593 ms | 
| コンパイル使用メモリ | 172,328 KB | 
| 実行使用メモリ | 13,752 KB | 
| 最終ジャッジ日時 | 2024-06-27 21:55:23 | 
| 合計ジャッジ時間 | 6,806 ms | 
| ジャッジサーバーID (参考情報) | judge2 / judge3 | 
(要ログイン)
| ファイルパターン | 結果 | 
|---|---|
| sample | AC * 2 | 
| other | AC * 15 TLE * 1 -- * 1 | 
ソースコード
#include <bits/stdc++.h>
using namespace std;
int main()
{
    int n;
    cin >> n;
    int64_t x = pow(10, n);
    vector<int64_t> v;
    for (int64_t i = 1; i * i <= x; i++)
    {
        if (x % i == 0)
        {
            v.emplace_back(i);
            if (i * i != x)
            {
                v.emplace_back(x / i);
            }
        }
    }
    sort(v.begin(), v.end());
    for (auto &i : v)
    {
        cout << i << endl;
    }
    return 0;
}
            
            
            
        