結果
| 問題 | No.677 10^Nの約数 |
| コンテスト | |
| ユーザー |
mmn15277198
|
| 提出日時 | 2020-07-04 22:12:55 |
| 言語 | C++14 (gcc 13.3.0 + boost 1.89.0) |
| 結果 |
TLE
|
| 実行時間 | - |
| コード長 | 480 bytes |
| 記録 | |
| コンパイル時間 | 801 ms |
| コンパイル使用メモリ | 90,552 KB |
| 実行使用メモリ | 10,624 KB |
| 最終ジャッジ日時 | 2024-09-19 13:38:47 |
| 合計ジャッジ時間 | 8,031 ms |
|
ジャッジサーバーID (参考情報) |
judge3 / judge4 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 2 |
| other | AC * 15 TLE * 2 |
ソースコード
#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;
}
mmn15277198