Submission #743357

#TimeUsernameProblemLanguageResultExecution timeMemory
743357onebit1024Hexagonal Territory (APIO21_hexagon)C++17
0 / 100
0 ms288 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 - 1; }
#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...