Submission #979874

# Submission time Handle Problem Language Result Execution time Memory
979874 2024-05-11T14:25:21 Z vjudge1 Hexagonal Territory (APIO21_hexagon) C++17
0 / 100
1 ms 348 KB
#include "hexagon.h"
#include <bits/stdc++.h>
#include <vector>
#define debu(x) (cerr << #x  << " = "<< x << "\n")
using namespace std;


int draw_territory(int N, int A, int B, std::vector<int> D, std::vector<int> L)
{
  #define int long long
  int leng = L[0] + 1;
  int ans = leng * (leng + 1) * (2 * leng + 1)/6;
  ans -= leng*(leng + 1)/2;
  ans *= B;
  //debu(ans);
  ans += A * (leng * (leng + 1))/2;
  //debu(ans);
  #undef int 
  return ans;
}
# Verdict Execution time Memory Grader output
1 Incorrect 1 ms 344 KB Output isn't correct
2 Halted 0 ms 0 KB -
# Verdict Execution time Memory Grader output
1 Incorrect 1 ms 348 KB Output isn't correct
2 Halted 0 ms 0 KB -
# Verdict Execution time Memory Grader output
1 Incorrect 0 ms 348 KB Output isn't correct
2 Halted 0 ms 0 KB -
# Verdict Execution time Memory Grader output
1 Incorrect 1 ms 348 KB Output isn't correct
2 Halted 0 ms 0 KB -
# Verdict Execution time Memory Grader output
1 Incorrect 0 ms 348 KB Output isn't correct
2 Halted 0 ms 0 KB -
# Verdict Execution time Memory Grader output
1 Incorrect 0 ms 348 KB Output isn't correct
2 Halted 0 ms 0 KB -
# Verdict Execution time Memory Grader output
1 Incorrect 0 ms 348 KB Output isn't correct
2 Halted 0 ms 0 KB -
# Verdict Execution time Memory Grader output
1 Incorrect 0 ms 344 KB Output isn't correct
2 Halted 0 ms 0 KB -