結果

問題 No.531 エヌスクミ島の平和協定
ユーザー JunOnuma
提出日時 2017-06-26 19:03:04
言語 Python2
(2.7.18)
結果
AC  
実行時間 12 ms / 2,000 ms
コード長 120 bytes
コンパイル時間 432 ms
コンパイル使用メモリ 6,912 KB
実行使用メモリ 6,272 KB
最終ジャッジ日時 2024-09-19 16:26:07
合計ジャッジ時間 1,612 ms
ジャッジサーバーID
(参考情報)
judge1 / judge2
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 2
other AC * 37
権限があれば一括ダウンロードができます

ソースコード

diff #

n,m = map(int, raw_input().split())
if m >= n:
    print 1
elif n % 2 == 0 and m >= n/2:
    print 2
else:
    print -1
0