http://www.cplusplus.com/reference/algorithm/minmax_element/?kw=minmax_element
에 보면
A pair with an iterator pointing to the element with the smallest value in the range [first,last)
as first element, and the largest as second. 라고 나와있네요.
15969번 - 행복
http://www.cplusplus.com/reference/algorithm/minmax_element/?kw=minmax_element
에 보면
A pair with an iterator pointing to the element with the smallest value in the range [first,last)
as first element, and the largest as second. 라고 나와있네요.
댓글을 작성하려면 로그인해야 합니다.
seecimi 4년 전
시간내서 질문글 읽어주셔서 감사합니다.
저는 auto p = minmax_element(scores.begin(),scores.end())를 통해 pair를 구해서 문제를 풀었습니다.
감사합니다.