結果

問題 No.143 豆
ユーザー _manji0
提出日時 2022-01-14 01:54:57
言語 PyPy3
(7.3.15)
結果
AC  
実行時間 40 ms / 1,000 ms
コード長 145 bytes
コンパイル時間 187 ms
コンパイル使用メモリ 82,396 KB
実行使用メモリ 53,648 KB
最終ジャッジ日時 2024-11-18 05:45:16
合計ジャッジ時間 1,558 ms
ジャッジサーバーID
(参考情報)
judge2 / judge4
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
other AC * 17
権限があれば一括ダウンロードができます

ソースコード

diff #

K, N, F = [ int(i) for i in input().split() ]

A = [ int(i) for i in input().split() ]

As = sum(A)
Bs = K*N

print(Bs-As if Bs-As >= 0 else -1)
0