結果
| 問題 |
No.853 河原の石
|
| コンテスト | |
| ユーザー |
gew1fw
|
| 提出日時 | 2025-06-12 14:57:34 |
| 言語 | PyPy3 (7.3.15) |
| 結果 |
WA
|
| 実行時間 | - |
| コード長 | 165 bytes |
| コンパイル時間 | 351 ms |
| コンパイル使用メモリ | 82,196 KB |
| 実行使用メモリ | 53,988 KB |
| 最終ジャッジ日時 | 2025-06-12 14:58:54 |
| 合計ジャッジ時間 | 3,880 ms |
|
ジャッジサーバーID (参考情報) |
judge5 / judge2 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| 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