結果

問題 No.84 悪の算盤
ユーザー あかりきあかりき
提出日時 2021-02-08 13:33:49
言語 PyPy3
(7.3.15)
結果
WA  
実行時間 -
コード長 80 bytes
コンパイル時間 1,513 ms
コンパイル使用メモリ 86,852 KB
実行使用メモリ 71,432 KB
最終ジャッジ日時 2023-09-19 03:35:32
合計ジャッジ時間 3,460 ms
ジャッジサーバーID
(参考情報)
judge15 / judge13
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 74 ms
71,432 KB
testcase_01 AC 75 ms
71,196 KB
testcase_02 WA -
testcase_03 AC 73 ms
71,340 KB
testcase_04 AC 74 ms
71,380 KB
testcase_05 WA -
testcase_06 WA -
testcase_07 AC 74 ms
71,280 KB
testcase_08 AC 73 ms
71,312 KB
testcase_09 AC 74 ms
71,284 KB
testcase_10 AC 72 ms
71,040 KB
testcase_11 AC 72 ms
71,012 KB
testcase_12 AC 73 ms
71,108 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

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