結果

問題 No.1047 Zero (Novice)
ユーザー mesame3993mesame3993
提出日時 2021-11-18 22:06:05
言語 PyPy3
(7.3.15)
結果
AC  
実行時間 72 ms / 2,000 ms
コード長 179 bytes
コンパイル時間 1,534 ms
コンパイル使用メモリ 86,792 KB
実行使用メモリ 71,476 KB
最終ジャッジ日時 2023-08-27 16:34:15
合計ジャッジ時間 2,769 ms
ジャッジサーバーID
(参考情報)
judge12 / judge14
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 72 ms
71,260 KB
testcase_01 AC 69 ms
71,384 KB
testcase_02 AC 69 ms
71,344 KB
testcase_03 AC 68 ms
71,240 KB
testcase_04 AC 68 ms
71,248 KB
testcase_05 AC 69 ms
71,380 KB
testcase_06 AC 69 ms
71,120 KB
testcase_07 AC 71 ms
71,140 KB
testcase_08 AC 71 ms
71,132 KB
testcase_09 AC 68 ms
71,136 KB
testcase_10 AC 70 ms
71,260 KB
testcase_11 AC 71 ms
71,204 KB
testcase_12 AC 71 ms
71,264 KB
testcase_13 AC 69 ms
71,368 KB
testcase_14 AC 70 ms
71,388 KB
testcase_15 AC 69 ms
71,476 KB
testcase_16 AC 70 ms
70,992 KB
testcase_17 AC 70 ms
71,384 KB
testcase_18 AC 69 ms
71,300 KB
testcase_19 AC 70 ms
71,272 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

def main():
  from sys import stdin
  readline=stdin.readline
  a,b = map(int, input().split())
  if b == 0:
    print(1)
  elif a == -1:
    print(2)
  else:
    print(-1)
main()
0