結果
問題 |
No.84 悪の算盤
|
ユーザー |
|
提出日時 | 2016-04-16 18:54:18 |
言語 | Python2 (2.7.18) |
結果 |
WA
|
実行時間 | - |
コード長 | 253 bytes |
コンパイル時間 | 183 ms |
コンパイル使用メモリ | 6,912 KB |
実行使用メモリ | 6,824 KB |
最終ジャッジ日時 | 2024-10-04 10:18:44 |
合計ジャッジ時間 | 772 ms |
ジャッジサーバーID (参考情報) |
judge4 / 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