結果
問題 | No.84 悪の算盤 |
ユーザー |
![]() |
提出日時 | 2015-09-20 21:15:41 |
言語 | Python2 (2.7.18) |
結果 |
AC
|
実行時間 | 12 ms / 5,000 ms |
コード長 | 167 bytes |
コンパイル時間 | 103 ms |
コンパイル使用メモリ | 6,912 KB |
実行使用メモリ | 6,528 KB |
最終ジャッジ日時 | 2024-10-13 08:56:16 |
合計ジャッジ時間 | 884 ms |
ジャッジサーバーID (参考情報) |
judge5 / judge2 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 3 |
other | AC * 10 |
ソースコード
# -*- coding: utf-8 -*-import mathR, C = map(long, raw_input().split())if R == C:print long((R * C + 3) / 4) - 1else:print long((R * C + 1) / 2) - 1