백준9093

nextInt() 사용 후 nextLine() 사용 지양 nextLine: 줄바꿈 바로 다음부터 입력받음 nextInt: 한 토큰을 입력받은 후 \n를 제거하지않음, nextInt 사용 후 nextLine를 사용시, String에 \n가 저장되는 문제 발생 package com.company; import java.io.BufferedWriter; import java.io.IOException; import java.io.OutputStreamWriter; import java.util.*; public class BOJ9093 { public static void main(String[] args) throws IOException { Scanner sc=new Scanner(System.in); B..
RED BEAN
'백준9093' 태그의 글 목록