結果

問題 No.1213 sio
ユーザー lam6er
提出日時 2025-04-16 15:30:59
言語 PyPy3
(7.3.15)
結果
WA  
実行時間 -
コード長 223 bytes
コンパイル時間 168 ms
コンパイル使用メモリ 81,964 KB
実行使用メモリ 53,988 KB
最終ジャッジ日時 2025-04-16 15:35:42
合計ジャッジ時間 2,230 ms
ジャッジサーバーID
(参考情報)
judge5 / judge2
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 4
other AC * 13 WA * 12
権限があれば一括ダウンロードができます

ソースコード

diff #

n, m = map(int, input().split())
total = (n * m) // 4
o_max = (n // 2) * (m // 2)
remaining = total - o_max

if remaining <= 0:
    print(0)
else:
    if n == 1 or m == 1:
        print(remaining)
    else:
        print(0)
0