結果

問題 No.1047 Zero (Novice)
ユーザー LyricalMaestro
提出日時 2025-04-12 16:27:10
言語 PyPy3
(7.3.15)
結果
AC  
実行時間 37 ms / 2,000 ms
コード長 247 bytes
コンパイル時間 406 ms
コンパイル使用メモリ 82,712 KB
実行使用メモリ 53,788 KB
最終ジャッジ日時 2025-04-12 16:27:13
合計ジャッジ時間 2,155 ms
ジャッジサーバーID
(参考情報)
judge3 / judge2
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 3
other AC * 17
権限があれば一括ダウンロードができます

ソースコード

diff #

## https://yukicoder.me/problems/no/806


def main():
    A, B = map(int, input().split())

    if B == 0:
        print(1)
    elif A == -1:
        print(2)
    else:
        print(-1)


                




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