結果
| 問題 |
No.143 豆
|
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2025-10-10 13:03:11 |
| 言語 | PyPy3 (7.3.15) |
| 結果 |
AC
|
| 実行時間 | 37 ms / 1,000 ms |
| コード長 | 174 bytes |
| コンパイル時間 | 406 ms |
| コンパイル使用メモリ | 82,900 KB |
| 実行使用メモリ | 54,124 KB |
| 最終ジャッジ日時 | 2025-10-10 13:03:13 |
| 合計ジャッジ時間 | 2,230 ms |
|
ジャッジサーバーID (参考情報) |
judge5 / judge1 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| other | AC * 17 |
ソースコード
k,n,f = map(int,input().split())
a = list(map(int,input().split()))
age = 0
eat = k*n
for i in range(f):
age += a[i]
if age <= eat:
print(eat-age)
else:
print(-1)