結果

問題 No.84 悪の算盤
ユーザー ytftytft
提出日時 2022-11-08 10:10:44
言語 PyPy3
(7.3.15)
結果
AC  
実行時間 80 ms / 5,000 ms
コード長 140 bytes
コンパイル時間 464 ms
コンパイル使用メモリ 87,116 KB
実行使用メモリ 71,564 KB
最終ジャッジ日時 2023-09-28 21:36:22
合計ジャッジ時間 2,497 ms
ジャッジサーバーID
(参考情報)
judge15 / judge11
このコードへのチャレンジ(β)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 79 ms
71,300 KB
testcase_01 AC 80 ms
71,416 KB
testcase_02 AC 80 ms
71,432 KB
testcase_03 AC 80 ms
71,248 KB
testcase_04 AC 79 ms
71,192 KB
testcase_05 AC 80 ms
71,252 KB
testcase_06 AC 78 ms
71,308 KB
testcase_07 AC 78 ms
71,256 KB
testcase_08 AC 76 ms
71,344 KB
testcase_09 AC 80 ms
71,564 KB
testcase_10 AC 79 ms
71,440 KB
testcase_11 AC 78 ms
71,192 KB
testcase_12 AC 79 ms
71,228 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