# | TimeUTC-0 | Username | Problem | Language | Result | Execution time | Memory |
---|---|---|---|---|---|---|---|
980621 | vjudge1 | 육각형 영역 (APIO21_hexagon) | C++17 | 351 ms | 64596 KiB |
This submission is migrated from previous version of oj.uz, which used different machine for grading. This submission may have different result if resubmitted.
#include <bits/stdc++.h>
#include "hexagon.h"
using namespace std;
using ll = long long;
const int MOD = 1e9 + 7;
void norm(int &x) {
if (x >= MOD) x -= MOD;
if (x < 0) x += MOD;
}
struct point {
int x;
int y;
point() {}
point(int x, int y) : x(x), y(y) {}
};
pair<int, int> directions[6] = {
{-1, -1}, {-1, 0}, {0, +1}, {+1, +1}, {+1, 0}, {0, -1}
};
point move(point a, int dir) {
return point(a.x + directions[dir].first,
a.y + directions[dir].second);
}
int sumL = 0;
Compilation message (stderr)
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
Fetching results... |
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
Fetching results... |
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
Fetching results... |
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
Fetching results... |
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
Fetching results... |
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
Fetching results... |
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
Fetching results... |
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
Fetching results... |