結果
| 問題 | No.677 10^Nの約数 | 
| コンテスト | |
| ユーザー |  focus | 
| 提出日時 | 2018-05-08 00:02:38 | 
| 言語 | C++14 (gcc 13.3.0 + boost 1.87.0) | 
| 結果 | 
                                AC
                                 
                             | 
| 実行時間 | 3 ms / 2,000 ms | 
| コード長 | 467 bytes | 
| コンパイル時間 | 701 ms | 
| コンパイル使用メモリ | 81,476 KB | 
| 実行使用メモリ | 5,376 KB | 
| 最終ジャッジ日時 | 2024-06-28 02:24:39 | 
| 合計ジャッジ時間 | 1,490 ms | 
| ジャッジサーバーID (参考情報) | judge4 / judge5 | 
(要ログイン)
| ファイルパターン | 結果 | 
|---|---|
| sample | AC * 2 | 
| other | AC * 17 | 
ソースコード
#include<iostream>
#include<vector>
#include<algorithm>
#include<set>
#include<cmath>
using namespace std;
int main(){
    double n,num,na,nb;
    set<long long> s;
    cin >> n;
    for(double a=0;a<=n;a++){
        for(double b=0;b<=n;b++){
            na = pow(2,a);
            nb = pow(5,b);
            //cout << na <<"  " << nb << endl;
            s.insert((na*nb));
        }
    }
    for(auto itr = s.begin();itr != s.end();++itr) cout <<  *itr << endl;
}
            
            
            
        