import java.util.Scanner;
public class Solution {
public static void main(String[] args) {
Scanner sc = new Scanner(System.in);
String str = sc.next();
int n = sc.nextInt();
String result = str.repeat(n);
System.out.println(result);
sc.close();
}
}
String result = str.repeat(n);
System.out.println(result);
sc.close(); 추가
'Engineering > Backend Core' 카테고리의 다른 글
| 코딩테스트 연습 - 특수문자 출력하기 (0) | 2025.09.30 |
|---|---|
| 코딩테스트 연습 - 대소문자 바꿔서 출력하기 (0) | 2025.09.30 |
| 코딩테스트 연습 - a와 b 출력하기 (0) | 2025.09.25 |
| 코딩테스트 연습 - 문자열 출력 (0) | 2025.09.25 |
| 코딩연습 PCCE 기출문제 1번 (0) | 2025.09.25 |