Submission #685005

#TimeUsernameProblemLanguageResultExecution timeMemory
685005moonheroL-triominoes (CEOI21_ltriominoes)C++14
0 / 100
1 ms304 KiB
#include<bits/stdc++.h>
using namespace std;
using ll = long long;

signed main() {
    ios_base::sync_with_stdio(0);
    cin.tie(0); cout.tie(0);
    ll w, h, k; cin >> w >> h >> k;
    w = min(w, h), h = max(w, h);
    h *= 2, w *= 2;
    if (h % 3 == 0 || w % 3 == 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...