본문 바로가기

IT/알고리즘

백준 7단계(1152)

반응형
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
 
public class Main {
    
    public static void main(String[] args) throws Exception{
        BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
        BufferedWriter bw = new BufferedWriter(new OutputStreamWriter(System.out));
        //스트링 토큰나이저의 이해도를 위한 문제 같은 느낌
        String str = br.readLine();
        StringTokenizer st = new StringTokenizer(str);
 
        bw.write(String.valueOf(st.countTokens()));
        bw.flush();
    }
}
 
http://colorscripter.com/info#e" target="_blank" style="color:#e5e5e5text-decoration:none">Colored by Color Scripter
 
반응형

'IT > 알고리즘' 카테고리의 다른 글

백준 7단계(5622)  (0) 2019.12.10
백준 7단계(2908)  (0) 2019.12.10
백준 7단계(1157)  (0) 2019.12.10
백준 7단계(2675)  (0) 2019.12.07
백준 7단계(10809)  (0) 2019.12.07