Recent posts

1003번: 피보나치 함수

less than 1 minute read

python ```python fibos = [0, 1] def get_fibo(n): try: return fibos[n] except IndexError: temp = get_fibo(n - 1) + get_fibo(n - 2) ...

1002번: 터렛

less than 1 minute read

python T = int(input()) for _ in range(T): x1, y1, r1, x2, y2, r2 = [int(x) for x in input().split()] dist = ((x1 - x2) ** 2 + (y1 - y2) ** 2) ** 0.5...

21314번: 민겸 수

less than 1 minute read

python n = list(input()) min_ = '' max_ = '' cnt = 0 for ch in n: if ch == 'K': max_ += '5' + '0' * cnt min_ += '5' cnt = 0 e...