파이썬/백준41 10872번 : 팩토리얼 # 팩토리얼 n = int(input()) a = 1 for i in range(1, n+1): a *= i print(a) 2022. 6. 19. 10871번 : X보다 작은 수 # X보다 작은 수 N, X = map(int, input().split()) ls = list(map(int, input().split())) result = [] for i in ls: if i < X: result.append(i) print(*result) 2022. 6. 18. 10991번 : 별찍기-16 # 별찍기-16 n = int(input()) j = n-1 for i in range(1, n+1): print((" "*j)+("* "*i)) j -= 1 2022. 6. 17. 10995번 : 별 찍기 - 20 # 별찍기-20 n = int(input()) for i in range(n): if i % 2 != 0: print(" *"*n) else: print("* "*n) 2022. 6. 16. 이전 1 ··· 3 4 5 6 7 8 9 ··· 11 다음