Algorithm/[BOJ] - JAVA
[백준] 2743 : 단어 길이 재기 JAVA 풀이
Codew
2022. 9. 5. 16:50
String.length()로 문자열의 길이를 세고 출력만하면 되는 간단한 문제다.
import java.io.*;
public class Main{
public static void main(String[] args)throws IOException{
BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
String str = br.readLine();
System.out.println(str.length());
}
}