Submission #428735

#TimeUsernameProblemLanguageResultExecution timeMemory
428735ocarimaStar Trek (CEOI20_startrek)C++14
7 / 100
1 ms312 KiB
#include<bits/stdc++.h> using namespace std; #define fastio ios_base::sync_with_stdio(false); cin.tie(0) #define lli long long #define rep(i, a, b) for(lli i = (a); i <= (b); ++i) #define repa(i, a, b) for(lli i = (a); i >= (b); --i) #define nl "\n" #define debugsl(x) cout << #x << " = " << x << ", " #define debug(x) debugsl(x) << nl #define debugarr(x, a, b) cout << #x << " = ["; rep(ii, a, b){ cout << x[ii] << ", "; } cout << "]" << nl #define MOD 1000000007 lli n, d; lli binexp(lli b, lli e){ lli res = 1; while (e > 0){ if (e & 1) res = (res * b) % MOD; e >>= 1; b = (b * b) % MOD; } return res; } int main() { fastio; cin >> n >> d; if (n == 2) cout << binexp(4, d); else cout << 0; 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...