結果
| 問題 |
No.566 だいたい完全二分木
|
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2017-09-08 22:35:28 |
| 言語 | C++17 (gcc 13.3.0 + boost 1.87.0) |
| 結果 |
WA
|
| 実行時間 | - |
| コード長 | 331 bytes |
| コンパイル時間 | 909 ms |
| コンパイル使用メモリ | 101,196 KB |
| 最終ジャッジ日時 | 2025-01-05 02:46:23 |
|
ジャッジサーバーID (参考情報) |
judge3 / judge2 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| other | AC * 10 WA * 1 |
ソースコード
#include <iostream>
#include <algorithm>
#include <vector>
#include <random>
using namespace std;
int main() {
int n;
cin >> n;
vector<int> a((1 << n) - 1);
for (int i = 0; i < a.size(); i++) {
a[i] = i + 1;
}
mt19937 mt(1234);
shuffle(a.begin(), a.end(), mt);
for (int x : a) {
cout << x << ' ';
}
}