본문 바로가기

프로그래밍/Baekjoon

(파이썬) 백준 알고리즘 2675번 문자열 반복

문제

풀이 (Python)

1
2
3
4
5
6
7
= int(input())
 
for i in range(T):
    R, S = input().split()
    for k in S:
        print(k*int(R), end=''
    print()
cs

문제 출처