← 返回 meta 的题目列表Calculate Maximum Possible Score from Read Books
类型:online_judge
Given a list of books that a student read, each book has a score. Calculate the maximum possible score. Write a function def max_possible_score(books: List[int]) -> int: where books is a list of integers representing the scores of the books. Output is an integer representing the maximum possible score.
Example:
Input: [5, 3, 8, 6]
Output: 22
Input: [1, 2]
Output: 3
Example
Input
5
5 3 8 6