結果
問題 | No.677 10^Nの約数 |
ユーザー | mmn15277198 |
提出日時 | 2020-07-04 22:12:55 |
言語 | C++14 (gcc 12.3.0 + boost 1.83.0) |
結果 |
TLE
|
実行時間 | - |
コード長 | 480 bytes |
コンパイル時間 | 1,000 ms |
コンパイル使用メモリ | 90,400 KB |
実行使用メモリ | 8,696 KB |
最終ジャッジ日時 | 2023-10-19 17:19:17 |
合計ジャッジ時間 | 8,877 ms |
ジャッジサーバーID (参考情報) |
judge15 / judge12 |
(要ログイン)
テストケース
テストケース表示入力 | 結果 | 実行時間 実行使用メモリ |
---|---|---|
testcase_00 | AC | 2 ms
8,060 KB |
testcase_01 | AC | 2 ms
4,348 KB |
testcase_02 | AC | 2 ms
4,348 KB |
testcase_03 | AC | 2 ms
4,348 KB |
testcase_04 | AC | 2 ms
4,348 KB |
testcase_05 | AC | 2 ms
4,348 KB |
testcase_06 | AC | 2 ms
4,348 KB |
testcase_07 | AC | 3 ms
4,348 KB |
testcase_08 | AC | 2 ms
4,348 KB |
testcase_09 | AC | 2 ms
4,348 KB |
testcase_10 | AC | 3 ms
4,348 KB |
testcase_11 | AC | 5 ms
4,348 KB |
testcase_12 | AC | 11 ms
4,348 KB |
testcase_13 | AC | 30 ms
4,348 KB |
testcase_14 | AC | 89 ms
4,348 KB |
testcase_15 | AC | 276 ms
4,348 KB |
testcase_16 | AC | 870 ms
4,348 KB |
testcase_17 | TLE | - |
testcase_18 | TLE | - |
ソースコード
#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; }