solved utopian tree

Signed-off-by: ayham <altffour@protonmail.com>
This commit is contained in:
ayham 2021-05-09 14:09:40 +03:00
parent cc5507c727
commit 68cf7c91b0
No known key found for this signature in database
GPG Key ID: 81D38F7122AFCC94
1 changed files with 13 additions and 0 deletions

View File

@ -0,0 +1,13 @@
#include <bits/stdc++.h>
using namespace std;
int main() {
int t, n;
int x, y;
cin >> t;
while (t--) {
cin >> n;
cout << to_string((1<<((n>>1)+1))-1<<n%2) << endl;
}
return 0;
}