結果
| 問題 | No.143 豆 |
| コンテスト | |
| ユーザー |
ktaya
|
| 提出日時 | 2019-01-10 22:04:22 |
| 言語 | PyPy3 (7.3.17) |
| 結果 |
AC
|
| 実行時間 | 26 ms / 1,000 ms |
| コード長 | 211 bytes |
| 記録 | |
| コンパイル時間 | 615 ms |
| コンパイル使用メモリ | 84,992 KB |
| 実行使用メモリ | 51,840 KB |
| 最終ジャッジ日時 | 2026-04-03 14:01:10 |
| 合計ジャッジ時間 | 1,617 ms |
|
ジャッジサーバーID (参考情報) |
judge2_0 / judge3_1 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| 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