본문 바로가기
python-algorithm

백준 10188 Quadrilateral

by 무적김두칠 2022. 12. 23.

https://www.acmicpc.net/problem/10188

 

10188번: Quadrilateral

A quadrilateral is a 4-sided figure. For this program, print out a 4 sided figure using the capital letter X. The largest side will be 20, and the smallest side will be 1.

www.acmicpc.net

 

1
2
3
4
5
6
7
8
9
10
11
12
def sol(x, y):
    for _ in range(y):
        print('X'*x)
 
if __name__ == '__main__':
    n = int(input())
    for _ in range(n):
        x, y = map(int, input().split())
        sol(x, y)
        if _ != n-1:
            print()
            
cs
반응형

'python-algorithm' 카테고리의 다른 글

백준 6888 Terms of Office  (0) 2022.12.23
백준 26546 Reverse  (0) 2022.12.23
백준 26592 Triangle Height  (0) 2022.12.23
백준 26561 Population  (0) 2022.12.23
백준 26736 Wynik meczu  (0) 2022.12.23

댓글