結果

問題 No.643 Two Operations No.2
ユーザー 👑 rin204
提出日時 2022-01-19 21:06:45
言語 PyPy3
(7.3.15)
結果
AC  
実行時間 48 ms / 2,000 ms
コード長 156 bytes
コンパイル時間 244 ms
コンパイル使用メモリ 82,176 KB
実行使用メモリ 51,840 KB
最終ジャッジ日時 2024-11-23 14:04:01
合計ジャッジ時間 1,651 ms
ジャッジサーバーID
(参考情報)
judge1 / judge5
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
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