結果
問題 | No.143 豆 |
ユーザー |
![]() |
提出日時 | 2019-12-18 09:22:11 |
言語 | Python3 (3.13.1 + numpy 2.2.1 + scipy 1.14.1) |
結果 |
AC
|
実行時間 | 30 ms / 1,000 ms |
コード長 | 326 bytes |
コンパイル時間 | 163 ms |
コンパイル使用メモリ | 12,672 KB |
実行使用メモリ | 10,880 KB |
最終ジャッジ日時 | 2024-07-23 11:22:55 |
合計ジャッジ時間 | 1,271 ms |
ジャッジサーバーID (参考情報) |
judge3 / judge1 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
other | AC * 17 |
ソースコード
input_list = list(map(int,input().split()))old_list = list(map(int,input().split()))k = input_list[0]n = input_list[1]f = input_list[2]need_bean = sum(old_list)possible_bean = k * nres = 0if possible_bean < need_bean:res = -1elif possible_bean >= need_bean:res = possible_bean - need_beanprint(res)