제출 #783250

#제출 시각아이디문제언어결과실행 시간메모리
783250vh50L-triominoes (CEOI21_ltriominoes)C++17
0 / 100
1 ms300 KiB
#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 * m - k) % 6 == 0 || (n % 3) == 0 && n > 3 || (m % 3) && m > 3)	cout << "YES" << endl;
	else	cout << "NO" << endl;
}

컴파일 시 표준 에러 (stderr) 메시지

ltrominoes.cpp:6:1: warning: ISO C++ forbids declaration of 'main' with no type [-Wreturn-type]
    6 | main()
      | ^~~~
ltrominoes.cpp: In function 'int main()':
ltrominoes.cpp:14:42: warning: suggest parentheses around '&&' within '||' [-Wparentheses]
   14 |  if((n * m - k) % 6 == 0 || (n % 3) == 0 && n > 3 || (m % 3) && m > 3) cout << "YES" << endl;
      |                             ~~~~~~~~~~~~~^~~~~~~~
ltrominoes.cpp:14:62: warning: suggest parentheses around '&&' within '||' [-Wparentheses]
   14 |  if((n * m - k) % 6 == 0 || (n % 3) == 0 && n > 3 || (m % 3) && m > 3) cout << "YES" << endl;
      |                                                      ~~~~~~~~^~~~~~~~
#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...