結果

問題 No.1047 Zero (Novice)
ユーザー koba-e964koba-e964
提出日時 2020-05-10 10:53:49
言語 PyPy3
(7.3.15)
結果
AC  
実行時間 74 ms / 2,000 ms
コード長 224 bytes
コンパイル時間 388 ms
コンパイル使用メモリ 87,172 KB
実行使用メモリ 71,444 KB
最終ジャッジ日時 2023-09-21 12:57:30
合計ジャッジ時間 3,064 ms
ジャッジサーバーID
(参考情報)
judge11 / judge15
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 69 ms
71,200 KB
testcase_01 AC 70 ms
71,300 KB
testcase_02 AC 68 ms
71,252 KB
testcase_03 AC 74 ms
71,356 KB
testcase_04 AC 70 ms
71,384 KB
testcase_05 AC 70 ms
71,416 KB
testcase_06 AC 69 ms
71,192 KB
testcase_07 AC 69 ms
71,240 KB
testcase_08 AC 68 ms
71,172 KB
testcase_09 AC 70 ms
71,300 KB
testcase_10 AC 69 ms
71,292 KB
testcase_11 AC 70 ms
71,336 KB
testcase_12 AC 69 ms
71,048 KB
testcase_13 AC 69 ms
71,300 KB
testcase_14 AC 67 ms
71,184 KB
testcase_15 AC 67 ms
71,300 KB
testcase_16 AC 68 ms
71,444 KB
testcase_17 AC 69 ms
71,200 KB
testcase_18 AC 68 ms
71,092 KB
testcase_19 AC 69 ms
71,384 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

#!/usr/bin/env python3

import sys
readline = sys.stdin.buffer.readline
sys.setrecursionlimit(10 ** 7)

a, b = map(int, readline().split())

if b == 0:
    print(1)
    exit()

if a == -1:
    print(2)
    exit()

print(-1)
0