302154: CF409G. On a plane
Memory Limit:256 MB
Time Limit:1 S
Judge Style:Text Compare
Creator:
Submit:0
Solved:0
Description
On a plane
题意翻译
### 题目背景 CodeForces 2013年愚人节题目。 ### 题目要求 给出一系列坐标(X,Y),求Y的平均值与5的和。 ### 输入格式 第一行一个整数n(1<=<=1000),第2到第n+1行,每行两个浮点数X和Y(-1000<=X,Y<=1000)。 ### 输出格式 1行,1个单精度实数θ,θ=5+Average(Y),θ和标准答案的差不应超过0.01。题目描述
输入输出格式
输入格式
The first line contains a single integer $ n $ ( $ 1<=n<=1000 $ ) — the number of points on a plane. Each of the next $ n $ lines contains two real coordinates $ x_{i} $ and $ y_{i} $ of the ![](https://cdn.luogu.com.cn/upload/vjudge_pic/CF409G/4e41900c48c1a26bf8cd28fb9f929c5f68b17f87.png) point, specified with exactly 2 fractional digits. All coordinates are between $ -1000 $ and $ 1000 $ , inclusive.
输出格式
Output a single real number $ θ $ — the answer to the problem statement. The absolute or relative error of your answer should be at most $ 10^{-2} $ .
输入输出样例
输入样例 #1
8
-2.14 2.06
-1.14 2.04
-2.16 1.46
-2.14 0.70
-1.42 0.40
-0.94 -0.48
-1.42 -1.28
-2.16 -1.62
输出样例 #1
5.410
输入样例 #2
5
2.26 1.44
2.28 0.64
2.30 -0.30
1.58 0.66
3.24 0.66
输出样例 #2
5.620
输入样例 #3
8
6.98 2.06
6.40 1.12
5.98 0.24
5.54 -0.60
7.16 0.30
7.82 1.24
8.34 0.24
8.74 -0.76
输出样例 #3
5.480
输入样例 #4
5
10.44 2.06
10.90 0.80
11.48 -0.48
12.06 0.76
12.54 2.06
输出样例 #4
6.040
输入样例 #5
8
16.94 2.42
15.72 2.38
14.82 1.58
14.88 0.50
15.76 -0.16
16.86 -0.20
17.00 0.88
16.40 0.92
输出样例 #5
6.040
输入样例 #6
7
20.62 3.00
21.06 2.28
21.56 1.36
21.66 0.56
21.64 -0.52
22.14 2.32
22.62 3.04
输出样例 #6
6.720