結果
| 問題 |
No.85 TVザッピング(1)
|
| コンテスト | |
| ユーザー |
koyumeishi
|
| 提出日時 | 2014-12-04 23:47:41 |
| 言語 | C++11(廃止可能性あり) (gcc 13.3.0) |
| 結果 |
AC
|
| 実行時間 | 2 ms / 5,000 ms |
| コード長 | 462 bytes |
| コンパイル時間 | 566 ms |
| コンパイル使用メモリ | 72,216 KB |
| 実行使用メモリ | 5,248 KB |
| 最終ジャッジ日時 | 2024-10-04 17:11:30 |
| 合計ジャッジ時間 | 1,275 ms |
|
ジャッジサーバーID (参考情報) |
judge5 / judge3 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 3 |
| other | AC * 27 |
ソースコード
#include <iostream>
#include <vector>
#include <cstdio>
#include <sstream>
#include <map>
#include <string>
#include <algorithm>
#include <queue>
#include <cmath>
using namespace std;
int main(){
int n,m,c;
cin >> n >> m >> c;
if( (n*m)%2==1 ){
cout << "NO" << endl;
}else if(n==1 || m==1){
if( n==2 || m==2){
cout << "YES" << endl;
}else{
cout << "NO" << endl;
}
}else{
cout << "YES" << endl;
}
return 0;
}
koyumeishi