본문 바로가기

Algorithm/Baekjoon

[백준_JAVA] 2743 단어 길이 재기

import java.util.Scanner;

public class Main{
    public static void main(String[] args){
        Scanner sc = new Scanner(System.in);
        String word = sc.next();
        int num = word.length();
        System.out.println(num);
        sc.close();
    }
}