Submission #685025

# Submission time Handle Problem Language Result Execution time Memory
685025 2023-01-23T05:49:37 Z moonhero L-triominoes (CEOI21_ltriominoes) C++14
0 / 100
1 ms 212 KB
#include<bits/stdc++.h>
using namespace std;
using ll = long long;
const long long N = 3e5 + 5;
signed main() {
    int w, h, k; cin >> w >> h >> k;
    if (w % 2 == 0 && h % 3 == 0) {
        cout << "YES\n";
        return 0;
    }
    if (w % 3 == 0 && h % 2 == 0) {
        cout << "YES\n";
        return 0;
    } if (w % 3 == 2 && h % 2 ==0 && h % 3 == 0) {
        cout << "YES\n";
        return 0;
    } if (h % 3 == 2 && w % 2 ==0 && w % 3 == 0) {
        cout << "YES\n";
        return 0;
    }
    cout << "NO\n";
    return 0;
}
# Verdict Execution time Memory Grader output
1 Incorrect 0 ms 212 KB Output isn't correct
2 Halted 0 ms 0 KB -
# Verdict Execution time Memory Grader output
1 Correct 0 ms 212 KB Output is correct
2 Correct 0 ms 212 KB Output is correct
3 Correct 0 ms 212 KB Output is correct
4 Correct 0 ms 212 KB Output is correct
5 Correct 1 ms 212 KB Output is correct
6 Incorrect 1 ms 212 KB Output isn't correct
7 Halted 0 ms 0 KB -
# Verdict Execution time Memory Grader output
1 Correct 0 ms 212 KB Output is correct
2 Correct 0 ms 212 KB Output is correct
3 Correct 0 ms 212 KB Output is correct
4 Incorrect 0 ms 212 KB Output isn't correct
5 Halted 0 ms 0 KB -
# Verdict Execution time Memory Grader output
1 Correct 0 ms 212 KB Output is correct
2 Incorrect 1 ms 212 KB Output isn't correct
3 Halted 0 ms 0 KB -
# Verdict Execution time Memory Grader output
1 Correct 0 ms 212 KB Output is correct
2 Incorrect 0 ms 212 KB Output isn't correct
3 Halted 0 ms 0 KB -
# Verdict Execution time Memory Grader output
1 Incorrect 0 ms 212 KB Output isn't correct
2 Halted 0 ms 0 KB -