Submission #568237

#TimeUsernameProblemLanguageResultExecution timeMemory
568237amunduzbaevHexagonal Territory (APIO21_hexagon)C++17
3 / 100
1 ms424 KiB
#include "hexagon.h" #ifndef EVAL #include "grader.cpp" #endif #include "bits/stdc++.h" using namespace std; const int mod = 1e9 + 7; const int MAXN = 505 * 505; int draw_territory(int n, int A, int B, vector<int> d, vector<int> l) { if(n == 3){ int L = l[0]; return (L + 1) * 1ll * (L + 2) / 2 % mod * A % mod; } assert(false); //~ auto check = [&](int x, int y, int z){ //~ map<ar<int, 3>, int> mm; //~ for(auto x : edges[u]){ //~ } //~ }; 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...