#B. 输出奇偶数之平均数

    Type: Default 1000ms 256MiB

输出奇偶数之平均数

You cannot submit for this problem because the contest is ended. You can click "Open in Problem Set" to view this problem in normal mode.

题目描述

利用for循环,分别输出1~n之间的所有奇数的平均值、所有偶数的平均值。

输入描述

一行,一个整数n,1≤n≤100。

输出描述

一行,两个浮点数(用一个空格隔开),分别表示奇数之平均值(精确到小数点后2位)、偶数之平均值(精确到小数点后3位)。

10
5.00 6.000

模拟题

Not Claimed
Status
Done
Problem
3
Open Since
2025-11-14 0:00
Deadline
2025-11-23 23:59
Extension
24 hour(s)