Submission #712884

#TimeUsernameProblemLanguageResultExecution timeMemory
712884irmuunHexagonal Territory (APIO21_hexagon)C++17
3 / 100
1 ms304 KiB
#include<bits/stdc++.h> #include "hexagon.h" using namespace std; #define pb push_back #define ll long long #define ff first #define ss second #define PI 3.1415926535897932384626433 #define all(s) s.begin(),s.end() const ll mod=1e9+7; int draw_territory(int N,int A,int B,vector<int>D,vector<int>L){ ll ans=(L[0]+1ll)*(L[0]+2ll)/2%mod; ans=ans*A%mod; return (int)ans; }
#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...