結果

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

ソースコード

diff #

l = map(int, raw_input().split(' '))
K = l[0]
N = l[1]
F = l[2]
A = map(int, raw_input().split(' '))
result = K * N - sum(A)
if result < 0:
    print('-1')
else:
    print(str(result))
0