티스토리 뷰
반응형
top_consume_amount = int(0)
top_consume_university = ""
t = int(input())
for a in range(t):
n = int(input())
for b in range(n):
university, consume = input().split(' ')
if(int(consume) > int(top_consume_amount)):
top_consume_university, top_consume_amount = university, consume
print(top_consume_university)
https://www.acmicpc.net/problem/11557
11557번: Yangjojang of The Year
입학 OT때 누구보다도 남다르게 놀았던 당신은 자연스럽게 1학년 과대를 역임하게 되었다. 타교와의 조인트 엠티를 기획하려는 당신은 근처에 있는 학교 중 어느 학교가 술을 가장 많이 먹는지
www.acmicpc.net
'C, C++ > Baekjoon Online Judge' 카테고리의 다른 글
백준 boj 10250 ACM 호텔 python (1) | 2023.11.26 |
---|---|
백준 boj 25035 영수증 python (0) | 2023.11.26 |
Baekjoon 백준 2747, 2748, 10870번 피보나치 수 (0) | 2022.04.25 |
Baekjoon 백준 2884번 알람 시계 (0) | 2022.04.24 |
Baekjoon 백준 10828번 스택 (0) | 2022.04.24 |
댓글
티스토리 방명록
최근에 올라온 글
최근에 달린 댓글
- Total
- Today
- Yesterday
Blog is powered by
Tistory / Designed by
Tistory
Contact: j0n9m1n1@gmail.com
Contact: j0n9m1n1@gmail.com