結果

問題 No.1047 Zero (Novice)
ユーザー StarMatyan
提出日時 2020-11-28 00:22:08
言語 Python3
(3.13.1 + numpy 2.2.1 + scipy 1.14.1)
結果
WA  
実行時間 -
コード長 319 bytes
コンパイル時間 404 ms
コンパイル使用メモリ 12,544 KB
実行使用メモリ 10,880 KB
最終ジャッジ日時 2024-07-26 21:21:57
合計ジャッジ時間 1,637 ms
ジャッジサーバーID
(参考情報)
judge4 / judge2
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 3
other AC * 11 WA * 6
権限があれば一括ダウンロードができます

ソースコード

diff #

inputer = input()
inputer_s = inputer.split(" ")

a_num = int(inputer_s[0])
b_num = int(inputer_s[1])
result = 0

if b_num==0:
	result = 1
elif a_num == 0:
	result = -1
else:
	if b_num > 0:
		if a_num < 0:
			result=2
		else:
			result=-1
	elif b_num < 0:
		if a_num > 0:
			result=2
		else:
			result=-1

print(result)
0