結果
| 問題 |
No.143 豆
|
| コンテスト | |
| ユーザー |
ktaya
|
| 提出日時 | 2019-01-10 22:04:22 |
| 言語 | PyPy3 (7.3.15) |
| 結果 |
AC
|
| 実行時間 | 36 ms / 1,000 ms |
| コード長 | 211 bytes |
| コンパイル時間 | 228 ms |
| コンパイル使用メモリ | 82,856 KB |
| 実行使用メモリ | 53,824 KB |
| 最終ジャッジ日時 | 2024-07-23 11:07:20 |
| 合計ジャッジ時間 | 1,500 ms |
|
ジャッジサーバーID (参考情報) |
judge3 / judge5 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| other | AC * 17 |
ソースコード
k, n, f = input().split()
beans_total = int(k) * int(n)
years = [int(i) for i in input().split()]
years_total = sum(years)
if beans_total < years_total:
print(-1)
else:
print(beans_total - years_total)
ktaya