結果
問題 |
No.143 豆
|
ユーザー |
![]() |
提出日時 | 2018-10-14 17:08:08 |
言語 | Python3 (3.13.1 + numpy 2.2.1 + scipy 1.14.1) |
結果 |
AC
|
実行時間 | 31 ms / 1,000 ms |
コード長 | 189 bytes |
コンパイル時間 | 183 ms |
コンパイル使用メモリ | 12,672 KB |
実行使用メモリ | 10,880 KB |
最終ジャッジ日時 | 2024-07-23 11:05:06 |
合計ジャッジ時間 | 1,419 ms |
ジャッジサーバーID (参考情報) |
judge1 / judge3 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
other | AC * 17 |
ソースコード
K, N, F = [int(i) for i in input().split()] A = [int(i) for i in input().split()] beans = K * N needs = sum(A) remind = beans - needs if remind >= 0: print(remind) else: print(-1)