結果
| 問題 | No.677 10^Nの約数 | 
| コンテスト | |
| ユーザー |  | 
| 提出日時 | 2018-04-27 22:24:44 | 
| 言語 | C++14 (gcc 13.3.0 + boost 1.87.0) | 
| 結果 | 
                                AC
                                 
                             | 
| 実行時間 | 3 ms / 2,000 ms | 
| コード長 | 407 bytes | 
| コンパイル時間 | 1,671 ms | 
| コンパイル使用メモリ | 172,440 KB | 
| 実行使用メモリ | 6,948 KB | 
| 最終ジャッジ日時 | 2024-06-27 21:48:35 | 
| 合計ジャッジ時間 | 2,341 ms | 
| ジャッジサーバーID (参考情報) | judge5 / judge2 | 
(要ログイン)
| ファイルパターン | 結果 | 
|---|---|
| sample | AC * 2 | 
| other | AC * 17 | 
ソースコード
#include <bits/stdc++.h>
#define rep(i,n)for(int i=0;i<(n);i++)
using namespace std;
typedef long long ll;
#define MOD LLONG_MAX
ll ppow(ll a,ll b){
	ll res=1;
	while(b){
		if(b&1)res=(res*a)%MOD;
		a=(a*a)%MOD;
		b>>=1;
	}
	return res;
}
int main(){
	int n;scanf("%d",&n);
	vector<ll>v;
	rep(i,n+1)rep(j,n+1){
		v.push_back(ppow(2,i)*ppow(5,j));
	}
	sort(v.begin(),v.end());
	for(auto i:v)cout<<i<<endl;
}
            
            
            
        