結果

問題 No.84 悪の算盤
ユーザー 👑 colognecologne
提出日時 2022-01-26 19:34:08
言語 PyPy3
(7.3.15)
結果
WA  
実行時間 -
コード長 244 bytes
コンパイル時間 374 ms
コンパイル使用メモリ 86,944 KB
実行使用メモリ 71,656 KB
最終ジャッジ日時 2023-08-25 01:43:01
合計ジャッジ時間 1,994 ms
ジャッジサーバーID
(参考情報)
judge11 / judge15
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 66 ms
71,656 KB
testcase_01 AC 63 ms
71,584 KB
testcase_02 AC 61 ms
71,328 KB
testcase_03 AC 62 ms
71,584 KB
testcase_04 AC 62 ms
71,588 KB
testcase_05 AC 62 ms
71,404 KB
testcase_06 WA -
testcase_07 AC 64 ms
71,548 KB
testcase_08 AC 63 ms
71,360 KB
testcase_09 AC 61 ms
71,392 KB
testcase_10 AC 61 ms
71,408 KB
testcase_11 AC 63 ms
71,588 KB
testcase_12 AC 66 ms
71,556 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

import sys


def input(): return sys.stdin.readline().rstrip()


def main():
    R, C = map(int, input().split())
    if R == C:
        print(((R+1)//2)**2 - 1)
    else:
        print((R*C+1) // 2 - 1)


if __name__ == '__main__':
    main()
0