結果

問題 No.143 豆
ユーザー MrEMGration
提出日時 2019-03-24 16:23:47
言語 PyPy3
(7.3.15)
結果
AC  
実行時間 39 ms / 1,000 ms
コード長 157 bytes
コンパイル時間 220 ms
コンパイル使用メモリ 82,160 KB
実行使用メモリ 53,836 KB
最終ジャッジ日時 2024-07-23 11:10:59
合計ジャッジ時間 1,583 ms
ジャッジサーバーID
(参考情報)
judge1 / judge3
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
other AC * 17
権限があれば一括ダウンロードができます

ソースコード

diff #

K,N,F=map(int,input().split())
mame=K*N

age=list(map(int,input().split()))
agesum=sum(age)

if agesum<=mame:
    print(mame-agesum)
else:
    print("-1")


0