Submission #1063895

#TimeUsernameProblemLanguageResultExecution timeMemory
1063895kunzaZa183Hexagonal Territory (APIO21_hexagon)C++17
0 / 100
1 ms348 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 = (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...