Given an integer array, find three numbers whose product is maximum and output the maximum product. Example 1: Input: [1,2,3] Output: 6 Example 2: Input: [1,2,3,4] Output: 24 Note: The length of the given array will be in range [3,104] and all elemen
三个数字大小排序 <script> var a = parseInt(prompt("请输入第一个整数:")); var b = parseInt(prompt("请输入第二个整数:")); var c = parseInt(prompt("请输入第三个整数:")); if(a > b && a > c && b > c) { alert(c + "<" +
# 给三个数字排序# 方法一def sort_d(a,b,c): if a>b: a,b=b,a # print (a,b) if b>c: b,c=c,b if a>b: a,b=b,a return a,b,c print(sort_d(1,2,3))print(sort_d(11,2,3))print(sort_d(12,2,-13)) 第二种方法: def sort_new(a,b,c): if a>b: a,b=b,a if b>c: b,c=c,b if a>