結果

問題 No.643 Two Operations No.2
ユーザー kept1994kept1994
提出日時 2021-09-01 02:03:06
言語 PyPy3
(7.3.15)
結果
WA  
実行時間 -
コード長 300 bytes
コンパイル時間 912 ms
コンパイル使用メモリ 87,188 KB
実行使用メモリ 71,432 KB
最終ジャッジ日時 2023-08-17 17:08:53
合計ジャッジ時間 2,301 ms
ジャッジサーバーID
(参考情報)
judge15 / judge13
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 72 ms
70,964 KB
testcase_01 AC 72 ms
70,804 KB
testcase_02 AC 72 ms
71,052 KB
testcase_03 AC 77 ms
71,224 KB
testcase_04 AC 73 ms
70,720 KB
testcase_05 AC 73 ms
70,936 KB
testcase_06 WA -
testcase_07 AC 73 ms
71,104 KB
testcase_08 WA -
testcase_09 AC 72 ms
71,044 KB
testcase_10 AC 74 ms
71,256 KB
testcase_11 AC 75 ms
70,848 KB
testcase_12 AC 74 ms
71,184 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

#!/usr/bin/env python3
import sys

def main():
    X, Y = map(int, input().split())
    if X == Y:
        print(0)
        return
    if X == 0:
        print(2)
        return
    if Y == 0:
        print(1)
        return
    print(-1)
    return
   
        
if __name__ == '__main__':
    main()
0