# |
Submission time |
Handle |
Problem |
Language |
Result |
Execution time |
Memory |
448769 |
2021-08-01T12:37:45 Z |
UltraFalcon |
Rack (eJOI19_rack) |
C++17 |
|
1000 ms |
204 KB |
#include <bits/stdc++.h>
#define int unsigned long long
using namespace std;
signed main() {
ios_base::sync_with_stdio(false);
cin.tie(0);
const int limit = (1e9) + 7;
int n, k;
cin >> n >> k;
k--;
int i = n-1;
int r = 1;
while (i >= 0) {
if (k % 2 == 1) {
//assert(i < 60);
r = (r + ((1ll << i) % limit)) % limit;
}
k /= 2;
i--;
}
cout << r % limit << "\n";
}
# |
Verdict |
Execution time |
Memory |
Grader output |
1 |
Execution timed out |
1087 ms |
204 KB |
Time limit exceeded |
2 |
Halted |
0 ms |
0 KB |
- |
# |
Verdict |
Execution time |
Memory |
Grader output |
1 |
Execution timed out |
1087 ms |
204 KB |
Time limit exceeded |
2 |
Halted |
0 ms |
0 KB |
- |
# |
Verdict |
Execution time |
Memory |
Grader output |
1 |
Execution timed out |
1087 ms |
204 KB |
Time limit exceeded |
2 |
Halted |
0 ms |
0 KB |
- |