Submission #1080510

#TimeUsernameProblemLanguageResultExecution timeMemory
1080510alexander707070Hexagonal Territory (APIO21_hexagon)C++14
0 / 100
1 ms348 KiB
#include<bits/stdc++.h> #include "hexagon.h" using namespace std; const int mod=1e9+7; int n; int draw_territory(int N, int A, int B,vector<int> D,vector<int> l){ n=N; if(n==3){ return A*(l[0]+1)*(l[0]+2)/2+B*((l[0]+1)*(l[0]+1)*(l[0]+1)-(l[0]+1))/3; } }

Compilation message (stderr)

hexagon.cpp: In function 'int draw_territory(int, int, int, std::vector<int>, std::vector<int>)':
hexagon.cpp:16:1: warning: control reaches end of non-void function [-Wreturn-type]
   16 | }
      | ^
#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...