結果
| 問題 | 
                            No.84 悪の算盤
                             | 
                    
| コンテスト | |
| ユーザー | 
                             rlangevin
                         | 
                    
| 提出日時 | 2023-01-16 08:53:14 | 
| 言語 | PyPy3  (7.3.15)  | 
                    
| 結果 | 
                             
                                AC
                                 
                             
                            
                         | 
                    
| 実行時間 | 45 ms / 5,000 ms | 
| コード長 | 221 bytes | 
| コンパイル時間 | 270 ms | 
| コンパイル使用メモリ | 81,792 KB | 
| 実行使用メモリ | 51,968 KB | 
| 最終ジャッジ日時 | 2024-12-30 11:22:41 | 
| 合計ジャッジ時間 | 1,780 ms | 
| 
                            ジャッジサーバーID (参考情報)  | 
                        judge1 / judge5 | 
(要ログイン)
| ファイルパターン | 結果 | 
|---|---|
| sample | AC * 3 | 
| other | AC * 10 | 
ソースコード
R, C = map(int, input().split())
if R == C:
    if R % 2:
        print((R * C - 1)//4)
    else:
        print(R * C // 4 - 1)
else:
    if R * C % 2:
        print((R * C - 1)//2)
    else:
        print(R * C // 2 - 1)
            
            
            
        
            
rlangevin