제출 #1150472

#제출 시각아이디문제언어결과실행 시간메모리
1150472eri16L-triominoes (CEOI21_ltriominoes)C++20
0 / 100
0 ms328 KiB
#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 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...