結果
| 問題 | No.143 豆 |
| コンテスト | |
| ユーザー |
ktaya
|
| 提出日時 | 2019-01-10 22:04:22 |
| 言語 | PyPy3 (7.3.23) |
| 結果 |
MLE
(最新)
AC
(最初)
|
| 実行時間 | - |
| コード長 | 211 bytes |
| 記録 | |
| コンパイル時間 | 1,793 ms |
| コンパイル使用メモリ | 95,716 KB |
| 実行使用メモリ | 79,104 KB |
| 最終ジャッジ日時 | 2026-08-24 00:20:11 |
| 合計ジャッジ時間 | 3,328 ms |
|
ジャッジサーバーID (参考情報) |
judge3_1 / judge2_0 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| other | MLE * 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