[백준 알고리즘] 2675번 문자열 반복(Python 3, Java)
언어, 알고리즘 공부/백준2020. 2. 12. 15:42[백준 알고리즘] 2675번 문자열 반복(Python 3, Java)

n = int(input()) for i in range(n): P, S = input().split() for j in range(len(S)): print(S[j]*int(P), end='') print() import java.io.BufferedReader; import java.io.IOException; import java.io.InputStreamReader; import java.util.StringTokenizer; public class Main { public static void main(String[] args) throws IOException { BufferedReader br = new BufferedReader(new InputStreamReader(System.in));..

image