백준 10995번: 별찍기 - 20 #Python

ColorlessDia·2025년 2월 14일

algorithm/baekjoon

목록 보기
453/807
N = int(input())

for i in range(1, N + 1):
    line = (' *' * N) if i % 2 == 0 else ('* ' * N)[:-1]

    print(line)

0개의 댓글