結果
問題 | No.2609 Decreasing GCDs |
ユーザー |
![]() |
提出日時 | 2024-02-09 16:01:51 |
言語 | C++17 (gcc 13.3.0 + boost 1.87.0) |
結果 |
AC
|
実行時間 | 2 ms / 1,000 ms |
コード長 | 324 bytes |
コンパイル時間 | 2,011 ms |
コンパイル使用メモリ | 190,668 KB |
最終ジャッジ日時 | 2025-02-19 02:59:51 |
ジャッジサーバーID (参考情報) |
judge5 / judge4 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 1 |
other | AC * 22 |
ソースコード
#include <bits/stdc++.h>using namespace std;using ll = long long;int main(){cin.tie(nullptr);ios_base::sync_with_stdio(false);ll N, M, K=1;cin >> N;M = 1<<N;for (int i=0; i<N; i++){cout << M*K << " ";M >>= 1;K = K*2+1;}cout << endl;return 0;}