Submission #981363

# Submission time Handle Problem Language Result Execution time Memory
981363 2024-05-13T05:54:45 Z Unforgettablepl Hexagonal Territory (APIO21_hexagon) C++17
0 / 100
1 ms 436 KB
#include <bits/stdc++.h>
using namespace std;

const int modulo = 1e9+7;

int draw_territory(int N, int A, int B,
                   std::vector<int> D, std::vector<int> L) {
    auto ans = (long long)(D[0]+1ll);
    ans = (((((ans*(ans+1))%modulo)*500000004ll)%modulo)*(long long)(A))%modulo;
    return (int)ans;
}
# 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 436 KB Output isn't correct
2 Halted 0 ms 0 KB -
# 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 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 -