-
[java]백준 단어의 개수 1152번알고리즘 문제풀이/백준(자바) 2023. 5. 3. 23:02
코드
import java.io.BufferedReader; import java.io.IOException; import java.io.InputStreamReader; import java.util.StringTokenizer; public class BOJ_1152 { public static void main(String[] args) throws IOException { BufferedReader br = new BufferedReader(new InputStreamReader(System.in)); StringTokenizer st = new StringTokenizer(br.readLine()); System.out.println(st.countTokens());//토큰 개수 } }
링크
https://www.acmicpc.net/problem/1152
'알고리즘 문제풀이 > 백준(자바)' 카테고리의 다른 글
[java]백준 입실 관리 5524번 (0) 2023.05.05 [java]백준 초콜릿 자르기 2163번 (0) 2023.05.04 [java]백준 몇개고? 27294번 (0) 2023.05.02 [java]백준 소수 찾기 1978번 (0) 2023.05.01 [java]백준 N번째 큰 수 2693번 (0) 2023.04.30