제출 #982010

#제출 시각아이디문제언어결과실행 시간메모리
982010zh_h육각형 영역 (APIO21_hexagon)C++17
0 / 100
1024 ms408 KiB
#include <bits/stdc++.h> #define lint long long int #define pb push_back using namespace std; const int INF = 1e9; const int MOD = 1E9+7; int draw_territory(int N, int A, int B, vector<int> D, vector<int> L){ lint length = L[0]; lint sum = 0, times = 0; for(lint i = 0; i <= length; i ++){ sum += ((i*(i+1))%MOD); sum %= MOD; times += i+1; } sum *= B; sum %= MOD; sum += ((times*A)%MOD); return sum; }
#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...