재채점했습니다.
2108번 - 통계학
@startlink 이 예제의 경우 산술 평균에서 -0 (negative zero)도 정답 처리하거나, 0은 반드시 -0이 아닌 0으로 출력해야 한다고 문제 조건에 명시해야 하지 않을까요? 소수점 연산 표준인 IEEE 754 하에서 0은 -0 (negative zero)와 +0 (positive zero) 둘 다로 표현할 수 있고 동일한 값이라고 합니다:
https://en.wikipedia.org/wiki/...
According
to the IEEE 754 standard, negative zero and positive zero should
compare as equal with the usual (numerical) comparison operators, like
the == operators of C and Java.댓글을 작성하려면 로그인해야 합니다.
bjh3502 4년 전 2
제출번호: 28182553
input:
3
0
0
-1
output:
0
0
0
1