結果

問題 No.531 エヌスクミ島の平和協定
ユーザー rocoderrocoder
提出日時 2017-08-08 19:55:00
言語 Python3
(3.12.2 + numpy 1.26.4 + scipy 1.12.0)
結果
RE  
実行時間 -
コード長 133 bytes
コンパイル時間 109 ms
コンパイル使用メモリ 12,416 KB
実行使用メモリ 10,752 KB
最終ジャッジ日時 2024-04-20 05:16:10
合計ジャッジ時間 1,934 ms
ジャッジサーバーID
(参考情報)
judge2 / judge1
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 24 ms
10,496 KB
testcase_01 AC 27 ms
10,624 KB
testcase_02 AC 28 ms
10,624 KB
testcase_03 AC 25 ms
10,624 KB
testcase_04 AC 25 ms
10,752 KB
testcase_05 AC 27 ms
10,752 KB
testcase_06 AC 26 ms
10,496 KB
testcase_07 RE -
testcase_08 AC 26 ms
10,624 KB
testcase_09 AC 25 ms
10,624 KB
testcase_10 AC 27 ms
10,624 KB
testcase_11 AC 26 ms
10,624 KB
testcase_12 AC 25 ms
10,752 KB
testcase_13 AC 25 ms
10,624 KB
testcase_14 RE -
testcase_15 RE -
testcase_16 AC 25 ms
10,624 KB
testcase_17 RE -
testcase_18 AC 23 ms
10,624 KB
testcase_19 RE -
testcase_20 AC 24 ms
10,624 KB
testcase_21 RE -
testcase_22 AC 26 ms
10,752 KB
testcase_23 RE -
testcase_24 AC 25 ms
10,496 KB
testcase_25 RE -
testcase_26 RE -
testcase_27 AC 25 ms
10,624 KB
testcase_28 RE -
testcase_29 AC 24 ms
10,624 KB
testcase_30 AC 25 ms
10,752 KB
testcase_31 AC 24 ms
10,496 KB
testcase_32 AC 24 ms
10,496 KB
testcase_33 RE -
testcase_34 RE -
testcase_35 AC 24 ms
10,624 KB
testcase_36 RE -
testcase_37 AC 25 ms
10,624 KB
testcase_38 AC 26 ms
10,624 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

#Nskmi
n,m=(int(i) for i in input().split())
if m>=n:
    p=1
elif n%2==1:
    p=-1
else:
    n//=2
    if n<=m:
        p=2
print(p)
0