11 条题解

  • 0
    @ 2024-4-7 11:48:37
    import java.util.Scanner;
    
    public class Main {
    	public static void main(String[] args) {
    		Scanner sc = new Scanner(System.in);
    		String s = sc.nextLine();
    		sc.close();
    		String[] st = s.split(" ");
    		int sum = 0 ;
    		for (int i = 0; i < st.length; i++) {
    			sum += st[i].length();
    		}
    		System.out.println(sum);
    	}
    }
    

    信息

    ID
    10
    时间
    1000ms
    内存
    256MiB
    难度
    4
    标签
    递交数
    1226
    已通过
    605
    上传者