# | Time | Username | Problem | Language | Result | Execution time | Memory |
---|---|---|---|---|---|---|---|
1203409 | Muaath_5 | Hexagonal Territory (APIO21_hexagon) | C++20 | 0 ms | 0 KiB |
#include <bits/stdc++.h>
using namespace std;
const int MOD = 1000000007;
int draw_territory(int N, int A, int B, vector<int> D, vector<int> L) {
const ll cnt = (1LL*L[0]*(L[0]-1)/2)
return (1LL*A*cnt)%MOD;
}