結果

問題 No.84 悪の算盤
ユーザー kutsutamakutsutama
提出日時 2018-12-21 01:09:33
言語 Python3
(3.12.2 + numpy 1.26.4 + scipy 1.12.0)
結果
AC  
実行時間 28 ms / 5,000 ms
コード長 180 bytes
コンパイル時間 92 ms
コンパイル使用メモリ 11,780 KB
実行使用メモリ 10,016 KB
最終ジャッジ日時 2023-10-26 01:14:40
合計ジャッジ時間 1,195 ms
ジャッジサーバーID
(参考情報)
judge11 / judge14
このコードへのチャレンジ(β)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 28 ms
10,016 KB
testcase_01 AC 27 ms
10,016 KB
testcase_02 AC 28 ms
10,016 KB
testcase_03 AC 27 ms
10,016 KB
testcase_04 AC 27 ms
10,016 KB
testcase_05 AC 25 ms
10,016 KB
testcase_06 AC 26 ms
10,016 KB
testcase_07 AC 25 ms
10,016 KB
testcase_08 AC 26 ms
10,016 KB
testcase_09 AC 25 ms
10,016 KB
testcase_10 AC 24 ms
10,016 KB
testcase_11 AC 26 ms
10,016 KB
testcase_12 AC 26 ms
10,016 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

r, c = [int(x) for x in input().split()]

d = 2
if r == c:
    d = 4
rc = r * c
state = 0
if rc % 2 == 0:
    state = rc // d
else:
    state = rc // d + 1
k = state - 1

print(k)
0