結果
| 問題 |
No.85 TVザッピング(1)
|
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2019-08-05 12:14:19 |
| 言語 | C++17 (gcc 13.3.0 + boost 1.87.0) |
| 結果 |
AC
|
| 実行時間 | 2 ms / 5,000 ms |
| コード長 | 224 bytes |
| コンパイル時間 | 2,088 ms |
| コンパイル使用メモリ | 190,984 KB |
| 最終ジャッジ日時 | 2025-01-07 10:43:50 |
|
ジャッジサーバーID (参考情報) |
judge1 / judge2 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 3 |
| other | AC * 27 |
ソースコード
#include <bits/stdc++.h>
using namespace std;
typedef long long ll;
int main() {
int n,m;
cin>>n>>m;
if ((n==1||m==1)&&n*m!=2) puts("NO");
else if (n*m%2==0) puts("YES");
else puts("NO");
return 0;
}