← 返回 linkedin 的题目列表Data Coding Interview Questions
类型:online_judge
linkedin
Write a Python program that takes a list of n integers as input, outputs the average of these integers, and prints all integers that are below the average. The input can be up to 100,000 integers.
Input format:
The first line contains an integer n, denoting the number of integers.
The second line contains n integers separated by spaces.
Output format:
Output a single line with a floating-point number representing the average, rounded to two decimal places.
Output each integer below the average on a new line, maintaining the input order.
Example
Input
5
1 2 3 4 5