結果
問題 | No.85 TVザッピング(1) |
ユーザー |
|
提出日時 | 2018-05-21 16:45:40 |
言語 | C++14 (gcc 13.3.0 + boost 1.87.0) |
結果 |
AC
|
実行時間 | 2 ms / 5,000 ms |
コード長 | 348 bytes |
コンパイル時間 | 530 ms |
コンパイル使用メモリ | 62,848 KB |
実行使用メモリ | 5,376 KB |
最終ジャッジ日時 | 2024-06-28 15:01:04 |
合計ジャッジ時間 | 1,448 ms |
ジャッジサーバーID (参考情報) |
judge5 / judge3 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 3 |
other | AC * 27 |
ソースコード
#include<iostream> using namespace std; int main(){ int n, m, c; cin >> n >> m >> c; if(n%2 == 1 && m%2 == 1){ cout << "NO" << endl; }else if(n == 1 || m == 1){ if(n+m == 3) cout << "YES" << endl; else cout << "NO" << endl; }else{ cout << "YES" << endl; } return 0; }