Submission #743357

# Submission time Handle Problem Language Result Execution time Memory
743357 2023-05-17T10:29:30 Z onebit1024 Hexagonal Territory (APIO21_hexagon) C++17
0 / 100
0 ms 288 KB
#include "hexagon.h"

#include <vector>

int draw_territory(int N, int A, int B,
                   std::vector<int> D, std::vector<int> L) {
  int k = L[0]-2;
  if(L[0]<=2)return L[0]+L[1]+L[2];
  return L[0]*3 + (k*(k+1))/2 - 1;
}
# Verdict Execution time Memory Grader output
1 Incorrect 0 ms 212 KB Output isn't correct
2 Halted 0 ms 0 KB -
# Verdict Execution time Memory Grader output
1 Incorrect 0 ms 288 KB Output isn't correct
2 Halted 0 ms 0 KB -
# Verdict Execution time Memory Grader output
1 Incorrect 0 ms 212 KB Output isn't correct
2 Halted 0 ms 0 KB -
# Verdict Execution time Memory Grader output
1 Incorrect 0 ms 212 KB Output isn't correct
2 Halted 0 ms 0 KB -
# Verdict Execution time Memory Grader output
1 Incorrect 0 ms 212 KB Output isn't correct
2 Halted 0 ms 0 KB -
# Verdict Execution time Memory Grader output
1 Incorrect 0 ms 212 KB Output isn't correct
2 Halted 0 ms 0 KB -
# Verdict Execution time Memory Grader output
1 Incorrect 0 ms 212 KB Output isn't correct
2 Halted 0 ms 0 KB -
# Verdict Execution time Memory Grader output
1 Incorrect 0 ms 212 KB Output isn't correct
2 Halted 0 ms 0 KB -