結果
問題 | No.2609 Decreasing GCDs |
ユーザー |
![]() |
提出日時 | 2024-01-19 21:42:48 |
言語 | C++17 (gcc 13.3.0 + boost 1.87.0) |
結果 |
AC
|
実行時間 | 2 ms / 1,000 ms |
コード長 | 347 bytes |
コンパイル時間 | 1,890 ms |
コンパイル使用メモリ | 191,424 KB |
最終ジャッジ日時 | 2025-02-18 20:53:27 |
ジャッジサーバーID (参考情報) |
judge3 / judge5 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 1 |
other | AC * 22 |
ソースコード
#include <bits/stdc++.h>#ifdef LOCAL#include "./debug.cpp"#else#define debug(...)#define print_line#endifusing namespace std;using ll = long long;int main() {int N;cin >> N;int now = 1 << N, d = 1 << (N - 1);for (int i = 0; i < N; i++) {cout << now;now += d / 2;d /= 2;if (i < N - 1) cout << ' ';}cout << endl;}