結果
問題 |
No.1047 Zero (Novice)
|
ユーザー |
![]() |
提出日時 | 2020-11-28 00:19:31 |
言語 | Python3 (3.13.1 + numpy 2.2.1 + scipy 1.14.1) |
結果 |
RE
|
実行時間 | - |
コード長 | 315 bytes |
コンパイル時間 | 97 ms |
コンパイル使用メモリ | 12,672 KB |
実行使用メモリ | 10,880 KB |
最終ジャッジ日時 | 2024-07-26 21:21:36 |
合計ジャッジ時間 | 1,446 ms |
ジャッジサーバーID (参考情報) |
judge2 / judge5 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | WA * 1 RE * 2 |
other | AC * 4 WA * 3 RE * 10 |
ソースコード
inputer = input() inputer_s = inputer.split(" ") a_num = int(inputer[0]) b_num = int(inputer[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)