結果
| 問題 |
No.2609 Decreasing GCDs
|
| コンテスト | |
| ユーザー |
shisidor
|
| 提出日時 | 2024-01-19 21:38:13 |
| 言語 | C++14 (gcc 13.3.0 + boost 1.87.0) |
| 結果 |
WA
|
| 実行時間 | - |
| コード長 | 343 bytes |
| コンパイル時間 | 2,168 ms |
| コンパイル使用メモリ | 168,736 KB |
| 実行使用メモリ | 6,948 KB |
| 最終ジャッジ日時 | 2024-09-28 04:08:14 |
| 合計ジャッジ時間 | 6,441 ms |
|
ジャッジサーバーID (参考情報) |
judge2 / judge1 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | WA * 1 |
| other | WA * 22 |
ソースコード
#include<bits/stdc++.h>
using namespace std;
int main() {
int n;
cin >> n;
vector<int> a = {1, 2, 3, 5, 7, 11, 13, 17, 19, 23, 29, 31, 37, 41, 43, 47, 53, 59, 61, 67, 71, 73, 79, 83, 89, 97};
for (int i = 0; i < n; i++) {
cout << a[i] * a[i + 1];
if (i == n - 1) cout << endl;
else cout << " ";
}
}
shisidor