이 제출은 이전 버전의 oj.uz에서 채점하였습니다. 현재는 제출 당시와는 다른 서버에서 채점을 하기 때문에, 다시 제출하면 결과가 달라질 수도 있습니다.
#include <bits/stdc++.h>
using i64 = long long;
struct Point {
i64 x;
i64 y;
};
int main() {
i64 W, H;
int K;
std::cin >> W >> H >> K;
std::vector<Point> points(K);
for (auto &[x, y] : points) {
std::cin >> x >> y;
}
if (K == 0) {
bool ok = false;
if ((H % 2 == 0 and W % 3 == 0) or (H % 3 == 0 and W % 2 == 0)) {
ok = true;
}
std::cout << (ok ? "YES" : "NO") << std::endl;
}
}
# | 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... |