알고리즘/백준 알고리즘
[백준] 백준 31994번 강당 대관 파이썬(Python)
츄르사려고 코딩하는 코집사입니다.1. [백준] 백준 31994번 강당 대관 파이썬(Python)1) 문제번호 : 31994번 2) 문제 출처https://www.acmicpc.net/problem/31994 2. 풀이- 이름과 값을 입력 받고, 신청자 수를 기준으로 오름차순 정렬하여 -1의 인덱스를 출력하면 된다. 3. 소스 코드import sysinput = sys.stdin.readlinesemi_list = []for i in range(7) : name, score = map(str, input().split()) score = int(score) semi_list.append([name, score])semi_list = sorted(semi_list, key = l..
2024. 7. 15.
최근댓글