結果

問題 No.84 悪の算盤
ユーザー lloyzlloyz
提出日時 2023-07-17 01:53:58
言語 Python3
(3.12.2 + numpy 1.26.4 + scipy 1.12.0)
結果
WA  
実行時間 -
コード長 163 bytes
コンパイル時間 213 ms
コンパイル使用メモリ 11,756 KB
実行使用メモリ 10,032 KB
最終ジャッジ日時 2023-10-17 23:52:52
合計ジャッジ時間 1,292 ms
ジャッジサーバーID
(参考情報)
judge15 / judge13
このコードへのチャレンジ
(要ログイン)

テストケース

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

ソースコード

diff #

r, c = map(int, input().split())

if r > c:
    r, c = c, r
ans = (r // 2) * c
if r % 2 == 1:
    ans += c // 2
    if c % 2 == 1:
        ans += 1
print(ans - 1)
0