Submission #981363

#TimeUsernameProblemLanguageResultExecution timeMemory
981363UnforgettableplHexagonal Territory (APIO21_hexagon)C++17
0 / 100
1 ms436 KiB
#include <bits/stdc++.h> using namespace std; const int modulo = 1e9+7; int draw_territory(int N, int A, int B, std::vector<int> D, std::vector<int> L) { auto ans = (long long)(D[0]+1ll); ans = (((((ans*(ans+1))%modulo)*500000004ll)%modulo)*(long long)(A))%modulo; return (int)ans; }
#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...