首页 > 代码库 > Algorithms 4th - 1.1 Basic Programming Model - CREATIVE PROBLEMS
Algorithms 4th - 1.1 Basic Programming Model - CREATIVE PROBLEMS
欢迎交流
1.1.26
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
声明:以上内容来自用户投稿及互联网公开渠道收集整理发布,本网站不拥有所有权,未作人工编辑处理,也不承担相关法律责任,若内容有误或涉及侵权可进行投诉: 投诉/举报 工作人员会在5个工作日内联系你,一经查实,本站将立刻删除涉嫌侵权内容。