题解 | #按照格式输入并交换输出#

按照格式输入并交换输出

http://www.nowcoder.com/practice/95eb723a3e854376a7eb6d116cc7d875

import java.io.*;
public class Main {
    public static void main(String[] args) throws IOException {
        BufferedReader in = new BufferedReader(new InputStreamReader(System.in));
        String str = in.readLine();
        String[] s = str.split(",");
        int a = Integer.parseInt(s[0].substring(2));
        int b = Integer.parseInt(s[1].substring(2));
        System.out.printf("a=%d,b=%d",b,a);
    }
}
全部评论

相关推荐

05-29 20:34
门头沟学院 C++
KarlAllen:得做好直接春招的准备。学历差的话,一是面试要求会比学历好的严格不少,二是就算面试通过了也会被排序。总之暑期和秋招对于学历差的就是及其不友好
无实习如何秋招上岸
点赞 评论 收藏
分享
Rena1ssanc...:对的,要是面评没太烂,勤更新简历等捞就行了,腾讯可以无限复活
点赞 评论 收藏
分享
评论
点赞
收藏
分享

创作者周榜

更多
牛客网
牛客网在线编程
牛客网题解
牛客企业服务