結果

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

ソースコード

diff #

k,n,f = map(int, raw_input().split())
s = sum(map(int, raw_input().split()))
if k*n < s:
    print -1
else:
    print k*n-s
0