[프로그래머스 Lv1] 직사각형 별찍기 / 파이썬 Python

Gayoung Lee·2022년 5월 17일
0

Algorithm

목록 보기
1/39

문제

https://programmers.co.kr/learn/courses/30/lessons/12969

풀이

n, m=map(int,input().split())

for i in range(m):
    for j in range(n):
        print('*', end='')
    print()

다른 사람의 풀이

a, b = map(int, input().strip().split(' '))
answer = ('*'*a +'\n')*b
print(answer)
profile
삽질하며 성장하는 gayoungee

0개의 댓글