# | Time | Username | Problem | Language | Result | Execution time | Memory |
---|---|---|---|---|---|---|---|
980517 | vjudge1 | Hexagonal Territory (APIO21_hexagon) | C++17 | 1 ms | 348 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 <bits/stdc++.h>
using namespace std;
#define fastio ios_base::sync_with_stdio(false); cin.tie(0); cout.tie(0);
#define nl "\n"
const int maxn = 2e5+5;
int draw_territory(int N, int A, int B, vector<int> D, vector<int> L){
int mod = 1e9+7;
long long a;
if(N==3){
int length = L[0];
a = ((((length*(2*length-1)*(length+1)/6)*B)%mod) + ((length*(length+1))/2 * (A-B))%mod) % mod;
}
else{
int totalsq = 4000*4000;
int dx[6] = {0, 1, 1, 0, -1, -1};
int dy[6] = {2, 1 ,-1, -2, -1, 1};
}
int ans = a%mod;
return ans;
}
Compilation message (stderr)
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
Fetching results... |
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
Fetching results... |
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
Fetching results... |
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
Fetching results... |
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
Fetching results... |
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
Fetching results... |
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
Fetching results... |
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
Fetching results... |