import java.io.BufferedReader; import java.io.IOException; import java.io.InputStreamReader; public class Main { public static void main(String[] args)throws IOException { //题目有缺陷,实际是单行输入,如果按照多行无法通过 BufferedReader reader = new BufferedReader(new InputStreamReader(System.in)); ...