結果

問題 No.84 悪の算盤
ユーザー ytftytft
提出日時 2022-11-08 10:10:46
言語 PyPy3
(7.3.15)
結果
AC  
実行時間 76 ms / 5,000 ms
コード長 140 bytes
コンパイル時間 294 ms
コンパイル使用メモリ 86,928 KB
実行使用メモリ 71,524 KB
最終ジャッジ日時 2023-09-28 21:36:24
合計ジャッジ時間 2,062 ms
ジャッジサーバーID
(参考情報)
judge13 / judge14
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 74 ms
71,040 KB
testcase_01 AC 75 ms
71,312 KB
testcase_02 AC 73 ms
71,032 KB
testcase_03 AC 75 ms
71,508 KB
testcase_04 AC 74 ms
71,224 KB
testcase_05 AC 74 ms
71,524 KB
testcase_06 AC 75 ms
71,008 KB
testcase_07 AC 74 ms
71,188 KB
testcase_08 AC 76 ms
71,260 KB
testcase_09 AC 75 ms
71,276 KB
testcase_10 AC 75 ms
71,172 KB
testcase_11 AC 75 ms
71,172 KB
testcase_12 AC 74 ms
71,188 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

import sys
input=lambda:sys.stdin.readline().rstrip()
H,W=map(int,input().split())
if H==W:
	print((H**2+3)//4-1)
else:
	print((H*W+1)//2-1)
0