結果

問題 No.143 豆
コンテスト
ユーザー zhongcunyonggui57-hue
提出日時 2025-11-17 01:03:26
言語 Python3
(3.13.1 + numpy 2.2.1 + scipy 1.14.1)
結果
AC  
実行時間 32 ms / 1,000 ms
コード長 188 bytes
コンパイル時間 352 ms
コンパイル使用メモリ 12,032 KB
実行使用メモリ 10,496 KB
最終ジャッジ日時 2025-11-17 01:03:28
合計ジャッジ時間 1,901 ms
ジャッジサーバーID
(参考情報)
judge4 / judge1
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
other AC * 17
権限があれば一括ダウンロードができます

ソースコード

diff #

list1 = list(map(int, input().split()))
K = list1[0]
N = list1[1]
F = list1[2]
list2 = list(map(int, input().split()))
if K*N >= sum(list2):
    print(K*N - sum(list2))
else:
    print(-1)
0