제출 #659753

#제출 시각아이디문제언어결과실행 시간메모리
659753fatemetmhrL-triominoes (CEOI21_ltriominoes)C++17
0 / 100
1 ms332 KiB
#include <bits/stdc++.h> using namespace std; typedef long long ll; #define pb push_back #define fi first #define se second #define all(x) x.begin(), x.end() const int maxn5 = 4e5 + 10; int cnt[maxn5]; vector <int> av, tmp[2]; int main(){ ios_base::sync_with_stdio(false); cin.tie(0); ll h, w, k; cin >> h >> w >> k; if(h % 3 == 0 && w % 2 == 0) cout << "YES\n"; else if(h % 2 == 0 && w % 3 == 0) cout << "YES\n"; else cout << "NO\n"; }
#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...