-Code
for t in range(int(input())):
e, a = map(int, input().split())
print(f"Data Set {t + 1}:")
if e <= a:
print("no drought")
else:
n = -1
temp = e / a
while temp > 1:
temp /= 5
n += 1
print("mega " * n + "drought")
print()
'Beakjoon&프로그래머스 > 파이썬' 카테고리의 다른 글
[백준/파이썬] 9945번 Centroid of Point Masses (0) | 2025.02.04 |
---|---|
[백준/파이썬] 1213번 팰린드롬 만들기 (0) | 2025.02.03 |
[백준/파이썬] 33191번 Yalda (1) | 2025.02.01 |
[백준/파이썬] 33179번 Hezardastan’s Annual Report (0) | 2025.01.31 |
[백준/파이썬] 33166번 鉄道旅行 3 (Railway Trip 3) (0) | 2025.01.30 |