백준 1152(복습)

김경욱·2026년 1월 23일

백준

목록 보기
104/121

import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;
import java.util.HashMap;
import java.util.Map;
import java.util.StringTokenizer;

// Press Shift twice to open the Search Everywhere dialog and type show whitespaces,
// then press Enter. You can now see whitespace characters in your code.
public class Main {
public static void main(String[] args) throws IOException {
BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
StringBuilder sb = new StringBuilder();

    String text= br.readLine();

    StringTokenizer st = new StringTokenizer(text);

    System.out.println(st.countTokens());







}

}

0개의 댓글