結果

問題 No.3108 Luke or Bishop
ユーザー detteiuu
提出日時 2025-04-18 20:03:12
言語 PyPy3
(7.3.15)
結果
AC  
実行時間 40 ms / 2,000 ms
コード長 198 bytes
コンパイル時間 305 ms
コンパイル使用メモリ 82,500 KB
実行使用メモリ 53,736 KB
最終ジャッジ日時 2025-04-18 20:03:15
合計ジャッジ時間 2,578 ms
ジャッジサーバーID
(参考情報)
judge2 / judge4
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 2
other AC * 26
権限があれば一括ダウンロードができます

ソースコード

diff #

GX, GY = map(int, input().split())

ans = 1<<60
if GX == 0 and GY == 0:
    ans = 0
elif GX == 0 or GY == 0:
    ans = 1
else:
    ans = 2
if GX == GY or -GX == GY:
    ans = min(ans, 1)

print(ans)
0