Submission #569437

#TimeUsernameProblemLanguageResultExecution timeMemory
569437TurkhuuHexagonal Territory (APIO21_hexagon)C++17
0 / 100
262 ms276 KiB
#include "hexagon.h" #include <bits/stdc++.h> int draw_territory(int n, int a, int b, std::vector<int> d, std::vector<int> l){ if(n == 3){ long long ans = 0; for(int i = 1; i <= l[0]; i++){ ans += i * (i + 1); } ans *= b; ans += (l[0] + 1) * (l[0] + 2) * a; return ans; } return 0; }
#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...