結果

問題 No.84 悪の算盤
ユーザー あかりきあかりき
提出日時 2021-02-08 13:36:33
言語 PyPy3
(7.3.15)
結果
AC  
実行時間 77 ms / 5,000 ms
コード長 85 bytes
コンパイル時間 804 ms
コンパイル使用メモリ 86,936 KB
実行使用メモリ 71,140 KB
最終ジャッジ日時 2023-09-19 03:40:38
合計ジャッジ時間 2,756 ms
ジャッジサーバーID
(参考情報)
judge11 / judge14
このコードへのチャレンジ(β)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 73 ms
70,708 KB
testcase_01 AC 74 ms
71,012 KB
testcase_02 AC 75 ms
71,140 KB
testcase_03 AC 74 ms
70,960 KB
testcase_04 AC 75 ms
71,068 KB
testcase_05 AC 73 ms
70,552 KB
testcase_06 AC 77 ms
70,800 KB
testcase_07 AC 76 ms
70,872 KB
testcase_08 AC 75 ms
70,792 KB
testcase_09 AC 75 ms
70,960 KB
testcase_10 AC 76 ms
71,016 KB
testcase_11 AC 75 ms
70,792 KB
testcase_12 AC 77 ms
71,084 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

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