Submission #698629

#TimeUsernameProblemLanguageResultExecution timeMemory
698629CyanmondL-triominoes (CEOI21_ltriominoes)C++17
0 / 100
0 ms212 KiB
#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 timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...