結果

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

ソースコード

diff #

gx,gy = map(int, input().split())
if gx == 0 and gy == 0:
    print(0)
    exit(0)
if gx == 0 or gy == 0 or abs(gx) == abs(gy):
    print(1)
    exit(0)
print(2)
0