def solution(n):
    num = 0
    for i in range(1, n+1):
        if n % i == 0:
            num += i
    return num

def solution(s):
    if s.lower().count("p") == s.lower().count("y"):
        return True
    else:
        return False

def solution(seoul):
    idx = seoul.index('Kim')
    answer = "김서방은 {}에 있다".format(idx)
    return answer

def solution(n):
    answer = '수박'
    if n%2 == 0:
        answer *= n // 2
    else:
        answer *= n        
        answer = answer[:n]
    return answer

+ Recent posts