제출 #1019337

#제출 시각아이디문제언어결과실행 시간메모리
1019337MohamedFaresNebiliHexagonal Territory (APIO21_hexagon)C++14
3 / 100
1 ms504 KiB
#include <bits/stdc++.h> using namespace std; const int MOD = 1e9 + 7; int draw_territory(int N, int A, int B, vector<int> D, vector<int> L) { int res = 0; long long K = L[1] + 1; K = K * (K + 1) / 2; K = (K % MOD) * A; K %= MOD; return res = K; }
#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...