#include <bits/stdc++.h>
using namespace std;
int main() {
ios::sync_with_stdio(false);
cin.tie(nullptr);
long long W, H;
int K;
cin >> W >> H >> K;
// For subtask 2, K is guaranteed to be 0, so we have no missing squares to read.
// Compute the area in 64-bit to avoid overflow.
long long area = W * H;
// If the area is divisible by 6, the board can be tiled by L-triominoes.
if (area % 6 == 0)
cout << "YES\n";
else
cout << "NO\n";
return 0;
}
# | 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... |