백준 (54) 썸네일형 리스트형 백준 2442 파이썬 n = int(input()) for i in range(n): print(' '*(n-i-1)+'*'*(((i+1)*2)-1)) 백준 2441 파이썬 n = int(input()) for i in range(n): print(' '*i+'*'*(n-i)) 백준 2440 파이썬 n = int(input()) for i in range(n): print('*'*(n-i)) 백준 2439 파이썬 n = int(input()) for i in range(1, n+1): print(" "*(n-i) + "*"*i) 백준 2163 파이썬 N, M = map(int, input().split()) print(N-1 + (M-1)*N) 백준 2010 파이썬 import sys n = int(sys.stdin.readline()) sum = 0 for i in range(n): sum += int(sys.stdin.readline()) print(sum - (n - 1)) 백준 1964 파이썬 n=int(input()) dot=5 inc=7 for i in range(1,n): dot += inc inc +=3 print(dot%45678) 백준 1598 파이썬 n = int(input()) li=[] for i in range(n): print('*'*(i+1)) 백준 1547 파이썬 N = int(input()) cups = [1,2,3] for _ in range(N): x, y = map(int, input().split()) xi = cups.index(x) yi = cups.index(y) cups[xi], cups[yi] = cups[yi], cups[xi] print(cups[0]) 백준 1284 파이썬 n = int(input()) s = list(map(int,input().split())) y = 0 m = 0 for i in s: y += i // 30 * 10 + 10 m += i // 60 * 15 + 15 if y m: print('M %d' % m) else: print('Y M %d' % y)li.append(count) 이전 1 2 3 4 5 6 다음