結果

問題 No.853 河原の石
ユーザー gew1fw
提出日時 2025-06-12 14:59:30
言語 PyPy3
(7.3.15)
結果
WA  
実行時間 -
コード長 116 bytes
コンパイル時間 143 ms
コンパイル使用メモリ 82,224 KB
実行使用メモリ 54,116 KB
最終ジャッジ日時 2025-06-12 15:00:13
合計ジャッジ時間 3,897 ms
ジャッジサーバーID
(参考情報)
judge3 / judge5
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
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