Submission #727183

#TimeUsernameProblemLanguageResultExecution timeMemory
727183SanguineChameleonHexagonal Territory (APIO21_hexagon)C++17
0 / 100
2 ms340 KiB
#include "hexagon.h" #include <bits/stdc++.h> using namespace std; const long long mod = 1e9 + 7; const long long one_half = (mod + 1) / 2; int draw_territory(int N, int A, int B, vector<int> D, vector<int> L) { if (N == 3) { int len = L[0] + 1; return 1LL * len * (len + 1) % mod * one_half % mod; } 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...