这道题如果用nextLine()接收数据,请在接收n之后单独立行写一句in.nextLine();才能抵消Line和非Line输入的错位
2
牛客网
牛客网在线编程
牛客网题解
牛客企业服务