Submission #743358

#TimeUsernameProblemLanguageResultExecution timeMemory
743358onebit1024Hexagonal Territory (APIO21_hexagon)C++17
0 / 100
1 ms212 KiB
#include "hexagon.h" #include <vector> int draw_territory(int N, int A, int B, std::vector<int> D, std::vector<int> L) { int k = L[0]-2; if(L[0]<=2)return L[0]+L[1]+L[2]; return L[0]*3 + (k*(k+1))/2 ; }
#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...