답안 #783235

# 제출 시각 아이디 문제 언어 결과 실행 시간 메모리
783235 2023-07-14T18:36:51 Z vh50 L-triominoes (CEOI21_ltriominoes) C++17
0 / 100
1 ms 212 KB
#include <bits/stdc++.h>
#define int long long
#define endl "\n"
using namespace std;
int n, m, k;
main()
{
	cin >> n >> m >> k;
	for(int i = 0; i < k; i++)
	{
		int a, b;
		cin >> a >> b;
	}
	if((n % 6 == 0) || (m % 6 == 0))	cout << "YES" << endl;
	else if((n % 2 == 0) && (m % 3 == 0))	cout << "YES" << endl;
	else if((n % 3 == 0) && (m % 2 == 0))	cout << "YES" << endl;
	else	cout << "NO" << endl;
}

Compilation message

ltrominoes.cpp:6:1: warning: ISO C++ forbids declaration of 'main' with no type [-Wreturn-type]
    6 | main()
      | ^~~~
# 결과 실행 시간 메모리 Grader output
1 Incorrect 1 ms 212 KB Output isn't correct
2 Halted 0 ms 0 KB -
# 결과 실행 시간 메모리 Grader output
1 Correct 0 ms 212 KB Output is correct
2 Correct 0 ms 212 KB Output is correct
3 Correct 1 ms 212 KB Output is correct
4 Correct 0 ms 212 KB Output is correct
5 Correct 0 ms 212 KB Output is correct
6 Incorrect 0 ms 212 KB Output isn't correct
7 Halted 0 ms 0 KB -
# 결과 실행 시간 메모리 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 1 ms 212 KB Output isn't correct
5 Halted 0 ms 0 KB -
# 결과 실행 시간 메모리 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 -
# 결과 실행 시간 메모리 Grader output
1 Correct 1 ms 212 KB Output is correct
2 Incorrect 1 ms 212 KB Output isn't correct
3 Halted 0 ms 0 KB -
# 결과 실행 시간 메모리 Grader output
1 Incorrect 1 ms 212 KB Output isn't correct
2 Halted 0 ms 0 KB -