結果

問題 No.85 TVザッピング(1)
ユーザー hotpepsi
提出日時 2014-12-04 23:35:40
言語 C++11(廃止可能性あり)
(gcc 13.3.0)
結果
WA  
実行時間 -
コード長 411 bytes
コンパイル時間 621 ms
コンパイル使用メモリ 62,236 KB
実行使用メモリ 5,376 KB
最終ジャッジ日時 2024-06-11 15:24:59
合計ジャッジ時間 1,446 ms
ジャッジサーバーID
(参考情報)
judge4 / judge5
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 3
other AC * 25 WA * 2
権限があれば一括ダウンロードができます

ソースコード

diff #

#include <iostream>
#include <algorithm>
#include <sstream>
#include <vector>

using namespace std;

bool solve(int N, int M, int C)
{
	if (N <= 1 || M <= 1) {
		return false;
	}
	return N*M % 2 == 0;
}

int main(int argc, char *argv[])
{
	int N, M, C;
	string s;
	getline(cin, s);
	stringstream ss(s);
	ss >> N >> M >> C;
	cout << (solve(N, M, C) ? "YES" : "NO") << endl;
	return 0;
}
0