MapleStory Finger Point

๐Ÿƒ‍โ™‚๏ธBaekjoon/Python

#10818 - python

HYEJU01 2024. 4. 13. 01:54

 

N = int(input())
A = list(map(int,input().split()))
print(min(A),max(A))

 

 

 

<< ์‚ฌ์šฉ๋œ ํ•จ์ˆ˜ >>

๐Ÿ”” max(list) : ๋ฆฌ์ŠคํŠธ ๋‚ด๋ถ€์—์„œ ์ตœ๋Œ“๊ฐ’์„ ์ฐพ์•„์„œ ๋ฆฌํ„ดํ•ด์ค€๋‹ค.

๋ฆฌ์ŠคํŠธ๋ฅผ ์‚ฌ์šฉํ•˜์ง€ ์•Š์•„๋„ ๋œ๋‹ค.!

ex) max(1,2,3,4) 

 

๐Ÿ”” min(list) : ์ตœ์†Ÿ๊ฐ’

๐Ÿ”” sum(list) : ๋ชจ๋‘ ๋”ํ•œ๋‹ค.