結果

問題 No.643 Two Operations No.2
ユーザー 👑 KazunKazun
提出日時 2020-10-15 19:41:31
言語 PyPy3
(7.3.15)
結果
AC  
実行時間 66 ms / 2,000 ms
コード長 144 bytes
コンパイル時間 240 ms
コンパイル使用メモリ 87,016 KB
実行使用メモリ 71,436 KB
最終ジャッジ日時 2023-09-28 01:17:13
合計ジャッジ時間 2,012 ms
ジャッジサーバーID
(参考情報)
judge11 / judge13
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 62 ms
71,328 KB
testcase_01 AC 64 ms
71,256 KB
testcase_02 AC 62 ms
71,160 KB
testcase_03 AC 62 ms
71,244 KB
testcase_04 AC 62 ms
71,264 KB
testcase_05 AC 66 ms
71,436 KB
testcase_06 AC 61 ms
71,156 KB
testcase_07 AC 62 ms
71,076 KB
testcase_08 AC 62 ms
71,364 KB
testcase_09 AC 66 ms
71,284 KB
testcase_10 AC 63 ms
71,252 KB
testcase_11 AC 62 ms
71,432 KB
testcase_12 AC 61 ms
71,400 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

X,Y=map(int,input().split())

if X==Y:
    print(0)
elif Y==0:
    print(1)
elif X==0:
    print(2)
elif Y==-X:
    print(3)
else:
    print(-1)
0