結果
問題 | No.85 TVザッピング(1) |
ユーザー |
![]() |
提出日時 | 2016-08-21 16:17:06 |
言語 | C++14 (gcc 13.3.0 + boost 1.87.0) |
結果 |
AC
|
実行時間 | 2 ms / 5,000 ms |
コード長 | 231 bytes |
コンパイル時間 | 1,604 ms |
コンパイル使用メモリ | 165,056 KB |
実行使用メモリ | 5,248 KB |
最終ジャッジ日時 | 2024-10-04 18:01:07 |
合計ジャッジ時間 | 1,983 ms |
ジャッジサーバーID (参考情報) |
judge1 / judge5 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 3 |
other | AC * 27 |
ソースコード
#include <bits/stdc++.h> int main() { int n; scanf("%d", &n); int m; scanf("%d", &m); int c; scanf("%d", &c); puts(((n != 1 and m % 2 == 0) or (m != 1 and n % 2 == 0) or n * m == 2) ? "YES" : "NO"); return 0; }