Submission #999693

# Submission time Handle Problem Language Result Execution time Memory
999693 2024-06-16T05:16:14 Z hacizadal Rack (eJOI19_rack) C++17
0 / 100
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;
    }
}


// 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 -