結果

問題 No.994 ばらばらコイン
ユーザー convexineqconvexineq
提出日時 2020-02-21 21:32:07
言語 Python3
(3.13.1 + numpy 2.2.1 + scipy 1.14.1)
結果
AC  
実行時間 105 ms / 2,000 ms
コード長 303 bytes
コンパイル時間 155 ms
コンパイル使用メモリ 12,672 KB
実行使用メモリ 29,516 KB
最終ジャッジ日時 2024-10-08 21:14:23
合計ジャッジ時間 2,471 ms
ジャッジサーバーID
(参考情報)
judge3 / judge5
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
other AC * 23
権限があれば一括ダウンロードができます

ソースコード

diff #

# coding: utf-8
# Your code here!

import sys
readline = sys.stdin.readline
read = sys.stdin.read

#n,*a = [int(i) for i in read().split()]
#a = [int(i) for i in readline().split()]
#n = int(input())


n,k,*mm = [int(i) for i in read().split()]

if k > n:
    print(-1)
    exit()

else:
    print(k-1)
0