結果

問題 No.3108 Luke or Bishop
ユーザー FP1uto
提出日時 2025-04-19 04:11:30
言語 Python3
(3.13.1 + numpy 2.2.1 + scipy 1.14.1)
結果
WA  
実行時間 -
コード長 236 bytes
コンパイル時間 358 ms
コンパイル使用メモリ 11,904 KB
実行使用メモリ 10,368 KB
最終ジャッジ日時 2025-04-19 04:11:33
合計ジャッジ時間 2,647 ms
ジャッジサーバーID
(参考情報)
judge1 / judge4
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 2
other AC * 25 WA * 1
権限があれば一括ダウンロードができます

ソースコード

diff #

a=input()
gx,gy=a.split(" ")
gx=int(gx)
gy=int(gy)
def run(gx,gy):
    if gx==0 and gy==0:
        return 1
    if gx==0 or gy==0:
        return 1
    if gx==gy or gx==-gy:
        return 1
    else:
        return 2

print(run(gx,gy))
0