Submission #446708

# Submission time Handle Problem Language Result Execution time Memory
446708 2021-07-23T07:04:42 Z fuad27 Awesome Arrowland Adventure (eJOI19_adventure) C++14
0 / 100
1 ms 204 KB
#include<bits/stdc++.h>
using namespace std;
#define mod 1000000007ll
#define int long long
int32_t main () {
	int n, k;
	cin >> n >> k;
	int ans = 0;
	k--;
	for(int i = 0;i<n;i++) { 
		ans = (((ans*2))%mod + k%2)%mod;
		k/=2;
	}
	cout<<(++ans)%mod<<endl;
}
# Verdict Execution time Memory Grader output
1 Incorrect 0 ms 204 KB Output isn't correct
2 Halted 0 ms 0 KB -
# Verdict Execution time Memory Grader output
1 Incorrect 0 ms 204 KB Output isn't correct
2 Halted 0 ms 0 KB -
# Verdict Execution time Memory Grader output
1 Incorrect 0 ms 204 KB Output isn't correct
2 Halted 0 ms 0 KB -
# Verdict Execution time Memory Grader output
1 Incorrect 1 ms 204 KB Output isn't correct
2 Halted 0 ms 0 KB -
# Verdict Execution time Memory Grader output
1 Incorrect 0 ms 204 KB Output isn't correct
2 Halted 0 ms 0 KB -