标签:style blog color ar sp div log ad bs
public class TestApp { public static void main(String[] args) { int a = StdIn.readInt(); int b = StdIn.readInt(); int c = StdIn.readInt(); int t; if( a > b) { t = a; a = b; b = t; } if( a > c) { t = a; a = c; c = t; } if( b > c) { t = b; b = c; c = t; } StdOut.println(a + "->" + b + "->" + c); } }
Algorithms 4th - 1.1 Basic Programming Model - CREATIVE PROBLEMS
标签:style blog color ar sp div log ad bs
原文地址:http://www.cnblogs.com/Azurewing/p/4044108.html