結果

問題 No.643 Two Operations No.2
ユーザー brthyyjp
提出日時 2021-11-16 14:18:14
言語 PyPy3
(7.3.15)
結果
AC  
実行時間 39 ms / 2,000 ms
コード長 156 bytes
コンパイル時間 225 ms
コンパイル使用メモリ 82,024 KB
実行使用メモリ 53,184 KB
最終ジャッジ日時 2024-12-17 12:55:25
合計ジャッジ時間 1,388 ms
ジャッジサーバーID
(参考情報)
judge3 / judge4
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
other AC * 13
権限があれば一括ダウンロードができます

ソースコード

diff #

x, y = map(int, input().split())
if x == y:
    print(0)
elif y == 0:
    print(1)
elif x == 0:
    print(2)
elif x == -y:
    print(3)
else:
    print(-1)
0