結果
| 問題 | No.84 悪の算盤 |
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2016-04-16 18:54:18 |
| 言語 | PyPy2 (7.3.15) |
| 結果 |
WA
|
| 実行時間 | - |
| コード長 | 253 bytes |
| 記録 | |
| コンパイル時間 | 155 ms |
| コンパイル使用メモリ | 77,492 KB |
| 最終ジャッジ日時 | 2025-12-03 20:26:23 |
|
ジャッジサーバーID (参考情報) |
judge2 / judge1 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 2 WA * 1 |
| other | AC * 8 WA * 2 |
ソースコード
# coding: utf-8 #yuki_84 r,c=map(int,raw_input().split()) if r%2 and c%2: if r==1 and c==1: res=0 elif r==c: res=(r*c+1)/4 else: res=(r*c+1)/2 else: if r==2 and c==2: res=0 elif r==c: res=(r*c+1)/4-1 else: res=(r*c+1)/2-1 print res