编程介的小学生 2017-11-12 04:05 采纳率: 20.5%
浏览 376
已结题

Doing Physics Experiment

Problem Description
As far as Samuel is concerned,physics is very dull and doing the physics experiment is a waste of time. So Samuel only got a passing score in the experiment this semester. Dealing with the figures that get from the experiment requires a lot of energy and time,and it is not valuable to do it by press the calculator to get answer. So Samuel and his roommates often make up a program to work it out. Can you help Samuel make a program?
The problem is not hard. You only need to figure out the average M of n number(double type x1,x2,x3...xn) (the precision set as 10).

Input
test cases t,each of a test case contains a number n(an integer) and n figures(double type).

Output
Output the average M by “The average M = m.”here m is a number.

Sample Input
1
3 1.0 1.2 1.1

Sample Output
The average M = 1.1000000000.

  • 写回答

0条回答

    报告相同问题?

    悬赏问题

    • ¥15 如何用stata画出文献中常见的安慰剂检验图
    • ¥15 c语言链表结构体数据插入
    • ¥40 使用MATLAB解答线性代数问题
    • ¥15 COCOS的问题COCOS的问题
    • ¥15 FPGA-SRIO初始化失败
    • ¥15 MapReduce实现倒排索引失败
    • ¥15 ZABBIX6.0L连接数据库报错,如何解决?(操作系统-centos)
    • ¥15 找一位技术过硬的游戏pj程序员
    • ¥15 matlab生成电测深三层曲线模型代码
    • ¥50 随机森林与房贷信用风险模型