結果
問題 |
No.2609 Decreasing GCDs
|
ユーザー |
|
提出日時 | 2024-01-19 21:31:41 |
言語 | C++17 (gcc 13.3.0 + boost 1.87.0) |
結果 |
AC
|
実行時間 | 2 ms / 1,000 ms |
コード長 | 345 bytes |
コンパイル時間 | 1,901 ms |
コンパイル使用メモリ | 191,320 KB |
最終ジャッジ日時 | 2025-02-18 20:43:41 |
ジャッジサーバーID (参考情報) |
judge3 / judge2 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 1 |
other | AC * 22 |
ソースコード
#include <bits/stdc++.h> using namespace std; int main(){ ios_base::sync_with_stdio(false); cin.tie(nullptr); int N; cin >> N; int sum = 1<<24,now = 24; cout << sum; for(int i=1; i<N; i++){ sum += (1<<now); cout << " " << sum; now--; } cout << endl; }