結果

問題 No.2610 Decreasing LCMs
ユーザー srjywrdnprkt
提出日時 2024-02-09 16:01:23
言語 C++17
(gcc 13.3.0 + boost 1.87.0)
結果
WA  
実行時間 -
コード長 324 bytes
コンパイル時間 4,969 ms
コンパイル使用メモリ 190,552 KB
最終ジャッジ日時 2025-02-19 02:59:38
ジャッジサーバーID
(参考情報)
judge5 / judge5
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample WA * 1
other WA * 22
権限があれば一括ダウンロードができます

ソースコード

diff #

#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;
}
0