結果
| 問題 | 
                            No.531 エヌスクミ島の平和協定
                             | 
                    
| コンテスト | |
| ユーザー | 
                             | 
                    
| 提出日時 | 2018-07-09 22:12:32 | 
| 言語 | Python3  (3.13.1 + numpy 2.2.1 + scipy 1.14.1)  | 
                    
| 結果 | 
                             
                                WA
                                 
                             
                            
                         | 
                    
| 実行時間 | - | 
| コード長 | 149 bytes | 
| コンパイル時間 | 290 ms | 
| コンパイル使用メモリ | 12,416 KB | 
| 実行使用メモリ | 10,624 KB | 
| 最終ジャッジ日時 | 2024-07-17 13:19:18 | 
| 合計ジャッジ時間 | 2,664 ms | 
| 
                            ジャッジサーバーID (参考情報)  | 
                        judge1 / judge2 | 
(要ログイン)
| ファイルパターン | 結果 | 
|---|---|
| sample | AC * 1 WA * 1 | 
| other | AC * 36 WA * 1 | 
ソースコード
s = input()
n, m = [int(i) for i in s.split(" ")]
if m > n:
  print(1)
elif n % 2 == 1:
  print(-1)
elif m < (n // 2):
  print(-1)
else:
  print(2)