結果
| 問題 |
No.853 河原の石
|
| コンテスト | |
| ユーザー |
gew1fw
|
| 提出日時 | 2025-06-12 20:20:15 |
| 言語 | PyPy3 (7.3.15) |
| 結果 |
WA
|
| 実行時間 | - |
| コード長 | 165 bytes |
| コンパイル時間 | 221 ms |
| コンパイル使用メモリ | 81,864 KB |
| 実行使用メモリ | 53,884 KB |
| 最終ジャッジ日時 | 2025-06-12 20:20:34 |
| 合計ジャッジ時間 | 4,144 ms |
|
ジャッジサーバーID (参考情報) |
judge4 / judge5 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 2 |
| other | AC * 3 WA * 54 |
ソースコード
H, W = map(int, input().split())
if H == 0 or W == 0:
print(0)
else:
W = abs(W)
if H >= W:
print(H + (W - 1))
else:
print(2 * W - 1)
gew1fw