Submission #654744

# Submission time Handle Problem Language Result Execution time Memory
654744 2022-11-01T12:28:44 Z Sam_a17 Hexagonal Territory (APIO21_hexagon) C++14
0 / 100
0 ms 212 KB
#include <bits/stdc++.h>
using namespace std;

const long long mod = 1e9 + 7;

int draw_territory(int N, int A, int B, vector<int> D, vector<int> L) {
  long long answ = 0, a = A;
  for(auto i: L) {
    answ += i;
    answ %= mod;
  }
  answ--;
  answ += mod;
  answ %= mod;
  return (answ * a) % mod;
}
# 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 -
# 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 -