백준 11721 열 개씩 끊어 출력하기
-
boj)11721 - 열 개씩 끊어 출력하기PS/boj 2020. 11. 5. 14:40
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 import java.io.*; public class boj_11721 { static BufferedReader br = new BufferedReader(new InputStreamReader(System.in)); public static void main(String[] args) throws IOException { String str = br.readLine(); int length = str.length(); while (length >= 10) { String substring = str.substring(0, 10); System.out.println(substring); str = str.sub..