結果
| 問題 | No.1047 Zero (Novice) |
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2020-05-08 22:02:54 |
| 言語 | PyPy3 (7.3.17) |
| 結果 |
AC
|
| 実行時間 | 31 ms / 2,000 ms |
| コード長 | 185 bytes |
| 記録 | |
| コンパイル時間 | 179 ms |
| コンパイル使用メモリ | 85,504 KB |
| 実行使用メモリ | 53,632 KB |
| 最終ジャッジ日時 | 2026-03-25 08:41:48 |
| 合計ジャッジ時間 | 1,555 ms |
|
ジャッジサーバーID (参考情報) |
judge3_0 / judge1_1 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 3 |
| other | AC * 17 |
ソースコード
import sys
input = sys.stdin.readline
from collections import *
A, B = map(int, input().split())
if B==0:
print(1)
else:
if A==-1:
print(2)
else:
print(-1)