본문 바로가기
python-algorithm

백준 17010 Time to Decompress

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

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

 

17010번: Time to Decompress

The output should be L lines long. Each line should contain the decoding of the corresponding line of the input. Specifically, if line i+1 of the input contained N x, then line i of the output should contain just the character x printed N times.

www.acmicpc.net

 

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

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

백준 4806 줄 세기  (0) 2022.12.26
백준 17094 Serious Problem  (0) 2022.12.26
백준 18883 N M 찍기  (0) 2022.12.26
백준 5354 J박스  (0) 2022.12.26
백준 26767 Hurra!  (0) 2022.12.26

댓글