結果

問題 No.143 豆
ユーザー ゆめぷろゆめぷろ
提出日時 2021-03-30 15:27:35
言語 Python3
(3.13.1 + numpy 2.2.1 + scipy 1.14.1)
結果
RE  
実行時間 -
コード長 166 bytes
コンパイル時間 94 ms
コンパイル使用メモリ 12,416 KB
実行使用メモリ 10,752 KB
最終ジャッジ日時 2024-11-30 13:44:02
合計ジャッジ時間 1,359 ms
ジャッジサーバーID
(参考情報)
judge2 / judge1
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
other RE * 17
権限があれば一括ダウンロードができます

ソースコード

diff #

k, n, f = map(int, input().split())
An = list(int, input().split())
sum_age= sum(An)
beans = k * n
if beans < sum_age:
    print(-1)
else :
    print(beans - sum_age)
0