結果

問題 No.84 悪の算盤
ユーザー あかりきあかりき
提出日時 2021-02-08 13:42:53
言語 PyPy3
(7.3.13)
結果
AC  
実行時間 77 ms / 5,000 ms
コード長 87 bytes
コンパイル時間 295 ms
コンパイル使用メモリ 86,716 KB
実行使用メモリ 71,276 KB
最終ジャッジ日時 2023-09-19 03:47:18
合計ジャッジ時間 2,383 ms
ジャッジサーバーID
(参考情報)
judge14 / judge12
このコードへのチャレンジ(β)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 72 ms
71,244 KB
testcase_01 AC 70 ms
70,920 KB
testcase_02 AC 71 ms
71,144 KB
testcase_03 AC 77 ms
70,952 KB
testcase_04 AC 71 ms
71,276 KB
testcase_05 AC 70 ms
71,160 KB
testcase_06 AC 71 ms
71,232 KB
testcase_07 AC 73 ms
71,236 KB
testcase_08 AC 72 ms
70,960 KB
testcase_09 AC 72 ms
70,752 KB
testcase_10 AC 72 ms
71,048 KB
testcase_11 AC 72 ms
71,260 KB
testcase_12 AC 71 ms
71,104 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

r,c=map(int,input().split())
if r==c:
  print((r*c+3)//4-1)
else:
  print((r*c+1)//2-1)
0