목록Python/백준 (129)
가오리의 코딩일기
count = int(input()) num = list(map(int, input().split())) print(min(num), max(num))
num = int(input()) total = 0 for i in range(num+1): total += i print(total)
m, d = map(int, input().split()) day = 0 dayList = [31, 28, 31, 30, 31, 30, 31, 31, 30, 31, 30, 31] weekList = ["SUN", "MON", "TUE", "WED", "THU", "FRI", "SAT"] for i in range(m-1): day = day + dayList[i] day = (day+d) % 7 print(weekList[day])
n = int(input()) for i in range(1, 10): print('{} * {} = {}'.format(n, i, n*i)) n = int(input()) for i in range(1, 10): print(f"{n} * {i} = {n*i}")
a = input() for i in range(0, len(a), 10): print(a[i:i+10])
count = int(input()) num = list(input()) total = 0 for i in num: total += int(i) print(total)
while True: try: string = input() print(string) except: break