import java.io.*; import java.util.Arrays; public class Main { public static BufferedReader in = new BufferedReader(new InputStreamReader(System.in)); public static BufferedWriter out = new BufferedWriter(new OutputStreamWriter(System.out)); public static StreamTokenizer cin = new StreamTokenizer(new BufferedReader(new InputStreamReader(System.in))); public static PrintWriter cout = new PrintWriter(new OutputStreamWriter(System.out)); public static void main(String[] args) throws Exception { int[] num = new int[3]; for (int i = 0; i < 3; i++) { cin.nextToken(); num[i] = (int) cin.nval; } Arrays.sort(num); for (int i = 0; i < 3; i++) { if (i == 2) { cout.print(num[2]); } else { cout.printf("%d ", num[i]); } } cout.flush(); } }
0.0分
0 人评分
C二级辅导-进制转换 (C语言代码)浏览:815 |
C二级辅导-分段函数 (C语言代码)浏览:912 |
DNA (C++代码)浏览:671 |
C语言程序设计教程(第三版)课后习题1.5 (C语言代码)浏览:668 |
永远的丰碑 (C语言代码)浏览:698 |
C语言训练-角谷猜想 (C++代码)(3N+1问题)浏览:1851 |
C语言程序设计教程(第三版)课后习题1.5 (C语言代码)浏览:615 |
C语言训练-排序问题<2> (C++代码)浏览:935 |
C语言程序设计教程(第三版)课后习题1.5 (C语言代码)浏览:644 |
C二级辅导-统计字符 (C语言代码)浏览:514 |