문서 편집 권한이 없습니다. 다음 이유를 확인해주세요: 요청한 명령은 다음 권한을 가진 사용자에게 제한됩니다: 사용자. 문서의 원본을 보거나 복사할 수 있습니다. ==개요== ;<nowiki>Day 0: Mean, Median, and Mode</nowiki> ;<nowiki>0일차:</nowiki> [[평균]], [[중앙값]], [[최빈값]] * https://www.hackerrank.com/challenges/s10-basic-statistics/problem {{S10 헤더}} {{S10 0-1}} |} ==Python== <syntaxhighlight lang='Python'> import numpy as np from scipy import stats n = int(input()) nums = list(map(int, input().split())) print( np.mean(nums) ) print( np.median(nums) ) print( int(stats.mode(nums)[0]) ) # 43900.6 # 44627.5 # 4978 </syntaxhighlight> ==R== <syntaxhighlight lang='R'> a <- scan(file="stdin")[-1] cat( sum(a)/length(a), "\n" ) cat( median(a), "\n" ) cat( which.max(tabulate(a)), "\n" ) </syntaxhighlight> [[분류: 10 Days of Statistics]] 이 문서에서 사용한 틀: 틀:Ed (원본 보기) 틀:S10 0-1 (원본 보기) 틀:S10 헤더 (원본 보기) 틀:언어아이콘 (원본 보기) 틀:언어이미지 (원본 보기) S10 Day 0: Mean, Median, and Mode 문서로 돌아갑니다.