Submission #1063900

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