結果

問題 No.1047 Zero (Novice)
ユーザー brthyyjpbrthyyjp
提出日時 2020-05-08 21:33:30
言語 PyPy3
(7.3.15)
結果
AC  
実行時間 70 ms / 2,000 ms
コード長 114 bytes
コンパイル時間 264 ms
コンパイル使用メモリ 86,588 KB
実行使用メモリ 71,248 KB
最終ジャッジ日時 2023-09-17 01:58:32
合計ジャッジ時間 2,515 ms
ジャッジサーバーID
(参考情報)
judge12 / judge11
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 68 ms
71,104 KB
testcase_01 AC 66 ms
71,108 KB
testcase_02 AC 65 ms
71,244 KB
testcase_03 AC 67 ms
71,136 KB
testcase_04 AC 64 ms
71,248 KB
testcase_05 AC 66 ms
71,092 KB
testcase_06 AC 67 ms
71,100 KB
testcase_07 AC 66 ms
71,208 KB
testcase_08 AC 67 ms
71,152 KB
testcase_09 AC 64 ms
71,056 KB
testcase_10 AC 63 ms
70,920 KB
testcase_11 AC 66 ms
70,796 KB
testcase_12 AC 67 ms
71,164 KB
testcase_13 AC 66 ms
71,108 KB
testcase_14 AC 66 ms
71,024 KB
testcase_15 AC 66 ms
71,092 KB
testcase_16 AC 67 ms
71,208 KB
testcase_17 AC 68 ms
71,176 KB
testcase_18 AC 68 ms
71,056 KB
testcase_19 AC 70 ms
71,204 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

a, b = map(int, input().split())
if b == 0:
    print(1)
    exit()

if a == -1:
    print(2)
else:
    print(-1)
0