結果

問題 No.85 TVザッピング(1)
ユーザー c-yanc-yan
提出日時 2021-03-03 03:21:47
言語 Python3
(3.11.6 + numpy 1.26.0 + scipy 1.11.3)
結果
WA  
実行時間 -
コード長 174 bytes
コンパイル時間 111 ms
コンパイル使用メモリ 10,648 KB
実行使用メモリ 8,004 KB
最終ジャッジ日時 2023-07-26 16:01:39
合計ジャッジ時間 1,915 ms
ジャッジサーバーID
(参考情報)
judge13 / judge12
このコードへのチャレンジ(β)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 WA -
testcase_01 AC 15 ms
7,836 KB
testcase_02 AC 15 ms
7,936 KB
testcase_03 WA -
testcase_04 WA -
testcase_05 WA -
testcase_06 WA -
testcase_07 WA -
testcase_08 WA -
testcase_09 AC 15 ms
7,892 KB
testcase_10 AC 15 ms
7,804 KB
testcase_11 AC 15 ms
7,836 KB
testcase_12 AC 15 ms
7,852 KB
testcase_13 AC 15 ms
7,848 KB
testcase_14 AC 15 ms
7,964 KB
testcase_15 AC 16 ms
7,900 KB
testcase_16 AC 15 ms
7,860 KB
testcase_17 AC 15 ms
7,816 KB
testcase_18 AC 15 ms
7,848 KB
testcase_19 AC 15 ms
7,848 KB
testcase_20 AC 16 ms
7,876 KB
testcase_21 AC 15 ms
7,836 KB
testcase_22 WA -
testcase_23 AC 16 ms
7,976 KB
testcase_24 AC 15 ms
7,812 KB
testcase_25 AC 16 ms
7,824 KB
testcase_26 WA -
testcase_27 AC 15 ms
7,828 KB
testcase_28 AC 16 ms
7,840 KB
testcase_29 AC 15 ms
7,848 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

N, M, C = map(int, open(0).read().split())

if N > M:
    N, M = M, N

if N == 1 and M == 2:
    print('YES')
elif N % 2 + M % 2 == 0:
    print('YES')
else:
    print('NO')
0