Submission #654744

#TimeUsernameProblemLanguageResultExecution timeMemory
654744Sam_a17Hexagonal Territory (APIO21_hexagon)C++14
0 / 100
0 ms212 KiB
#include <bits/stdc++.h> using namespace std; const long long mod = 1e9 + 7; int draw_territory(int N, int A, int B, vector<int> D, vector<int> L) { long long answ = 0, a = A; for(auto i: L) { answ += i; answ %= mod; } answ--; answ += mod; answ %= mod; return (answ * a) % mod; }
#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...