# |
Submission time |
Handle |
Problem |
Language |
Result |
Execution time |
Memory |
999692 |
2024-06-16T05:15:12 Z |
hacizadal |
Rack (eJOI19_rack) |
C++17 |
|
0 ms |
348 KB |
/* :) */
#include <bits/stdc++.h>
using namespace std;
#define endl '\n'
#define ll long long
#define pll pair<ll, ll>
const int sz = 1e5+5;
int main()
{
ios_base::sync_with_stdio(false);cin.tie(0);cout.tie(0);
ll n, k;
cin>>n>>k;
n = 1<<n;
if (k%2==0){
cout<<n-(k/2)+1;
}
else {
cout<<k/2;
}
}
// 1 2 3 4 5 28 29 30 31 32
# |
Verdict |
Execution time |
Memory |
Grader output |
1 |
Incorrect |
0 ms |
348 KB |
Output isn't correct |
2 |
Halted |
0 ms |
0 KB |
- |
# |
Verdict |
Execution time |
Memory |
Grader output |
1 |
Incorrect |
0 ms |
348 KB |
Output isn't correct |
2 |
Halted |
0 ms |
0 KB |
- |
# |
Verdict |
Execution time |
Memory |
Grader output |
1 |
Incorrect |
0 ms |
348 KB |
Output isn't correct |
2 |
Halted |
0 ms |
0 KB |
- |