結果
問題 |
No.566 だいたい完全二分木
|
ユーザー |
![]() |
提出日時 | 2018-02-24 18:44:13 |
言語 | C++14 (gcc 13.3.0 + boost 1.87.0) |
結果 |
WA
|
実行時間 | - |
コード長 | 254 bytes |
コンパイル時間 | 1,449 ms |
コンパイル使用メモリ | 167,004 KB |
実行使用メモリ | 6,824 KB |
最終ジャッジ日時 | 2024-10-15 04:32:08 |
合計ジャッジ時間 | 2,953 ms |
ジャッジサーバーID (参考情報) |
judge3 / judge4 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
other | AC * 3 WA * 8 |
ソースコード
#include<bits/stdc++.h> using namespace std; int n; int main(){ cin>>n; int mid=((1<<n)+1)/2; mid--; cout<<mid<<" "; for(int i=1;i<(1<<n);i++){ if(i==mid)continue; if(i==(1<<n)-1)cout<<i<<"\n"; else cout<<i<<" "; } return 0; }