# | Submission time | Handle | Problem | Language | Result | Execution time | Memory |
---|---|---|---|---|---|---|---|
988861 | 2024-05-26T13:32:50 Z | user736482 | Rack (eJOI19_rack) | C++17 | 0 ms | 0 KB |
#include <bits/stdc++.h> using namespace std; long long a,b,c; int main() { cin>>a>>b; b--; while(a!=0){ a--; c=c*2%1e9+7; c+=b%2; b/=2; } cout<<c+1; return 0; }