結果

問題 No.643 Two Operations No.2
ユーザー tails1434tails1434
提出日時 2020-01-29 07:35:01
言語 PyPy3
(7.3.15)
結果
WA  
実行時間 -
コード長 255 bytes
コンパイル時間 267 ms
コンパイル使用メモリ 87,000 KB
実行使用メモリ 71,648 KB
最終ジャッジ日時 2023-10-13 22:47:06
合計ジャッジ時間 2,225 ms
ジャッジサーバーID
(参考情報)
judge15 / judge11
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 WA -
testcase_01 AC 70 ms
71,312 KB
testcase_02 AC 70 ms
71,272 KB
testcase_03 AC 69 ms
71,252 KB
testcase_04 WA -
testcase_05 AC 65 ms
71,056 KB
testcase_06 AC 68 ms
71,404 KB
testcase_07 AC 67 ms
71,252 KB
testcase_08 AC 69 ms
71,100 KB
testcase_09 WA -
testcase_10 AC 67 ms
71,480 KB
testcase_11 WA -
testcase_12 WA -
権限があれば一括ダウンロードができます

ソースコード

diff #

def main():
    X, Y = map(int, input().split())
    if X == Y:
        print(0)
    elif X == 0:
        print(1)
    elif Y == 0:
        print(2)
    elif X == -Y:
        print(3)
    else:
        print(-1)   



if __name__ == "__main__":
    main()
0