题解 | #按照格式输入并交换输出#
按照格式输入并交换输出
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);
}
}