結果
| 問題 |
No.677 10^Nの約数
|
| コンテスト | |
| ユーザー |
focus
|
| 提出日時 | 2018-05-08 00:01:53 |
| 言語 | C++14 (gcc 13.3.0 + boost 1.87.0) |
| 結果 |
WA
|
| 実行時間 | - |
| コード長 | 460 bytes |
| コンパイル時間 | 743 ms |
| コンパイル使用メモリ | 81,352 KB |
| 実行使用メモリ | 5,376 KB |
| 最終ジャッジ日時 | 2024-06-28 02:24:37 |
| 合計ジャッジ時間 | 1,481 ms |
|
ジャッジサーバーID (参考情報) |
judge5 / judge3 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 2 |
| other | AC * 8 WA * 9 |
ソースコード
#include<iostream>
#include<vector>
#include<algorithm>
#include<set>
#include<cmath>
using namespace std;
int main(){
double n,num,na,nb;
set<int> s;
cin >> n;
for(double a=0;a<=n;a++){
for(double b=0;b<=n;b++){
na = pow(2,a);
nb = pow(5,b);
//cout << na <<" " << nb << endl;
s.insert((na*nb));
}
}
for(auto itr = s.begin();itr != s.end();++itr) cout << *itr << endl;
}
focus