# | Time | Username | Problem | Language | Result | Execution time | Memory |
---|---|---|---|---|---|---|---|
980503 | vjudge1 | Hexagonal Territory (APIO21_hexagon) | C++17 | 0 ms | 0 KiB |
This submission is migrated from previous version of oj.uz, which used different machine for grading. This submission may have different result if resubmitted.
#include "hexagon.h"
#include<bits/stdc++.h>
#define sz size()
#define ll long long
using namespace std;
const ll M = 1e9 + 7;
int draw_territory(int N, int A, int B, vector<int> D, vector<int> L)
{
if(L[0] != L[1] || L[0] != d[2])
while(true);
ll ans = ((ll)L[0] + 1ll) * ((ll)L[0] + 2ll) / 2ll * (ll)A % M;
return int(ans);
}
//void solve()
//{
//}
//
//signed main()
//{
// ios_base::sync_with_stdio(0);
// cin.tie(0), cout.tie(0);
//// solve();
//}