본문 바로가기
python-algorithm

백준 15232 Rectangles

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

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

 

15232번: Rectangles

Read two integer numbers R and C from the standard input and then print R lines with C asterisks (*) each. Example (R=3, C=5): ***** ***** ***** Example (R=2, C=10): ********** **********

www.acmicpc.net

 

1
2
3
4
5
6
7
8
9
def sol(r,c):
    for _ in range(r):
        print('*'*(c))
 
if __name__ == '__main__':
    r = int(input())
    c = int(input())
    sol(r, c)
    
cs
반응형

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

백준 20673 Covid-19  (0) 2022.12.20
백준 21591 Laptop Sticker  (1) 2022.12.20
백준 26545 Mathematics  (0) 2022.12.19
백준 26574 Copier  (0) 2022.12.19
백준 10189 Hook  (0) 2022.12.19

댓글