題目說是資料有兩行,表示數字之後應是換行
然後才是字串,但第3測資好像沒有 換行
害我吃了RE
QAQ
您的程式被監控系統中斷,可能是程式無法正常結束所導致。 Exception in thread "main" java.lang.NumberFormatException: For input string: "1000 swliqvtenwroxqowkwpamxbrqvjbctykjbkxyoiffrvkefqcnyibxbakgenbyzjoqligkccccoxsgdlojahgumvmntivhyztphqkmzyaiiabkebskraqiiudlnqaoaylsgzzldgzjupimuedmbgcevtxlsioqzaashdtkwyxbpiaddnotcngozsjozfwfbkpsimjzydwkcueefkxkbqimcezmmdvpkdokttwolkqaqxfwqihplaimwmspfykdprkqkzoeutjgnpdmrdoxumnpylbilfaummctcgvwhfwqlntxhbwiipmazroztawwptmgigkgnknglgjrkalgiaduhkbbjatrdvoluugvtqwzvbdbqkrbhjnjxhedpgtyzonelvtddiiwamsxipehljtnjckraakghsawyefiztstxnxoiijkifxtdgirpkxpacfgnktzdgutysacjfmrnhdbuekyejghwdcsgmqhylsqbcopylqupvdajozbcqurxzwchfgsnsxgrelntwrcsyuhuwuwfvmknsetdnpewzotagxcaitqcklklvlhnsguqvemprkxwjjvgpnycvtisbgbhwuvxoelklwhblahctwkhdmywjugjtqcjrckauvkkqdscnlaknevvctyaalihekgxkdwjaghuwgclsrvchkiowmysvcjsyoazbxnqqzdmitgyzdibmqpvfplburgxcqdwdwlzzunztywrumpnhlxgfqseiyjqmijhzgykbxvexscmlsrkedpyryhdbmbyxfmucxnepjhfghzednxikinezgdudsjoeorlscdwolsjziiodqhthzmipgbwwonmbpyflzeahwxsdavkfaxjvtoiqkbnqlhecjedgvaifuqyepyxbtkzbwprfbpdtfhzjrslxlcrprvdojctmdnxyikfiirqssyitxkfvtkiwknfuwkwlxwanukkonuybedvzfysdxbvgjzihuwacsxorv" at java.lang.NumberFormatException.forInputString(NumberFormatException.java:65) at java.lang.Integer.parseInt(Integer.java:580) at java.lang.Integer.valueOf(Integer.java:766) at d574.main(d574.java:12)