結果
| 問題 |
No.677 10^Nの約数
|
| コンテスト | |
| ユーザー |
Mr.Fuku
|
| 提出日時 | 2018-08-17 21:23:56 |
| 言語 | C++14 (gcc 13.3.0 + boost 1.87.0) |
| 結果 |
WA
|
| 実行時間 | - |
| コード長 | 487 bytes |
| コンパイル時間 | 643 ms |
| コンパイル使用メモリ | 71,264 KB |
| 実行使用メモリ | 10,528 KB |
| 最終ジャッジ日時 | 2024-10-10 11:21:02 |
| 合計ジャッジ時間 | 6,052 ms |
|
ジャッジサーバーID (参考情報) |
judge2 / judge4 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 2 |
| other | AC * 8 WA * 7 TLE * 1 -- * 1 |
ソースコード
#include <iostream>
#include <math.h>
#include <list>
using namespace std;
int main(void){
int n;cin>>n;
long num = pow(10,n);
double sq=sqrt(num);
list<long> lst;
for(int i=1;i<=sq;i++){
if(num%i==0){
printf("%d\n",i);
lst.push_front(num/i);
}
}
if(sq==lst.front())lst.pop_front();
int sz = lst.size();
for(int i=0;i<sz;i++){
printf("%d\n",lst.front());
lst.pop_front();
}
}
Mr.Fuku