結果
| 問題 | No.677 10^Nの約数 |
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2022-02-10 17:10:21 |
| 言語 | C++14 (gcc 13.3.0 + boost 1.89.0) |
| 結果 |
WA
|
| 実行時間 | - |
| コード長 | 564 bytes |
| 記録 | |
| コンパイル時間 | 840 ms |
| コンパイル使用メモリ | 99,160 KB |
| 実行使用メモリ | 6,944 KB |
| 最終ジャッジ日時 | 2024-06-25 23:43:52 |
| 合計ジャッジ時間 | 1,672 ms |
|
ジャッジサーバーID (参考情報) |
judge4 / judge1 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | WA * 2 |
| other | AC * 1 WA * 16 |
ソースコード
#include<iostream>
#include<algorithm>
#include<string>
#include<math.h>
#include<bitset>
#include <vector>
#include<bitset>
#include <iomanip>
#include <map>
#include <set>
#include <stack>
#include <deque>
#include <climits>
#include <queue>
using namespace std;
int main() {
int N;
cin >> N;
priority_queue<long long, vector<long long>, greater<long long >> Q;
for (int i = 0; i <= N; i++) {
for (int j = 0; j <= N; j++) {
long long D = pow(2, i) * pow(5, i);
Q.push(D);
}
}
while (Q.size() > 0) {
cout << Q.top() << endl;
Q.pop();
}
}