結果
| 問題 |
No.84 悪の算盤
|
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2016-04-16 18:50:47 |
| 言語 | Python2 (2.7.18) |
| 結果 |
WA
|
| 実行時間 | - |
| コード長 | 257 bytes |
| コンパイル時間 | 50 ms |
| コンパイル使用メモリ | 6,912 KB |
| 実行使用メモリ | 6,272 KB |
| 最終ジャッジ日時 | 2024-10-04 10:18:39 |
| 合計ジャッジ時間 | 660 ms |
|
ジャッジサーバーID (参考情報) |
judge1 / judge5 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 3 |
| other | AC * 9 WA * 1 |
ソースコード
# 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-1 else: res=(r*c+1)/2-1 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