Submission #1101250

#TimeUsernameProblemLanguageResultExecution timeMemory
1101250fve5Star Trek (CEOI20_startrek)C++17
7 / 100
1 ms500 KiB
#include <bits/stdc++.h> using namespace std; constexpr int MOD = 1e9 + 7; int main() { int N; cin >> N; long long D; cin >> D; long long b = 4; long long a = 1; do { if (D & 1) a = a * b % MOD; b = b * b % MOD; } while (D >>= 1); cout << a << '\n'; }
#Verdict Execution timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...