AVG - AVERAGE

no tags 

Problem: AVERAGE

Problem Statement:

Given n numbers find the average of them.

 

Input:

The first line consists of an integer t, the number of test cases. Each test case consists of 2 lines. In each test case the first line consists of an integer n, the count of numbers. The next line consists of n integers.

Output:

For each test case print the average of the numbers without decimal places

 

Sample Input:

2

5

1 2 3 4 5

3

2 1 1

 

Sample Output:

3

1


hide comments
pacocaballo1: 2016-09-28 16:09:50

Ez code

dsr: 2015-04-21 07:33:54

Easy! Got Ac in first time!


Added by:cegprakash
Date:2011-03-06
Time limit:0.100s
Source limit:50000B
Memory limit:1536MB
Cluster: Cube (Intel G860)
Languages:ASM32-GCC MAWK GAWK BC C-CLANG C CPP C++ 4.3.2 CPP14-CLANG CPP14 COBOL COFFEE D-DMD D-CLANG DART ELIXIR FANTOM FORTH GOSU GRV JAVA JS-MONKEY KTLN NIM NODEJS OBJC OBJC-CLANG OCT PICO PROLOG PYPY PY_NBC R RACKET RUST CHICKEN SED SQLITE SWIFT UNLAMBDA VB.NET