結果

問題 No.531 エヌスクミ島の平和協定
ユーザー motomiya_kmotomiya_k
提出日時 2017-06-23 22:39:45
言語 Python3
(3.11.6 + numpy 1.26.0 + scipy 1.11.3)
結果
WA  
実行時間 -
コード長 131 bytes
コンパイル時間 490 ms
コンパイル使用メモリ 10,640 KB
実行使用メモリ 8,016 KB
最終ジャッジ日時 2023-07-28 04:31:35
合計ジャッジ時間 2,378 ms
ジャッジサーバーID
(参考情報)
judge13 / judge11
このコードへのチャレンジ(β)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 15 ms
7,932 KB
testcase_01 WA -
testcase_02 WA -
testcase_03 AC 15 ms
7,832 KB
testcase_04 WA -
testcase_05 WA -
testcase_06 WA -
testcase_07 WA -
testcase_08 WA -
testcase_09 WA -
testcase_10 AC 15 ms
7,836 KB
testcase_11 WA -
testcase_12 AC 15 ms
7,828 KB
testcase_13 AC 15 ms
7,868 KB
testcase_14 WA -
testcase_15 WA -
testcase_16 WA -
testcase_17 WA -
testcase_18 AC 15 ms
7,816 KB
testcase_19 WA -
testcase_20 AC 16 ms
7,844 KB
testcase_21 WA -
testcase_22 AC 16 ms
7,868 KB
testcase_23 WA -
testcase_24 AC 15 ms
7,816 KB
testcase_25 WA -
testcase_26 WA -
testcase_27 AC 15 ms
7,788 KB
testcase_28 WA -
testcase_29 AC 15 ms
7,896 KB
testcase_30 AC 15 ms
7,816 KB
testcase_31 AC 15 ms
7,856 KB
testcase_32 AC 15 ms
7,788 KB
testcase_33 WA -
testcase_34 WA -
testcase_35 AC 15 ms
7,936 KB
testcase_36 WA -
testcase_37 AC 15 ms
7,900 KB
testcase_38 AC 15 ms
7,960 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

n, m = list(map(int,input().split()))
if n % 2 == 1:
    print(-1)
    exit
elif n <= m:
    print(1)
else:
    
    print(n/m + 1)
0