結果

問題 No.1213 sio
ユーザー gew1fw
提出日時 2025-06-12 15:10:13
言語 PyPy3
(7.3.15)
結果
WA  
実行時間 -
コード長 211 bytes
コンパイル時間 392 ms
コンパイル使用メモリ 82,360 KB
実行使用メモリ 53,568 KB
最終ジャッジ日時 2025-06-12 15:10:25
合計ジャッジ時間 2,184 ms
ジャッジサーバーID
(参考情報)
judge5 / judge1
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 4
other AC * 13 WA * 12
権限があれば一括ダウンロードができます

ソースコード

diff #

# Read input
N, M = map(int, input().split())

# Calculate the maximum number of tetrominoes
K = (N * M) // 4

# Determine the minimal number of I tetrominoes
if N == 1 or M == 1:
    print(K)
else:
    print(0)
0