제출 #969122

#제출 시각아이디문제언어결과실행 시간메모리
96912212345678Rack (eJOI19_rack)C++17
40 / 100
1 ms348 KiB
#include <bits/stdc++.h> using namespace std; #define ll long long ll n, k, res; int main() { cin.tie(NULL)->sync_with_stdio(false); cin>>n>>k; for (int i=n-1; i>=0; i--) { if (k%2==0) res+=(1<<i); k=(k+1)/2; } cout<<res+k; }
#Verdict Execution timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...