結果

問題 No.143 豆
ユーザー steek79
提出日時 2015-10-11 14:05:09
言語 Python2
(2.7.18)
結果
AC  
実行時間 13 ms / 1,000 ms
コード長 264 bytes
コンパイル時間 93 ms
コンパイル使用メモリ 7,040 KB
実行使用メモリ 6,944 KB
最終ジャッジ日時 2024-07-23 10:22:25
合計ジャッジ時間 981 ms
ジャッジサーバーID
(参考情報)
judge2 / judge1
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
other AC * 17
権限があれば一括ダウンロードができます

ソースコード

diff #

nums = raw_input().split()
ages = raw_input().split()

K = int(nums[0])
L = int(nums[1])
#F = int(nums[2])
ages = map(int, ages)

ans = -1

mame_exist = K * L
mame_needed = sum(ages)

if mame_exist - mame_needed >=0 :
    ans = mame_exist - mame_needed

print ans
0