結果

問題 No.643 Two Operations No.2
ユーザー 👑 rin204rin204
提出日時 2022-01-19 21:06:45
言語 PyPy3
(7.3.15)
結果
AC  
実行時間 72 ms / 2,000 ms
コード長 156 bytes
コンパイル時間 500 ms
コンパイル使用メモリ 86,800 KB
実行使用メモリ 71,372 KB
最終ジャッジ日時 2023-08-15 08:09:37
合計ジャッジ時間 2,368 ms
ジャッジサーバーID
(参考情報)
judge15 / judge11
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 61 ms
71,056 KB
testcase_01 AC 60 ms
71,048 KB
testcase_02 AC 61 ms
71,144 KB
testcase_03 AC 61 ms
71,372 KB
testcase_04 AC 60 ms
71,144 KB
testcase_05 AC 61 ms
71,292 KB
testcase_06 AC 62 ms
71,036 KB
testcase_07 AC 60 ms
71,136 KB
testcase_08 AC 60 ms
71,048 KB
testcase_09 AC 60 ms
71,028 KB
testcase_10 AC 63 ms
71,188 KB
testcase_11 AC 72 ms
71,136 KB
testcase_12 AC 62 ms
71,340 KB
権限があれば一括ダウンロードができます

ソースコード

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