Submission #744931

#TimeUsernameProblemLanguageResultExecution timeMemory
744931prvocisloL-triominoes (CEOI21_ltriominoes)C++17
7 / 100
1 ms328 KiB
// With a smile in your heart, that's how I like you again #include <algorithm> #include <bitset> #include <cassert> #include <chrono> #include <cmath> #include <deque> #include <iomanip> #include <iostream> #include <map> #include <queue> #include <random> #include <set> #include <string> #include <vector> typedef long long ll; typedef long double ld; using namespace std; int main() { ios::sync_with_stdio(false); cin.tie(0); ll n, m, k; cin >> n >> m >> k; if ((n * m) % 3 != 0) cout << "NO\n"; else if (n == 1 || m == 1) cout << "NO\n"; else if ((n * m) % 6 == 0) cout << "YES\n"; else if (n >= 5 && m >= 5) 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...