# | TimeUTC-0 | Username | Problem | Language | Result | Execution time | Memory |
---|---|---|---|---|---|---|---|
392435 | palilo | Soccer (JOI17_soccer) | C++17 | 393 ms | 17056 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>
using namespace std;
constexpr array<pair<int, int>, 4> mov = {{{-1, 0}, {0, -1}, {0, 1}, {1, 0}}};
constexpr int64_t INF = 0x3f3f3f3f3f3f3f3f;
struct elem {
int64_t d;
int u;
elem(int64_t d, int u) : d(d), u(u) {}
bool operator<(const elem& rhs) const {
return d > rhs.d;
}
};
int main() {
cin.tie(nullptr)->sync_with_stdio(false);
#ifdef home
freopen("in", "r", stdin);
freopen("out", "w", stdout);
#endif
int h, w, n;
int64_t a, b, c;
cin >> h >> w >> a >> b >> c >> n;
++h, ++w;
vector<pair<int, int>> player(n);
for (auto& [x, y] : player)
cin >> x >> y;
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
Fetching results... |
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
Fetching results... |
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
Fetching results... |