Submission #577775

#TimeUsernameProblemLanguageResultExecution timeMemory
577775tengiz05Star Trek (CEOI20_startrek)C++17
7 / 100
1 ms212 KiB
#include <bits/stdc++.h> using namespace std; using i64 = long long; constexpr int P = 1E9 + 7; i64 power(i64 a, i64 b) { i64 res = 1; for (; b > 0; a = a * a % P, b /= 2) { if (b % 2) { res = res * a % P; } } return res; } int main() { ios::sync_with_stdio(false); cin.tie(nullptr); int n; i64 D; cin >> n >> D; cout << power(4, D) << "\n"; return 0; }
#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...