結果
問題 | No.85 TVザッピング(1) |
ユーザー |
|
提出日時 | 2020-02-13 11:01:37 |
言語 | C++14 (gcc 13.3.0 + boost 1.87.0) |
結果 |
AC
|
実行時間 | 2 ms / 5,000 ms |
コード長 | 218 bytes |
コンパイル時間 | 1,742 ms |
コンパイル使用メモリ | 166,036 KB |
実行使用メモリ | 6,820 KB |
最終ジャッジ日時 | 2024-10-05 08:57:13 |
合計ジャッジ時間 | 2,219 ms |
ジャッジサーバーID (参考情報) |
judge2 / judge5 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 3 |
other | AC * 27 |
ソースコード
#include<bits/stdc++.h> using namespace std; int main(){ int n,m;cin >> n >> m; if((n%2==1&&m%2==1)||((n==1||m==1)&&n*m!=2)){ cout << "NO" << endl; } else{ cout << "YES" << endl; } }