반응형

제출한 코드
a,b=map(float,input().split())
c = 1000/b*a
num = int(input())
for i in range(num):
a,b=map(float,input().split())
if c>1000/b*a :
c = 1000/b*a
print(round(c,2))
결과

후기
반응형
'BQJ 백준 > python' 카테고리의 다른 글
[Python/파이썬] 백준 2869번: 달팽이는 올라가고 싶다 (0) | 2024.07.11 |
---|---|
[Python/파이썬] 백준 2845번: 파티가 끝나고 난 뒤 (0) | 2024.07.09 |
[Python/파이썬] 백준 2753번: 윤년 (0) | 2024.07.09 |
[Python/파이썬] 백준 2752번: 세수정렬 (0) | 2024.07.09 |
[Python/파이썬] 백준 2751번: 수 정렬하기 2 (0) | 2024.07.09 |