← 返回 microsoft 的题目列表Simple Data Processing Task
类型:online_judge
Write a program to read input data, perform simple processing, and output the processed result. Assume the input is a set of integers, compute and output their average value.
Example input: 1 2 3 4 5 Example output: 3.0
Requirements:
The input data is a single line containing integers separated by spaces.
Output a single float representing the average of the input integers.
The code should handle any number of integer inputs.
Do not use external libraries like NumPy.
Example
Input
1 2 3 4 5