Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- from math import ceil
- students = int(input())
- lectures = int(input())
- bonus = int(input())
- attendances = []
- max_bonus = 0
- for i in range(students):
- attendances.append(int(input()))
- print(f"Max Bonus: {ceil(max(attendances) / lectures * (5 + bonus)) if lectures > 0 else 0}.\n"
- f"The student has attended {max(attendances) if len(attendances) > 0 else 0} lectures.")
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement