日期:2014-05-20 浏览次数:20610 次
public static void main(String args[]) throws Exception { Scanner s = new Scanner(System.in); int a = s.nextInt(); int b = s.nextInt(); int c = s.nextInt(); if (a > b) { b = a ^ b; a = b ^ a; b = b ^ a; } if (a > c) { c = a ^ c; a = c ^ a; c = c ^ a; } if (b > c) { c = b ^ c; b = c ^ b; c = c ^ b; } System.out.println(a + "," + b + "," + c); }