백준/Python

#2562 백준 파이썬 최댓값

BigBee 2022. 1. 26. 20:04

https://www.acmicpc.net/problem/2562

 

- Answer - 

 

b = []
for i in range(9):
    a = int(input())
    b.append(a)

index = 0
for j in range(len(b)):
    if max(b) == b[j]:
        index = j+1

print(max(b),index, sep="\n")

 

- 일기 - 

재미졌습니다. 추가로 괜찮아 보이는 해결 코드 공유합니다.

이분은 짧고 간결하게 멋지게 짜신것 같아요

https://claude-u.tistory.com/104