結果

問題 No.1047 Zero (Novice)
コンテスト
ユーザー cologne
提出日時 2025-11-18 15:34:09
言語 PyPy3
(7.3.15)
結果
AC  
実行時間 38 ms / 2,000 ms
コード長 254 bytes
コンパイル時間 302 ms
コンパイル使用メモリ 82,316 KB
実行使用メモリ 53,500 KB
最終ジャッジ日時 2025-11-18 15:34:12
合計ジャッジ時間 2,411 ms
ジャッジサーバーID
(参考情報)
judge1 / judge2
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 3
other AC * 17
権限があれば一括ダウンロードができます

ソースコード

diff #
raw source code

import sys


def input(): return sys.stdin.readline().rstrip('\n')


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