Submission #569445

# Submission time Handle Problem Language Result Execution time Memory
569445 2022-05-27T11:51:43 Z Turkhuu Hexagonal Territory (APIO21_hexagon) C++17
0 / 100
2000 ms 212 KB
#include "hexagon.h"
#include <bits/stdc++.h>
const int mod = 1000000007;
int draw_territory(int n, int a, int b, std::vector<int> d, std::vector<int> l){
  if(n == 3){
    long long ans = 0;
    for(int i = 0; i <= l[0]; i++){
      for(int j = 0; j < i + 1; j++){
        ans += a + b * i;
        ans %= mod;
      }
    }
    return ans;
  }
  return 0;
}
# Verdict Execution time Memory Grader output
1 Execution timed out 2087 ms 212 KB Time limit exceeded
2 Halted 0 ms 0 KB -
# Verdict Execution time Memory Grader output
1 Execution timed out 2088 ms 212 KB Time limit exceeded
2 Halted 0 ms 0 KB -
# Verdict Execution time Memory Grader output
1 Incorrect 1 ms 212 KB Output isn't correct
2 Halted 0 ms 0 KB -
# Verdict Execution time Memory Grader output
1 Incorrect 1 ms 212 KB Output isn't correct
2 Halted 0 ms 0 KB -
# Verdict Execution time Memory Grader output
1 Execution timed out 2075 ms 212 KB Time limit exceeded
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 Execution timed out 2086 ms 212 KB Time limit exceeded
2 Halted 0 ms 0 KB -
# Verdict Execution time Memory Grader output
1 Incorrect 1 ms 212 KB Output isn't correct
2 Halted 0 ms 0 KB -