알고리즘
[알고리즘] 파이썬 메모
MapleLiberty
2022. 5. 13. 08:39
입력 받아들이기
a,b,c = map(int, input.split())
nums = list(map(int, input.split())
입력 개수 = int(input())
for _ in range(N):
각 입력 = int(input())
~
무한, ∞: float("inf")
-무한, -∞: float("-inf")
array: [(1,2), (3,4), (5,6)] 일 때
array.sort(key=lambda x: x[0])
array.sort(key=lambda x: x[1])