Logo
(追記) (追記ここまで)

18400번 - DISPER 다국어

시간 제한메모리 제한제출정답맞힌 사람정답 비율
2 초 512 MB159171615.534%

문제

The university of “AAA” is interested to investigate and evaluate their performance of professors. They are interested to know who has the less consistency. For this purpose, the university needs to find an approach so that it considers the contribution of all marks of students over a single mark. The University found that the variance of the marks can help them find who has the less consistency. In general, the less consistency has the high dispersion. The highest mark a student can have is limited to 100, moreover, all students have exactly the same number of curses. Additionally, for any students who have missed the course the mark considered to be the lowest possible mark. Variance Formula:

In this formula x shows different mark, represents the mean value of mark. N stands for number of marks.

σ = Σ(x - μ)2 / N

입력

First line contains the number of test cases (T): 1 ≤ T ≤ 100

Second line indicates the number of professors to be evaluated. P ranges 1 ≤ P ≤ 30 Therefore, next P lines contain the marks for each professor separated by ", ".

Each mark M is an integer (0 ≤ M ≤ 100)

출력

The Pth professor with less consistency and its dispersion score with accuracy of 2 decimal points separated by tab.

제한

예제 입력 1

1
2
2, 4, 8, 6, 10, 12
2, 4, 8, 6, 10, 2

예제 출력 1

1	11.67

힌트

출처

ICPC > Regionals > Asia West Continent > Afghanistan > ICPC Asia Kabul Regional Contest 2019 9번

(追記) (追記ここまで)

출처

대학교 대회

  • 사업자 등록 번호: 541-88-00682
  • 대표자명: 최백준
  • 주소: 서울시 서초구 서초대로74길 29 서초파라곤 412호
  • 전화번호: 02-521-0487 (이메일로 연락 주세요)
  • 이메일: contacts@startlink.io
  • 통신판매신고번호: 제 2017-서울서초-2193 호

AltStyle によって変換されたページ (->オリジナル) /