結果
問題 |
No.2609 Decreasing GCDs
|
ユーザー |
|
提出日時 | 2024-01-20 00:09:13 |
言語 | C++17 (gcc 13.3.0 + boost 1.87.0) |
結果 |
AC
|
実行時間 | 2 ms / 1,000 ms |
コード長 | 223 bytes |
コンパイル時間 | 1,903 ms |
コンパイル使用メモリ | 191,184 KB |
最終ジャッジ日時 | 2025-02-18 21:39:41 |
ジャッジサーバーID (参考情報) |
judge5 / judge4 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 1 |
other | AC * 22 |
ソースコード
#include <bits/stdc++.h> using namespace std; using ll = long long; int main () { int N; cin >> N; ll b = (1ll << N); cout << b; for (int n = N - 1; n; n --) { b += (1ll << n); cout << " " << b; } cout << endl; }