結果

問題 No.853 河原の石
ユーザー gew1fw
提出日時 2025-06-12 20:16:23
言語 PyPy3
(7.3.15)
結果
WA  
実行時間 -
コード長 116 bytes
コンパイル時間 233 ms
コンパイル使用メモリ 82,128 KB
実行使用メモリ 53,628 KB
最終ジャッジ日時 2025-06-12 20:18:38
合計ジャッジ時間 4,115 ms
ジャッジサーバーID
(参考情報)
judge2 / judge4
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 2
other AC * 2 WA * 55
権限があれば一括ダウンロードができます

ソースコード

diff #

H, W = map(int, input().split())
abs_W = abs(W)
if H >= abs_W:
    print(2 * abs_W)
else:
    print(2 * (abs_W - H))
0