반응형
SMALL
import java.util.*;
class Main {
public static void main(String[] args) {
Scanner sc = new Scanner(System.in);
int a = sc.nextInt();
for(int i = 0 ; i < a ; i++){
int b = sc.nextInt();
String c = sc.next();
for(int j = 0 ; j < c.length() ; j++){
for(int k = 0 ; k < b ; k ++){
System.out.print(c.charAt(j));
}
}
System.out.println();
}
}
}
반응형
LIST
'JAVA > JAVA baekjoon' 카테고리의 다른 글
백준 2292번 벌집 (0) | 2023.08.18 |
---|---|
백준 10798 글자 세로로 읽기 (0) | 2023.08.18 |
2차원 배열 max, 행, 열 찾기 (0) | 2023.08.16 |
색종이 (0) | 2023.08.16 |
진법 변환 (0) | 2023.08.16 |