728x90 ๋ฐ์ํ 25621 [Python] ์ค๋์ ๋ฐฑ์ค 10818, 2562๋ฒ ์ ๋ต ๋ฐฑ์ค 10818๋ฒ #10818 ๋ด์ฅํจ์๋ฅผ ์ฌ์ฉํ๋ ๊ฒฝ์ฐ count = int(input()) nums = list(map(int, input().split())) print(max(nums), min(nums)) #10818 ๋ด์ฅํจ์ ์ฌ์ฉ ์ํ๋ ๊ฒฝ์ฐ count = int(input()) nums = list(map(int, input().split())) max = nums[0] min = nums[0] for i in nums[1:]: if i>max: max = i elif i ํด์งํต 2021. 10. 22. ์ด์ 1 ๋ค์ ๐ฒ ์ถ์ฒ ๊ธ 728x90 ๋ฐ์ํ