結果
問題 | No.84 悪の算盤 |
ユーザー |
👑 ![]() |
提出日時 | 2022-01-10 05:37:50 |
言語 | PyPy3 (7.3.15) |
結果 |
WA
|
実行時間 | - |
コード長 | 247 bytes |
コンパイル時間 | 161 ms |
コンパイル使用メモリ | 82,172 KB |
実行使用メモリ | 53,164 KB |
最終ジャッジ日時 | 2024-11-14 10:42:00 |
合計ジャッジ時間 | 1,435 ms |
ジャッジサーバーID (参考情報) |
judge5 / judge1 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 3 |
other | AC * 9 WA * 1 |
ソースコード
def is_odd(x): return x%2==1 R,C=map(int,input().split()) X=0 if R!=C: if is_odd(R) and is_odd(C): X=(R*C-1)//2+1 else: X=R*C//2 else: if is_odd(R): X=(R-1)**2//4+1 else: X=R**2//4 print(X-1)