天天看點

藍橋杯,輸入A B,輸出A+B,怎樣去除輸入時的空格

import java.util.*;

public class Main

{

    public static void main(String args[])

    {

        Scanner sc = new Scanner(System.in);

        Integer a = sc.nextInt();

        Integer b = sc.nextInt();

        System.out.println(a + b);

    }

}

繼續閱讀