結果

問題 No.677 10^Nの約数
コンテスト
ユーザー mmn15277198
提出日時 2020-07-04 22:12:55
言語 C++14
(gcc 15.2.0 + boost 1.89.0)
コンパイル:
g++-15 -O2 -lm -std=c++14 -Wuninitialized -DONLINE_JUDGE -o a.out _filename_
実行:
./a.out
結果
TLE  
実行時間 -
コード長 480 bytes
記録
記録タグの例:
初AC ショートコード 純ショートコード 純主流ショートコード 最速実行時間
コンパイル時間 777 ms
コンパイル使用メモリ 107,840 KB
実行使用メモリ 7,976 KB
最終ジャッジ日時 2026-04-08 00:45:08
合計ジャッジ時間 6,554 ms
ジャッジサーバーID
(参考情報)
judge2_0 / judge1_0
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 2
other AC * 16 TLE * 1
権限があれば一括ダウンロードができます

ソースコード

diff #
raw source code

#include <vector>
#include <iostream>
#include <algorithm>
#include <functional>
#include <string>
#include <math.h>
#include <map>
using namespace std;

int main(){
	int n;
	cin >> n;
	vector<unsigned long long> a;
	unsigned long long target=pow(10,n);
	map<unsigned long long,int> mp;
	for(unsigned long long i=1;i*i<=target;i++){
		if(target%i==0){
			mp[i]=1;
			if(i*i==target)continue;
			mp[target/i]=1;
		}
	}
	
	for(auto p:mp){
		cout << p.first << endl;
	}
	return 0;
}
0