답안 #524958

# 제출 시각 아이디 문제 언어 결과 실행 시간 메모리
524958 2022-02-10T11:34:39 Z Ziel L-triominoes (CEOI21_ltriominoes) C++17
0 / 100
0 ms 204 KB
#include <bits/stdc++.h>
using namespace std;

using ll = long long;
#define sz(x) (int)x.size()

signed main() {
	ios_base::sync_with_stdio(false);
	cin.tie(nullptr);

	int w, h, k;
	cin >> w >> h >> k;

	if (!k) {
		if (w == 2) {
			if (h % 3 == 0)
				cout << "YES\n";
			else
				cout << "NO\n";
		}

		else if (w == 3) {
			if (h % 2 == 0)
				cout << "YES\n";
			else
				cout << "NO\n";
		}

		else if (w == 4) {
			if (h % 3 == 0)
				cout << "YES\n";
			else
				cout << "NO\n";
		}

		else if (w == 5) {
			assert(false);
			if (h % 6 == 0)
				cout << "YES\n";
			else
				cout << "NO\n";
		}

		else if (w == 6) {
			if (h % 2 == 0 || h % 3 == 0)
				cout << "YES\n";
			else
				cout << "NO\n";
		}

		else if (w == 7) {
			if (h % 6 == 0)
				cout << "YES\n";
			else
				cout << "NO\n";
		}

		else if (w == 8) {
			if (h % 3 == 0)
				cout << "YES\n";
			else
				cout << "NO\n";
		}

		else if (w == 9) {
			if (h % 2 == 0)
				cout << "YES\n";
			else
				cout << "NO\n";
		}

		else if (w == 10) {
			if (h % 3 == 0)
				cout << "YES\n";
			else
				cout << "NO\n";
		}

		else if (w == 11) {
//			assert(false);
			if (h % 4 == 0)
				cout << "YES\n";
			else
				cout << "NO\n";
		}

		else if (w == 12) {
			if (h % 2 == 0 || h % 3 == 0)
				cout << "YES\n";
			else
				cout << "NO\n";
		}

		else if (w == 13) {
			assert(false);
			if (h % 6 == 0)
				cout << "YES\n";
			else
				cout << "NO\n";
		}
	}

	return 0;
}
# 결과 실행 시간 메모리 Grader output
1 Incorrect 0 ms 204 KB Output isn't correct
2 Halted 0 ms 0 KB -
# 결과 실행 시간 메모리 Grader output
1 Correct 0 ms 204 KB Output is correct
2 Correct 0 ms 204 KB Output is correct
3 Correct 0 ms 204 KB Output is correct
4 Correct 0 ms 204 KB Output is correct
5 Correct 0 ms 204 KB Output is correct
6 Incorrect 0 ms 204 KB Output isn't correct
7 Halted 0 ms 0 KB -
# 결과 실행 시간 메모리 Grader output
1 Incorrect 0 ms 204 KB Output isn't correct
2 Halted 0 ms 0 KB -
# 결과 실행 시간 메모리 Grader output
1 Incorrect 0 ms 204 KB Output isn't correct
2 Halted 0 ms 0 KB -
# 결과 실행 시간 메모리 Grader output
1 Incorrect 0 ms 204 KB Output isn't correct
2 Halted 0 ms 0 KB -
# 결과 실행 시간 메모리 Grader output
1 Incorrect 0 ms 204 KB Output isn't correct
2 Halted 0 ms 0 KB -