CS & Algorithm(26)
-
[프로그래머스] Lv.0 문자열 반복해서 출력하기
✏️ 문제 https://school.programmers.co.kr/learn/courses/30/lessons/181950 Python a, b = input().strip().split(' ') b = int(b) print(a*b) JAVA 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(); System.out.println(str.repeat(n)); } }
2023.12.02 -
[프로그래머스] Lv.0 문자열 출력하기
✏️ 문제 Python str = input() print(str) Java import java.util.Scanner; public class Solution { public static void main(String[] args) { Scanner sc = new Scanner(System.in); String a = sc.next(); System.out.println(a); } }
2023.12.02