完成下列快算24点问题 (1)4,4,10,10 (2)2,5,10,10 (3)2,7,10,10 (4)7,7 ,9, 10 (5)7,8,8,9 (6)7,8,8,10 (7)7,8,9,10 (8)7,8,10,10 (9)8,8,8,10 (10)5,6,6,6
完成下列快算24点问题 (1)4,4,10,10 (2)2,5,10,10 (3)2,7,10,10 (4)7,7 ,9, 10 (5)7,8,8,9 (6)7,8,8,10 (7)7,8,9,10 (8)7,8,10,10 (9)8,8,8,10 (10)5,6,6,6
参考答案和解析
(217)10
相关考题:
有 以下程序void f(int b[]){ int i;for(i=2;i6;i++) b[i]*=2;}main( ){ int a[10]={1,2,3,4,5,6,7,8,9,10},i;f(a);for(i=0;i10;i++) printf("%d",a[i]);}程序运行后的输出结果是A)1 , 2 , 3 , 4 , 5 , 6 , 7 , 8 , 9 , 10 ,B)1 , 2 , 6 , 8 , 10 , 12 , 7 , 8 , 9,10C)1 , 2 , 3 , 4 , 10 , 12 , 14 , 16 , 9 , 10 ,D)1 , 2 , 6 , 8 , 10 , 12 , 14 , 16 , 9 , 10 ,
下面程序段是计算()公式的。s=0:t=1Fori=1To10t=t*is=s+tNextiA.s=1+2+3+4+5+6+7+8+9+10B.s=1*2*3*4*5*6*7*8*9*10C.s=1!+2!+3!+4!+5!+6!+7!+8!+9!+10!D.s=1+2*3+3*4+4*5+5*6+6*7+7*8+8*9+9*10
下列程序 Option Base 1 Const upl = 10 Private Sub Form_click() Dim a(upl) As Integer k = -1 For i = 1 To upl a(i) = i * k k = -1 * k Next i For i = 1 To 10 Print a(i); Next End Sub 运行时输出的结果是 () 。 A. 1 3 5 7 9 10B. -1 -3 -5 -7 -9C. -1 2 -3 4 -5 6 -7 8 -9 10D. 1 -2 3 -4 5 -6 7 -8 9 -10
阅读以下说明和C代码,将应填入(n)处的字句写在对应栏内。【说明】将一正整数序列{K1,K2,…,K9}重新排列成一个新的序列,新序列中,比K1小的数都在K1的前面(左面),比K1大的数都在K1的后面(右面),最后调用writeDat()函数的新序列输出到文件out.dat中。在程序中已给出了10个序列,每个序列有9个正整数,并存入数组a[10][9]中,分别求出这10个新序列。例:序列{6,8,9,1,2,5,4,7,3}经重排后成为{3,4,5,2,1,6,8,9,7}【函数】include < stdio. h >include < conio. h >void jsValue( int a [10] [9] ){ int i,j,k,n,temp;int b[9];for(i=0;i<10;i++){ temp=a[i] [0];k=8;n=0;for(j=8;j=0;j--){ if(temp < a[i] [j]) (1)=a[i][j];if(temp >a[i] [j]) (2)=a[i][j];if(temp =a[i] [j]) (3)= temp;}for(j=0;j<9;j++) a[i][j] =b[j];}}void main( )int a[10] [9] = {{6,8,9,1,2,5,4,7,3},{3,5,8,9,1,2,6,4,7},{8,2,1,9,3,5,4,6,7}, {3,5,1,2,9,8,6,7,4},{4,7,8,9,1,2,5,3,6}, {4,7,3,5,1,2,6,8,9},{9,1,3,5,8,6,2,4,7}, {2,6,1,9,8,3,5,7,4},{5,3,7,9,1,8,2,6,4}, {7,1,3,2,5,8,9,4,6}};int i,j;(4);for(i=0;i<10;i++) {for(j=0;j<9;j++) {printf("%d",a[i] [j] );if((5))printf(",");}printf(" \n" );}getch( );}
有以下程序:程序运行后的输出结果是( )。A.1,2,3,4,5,6,7,8,9,10,B.10,9,8,7,6,5,4,3,2,1,C.2,3,1,6,8,7,5,4,10,9,D.10,9,8,7,6,1,2,3,4,5,
当执行下面的语句定义一维数组a后,此数组的所有元素为 ( ) inta[10];A.a[1],a[2],a[3],a[4],a[5],a[6],a[8],a[9],a[10],a[10]B.a[0],a[1],a[2],a[3],a[4],a[5],a[6],a[7],a[8],a[9]C.a[0],a[2],a[3],a[4],a[5],a[6],a[7],a[8],a[9],a[10]D.a[1],a[2],a [3],a[4],a [5],a [9],a [7],a [8],a [9],a [10],a [11]
有以下程序main() { int a[]={1,2,3,4,5,6,7,8,9,0},*p; for(p=a;pa+10;p++) printf("%d,",*p);}程序运行后的输出结果是A.1,2,3,4,5,6,7,8,9,0, B.2,3,4,5,6,7,8,9,10,1, C.0,1,2,3,4,5,6,7,8,9, D.1,1,1,1,1,1,1,1,1,1,
有以下程序:程序运行后的输出结果是( )。A.1,2,3,4,5,6,7,8,9,10,B.1,2,7,6,3,4,5,8,9,10,C.1,2,7,6,5,4,3,8,9,10,D.1,2,9,8,7,6,5,4,3,l0,
下列程序的功能是:将一个正整数序列{K1, K2,…, K9}重新排列成一个新的序列。在新序列中,比K1小的数都在K1的前面(左面),比K1大的数都在K1的后面(右面)。要求编写函数jsValue()实现以上功能,最后调用函数writeDat(),将新序列输出到文件out.dat中。说明:程序中已给出了10个序列,每个序列中有9个正整数,并存入数组a[10][9] 中,分别求出这10个新序列。例如:序列{6, 8, 9, 1, 2, 5, 4, 7, 3}重排后为{3, 4, 5, 2, 1, 6, 8, 9, 7}。部分源程序已给出。请勿改动主函数main() 和写函数writeDat() 的内容。#includestdio.hvoid jsValue(int a[10][9]){ } void main(){ int a[10][9]={{6,8,9,1,2,5,4,7,3} {3,5,8,9,1,2,6,4,7} {8,2,1,9,3,5,4,6,7} {3,5,1,2,9,8,6,7,4} {4,7,8,9,1,2,5,3,6} {4,7,3,5,1,2,6,8,9} {9,1,3,5,8,6,2,4,7} {2,6,1,9,8,3,5,7,4} {5,3,7,9,1,8,2,6,4} {7,1,3,2,5,8,9,4,6} }; int i,j; jsValue(a); for(i=0;i10;i++){ for(j=0;j9;j++) { printf("%d",a[i][j]); if(j=7) printf(","); } printf("\n");}writeDat(a);}void writeDat(int a[10][9]){ FILE *fp; int i,j; fp=fopen("out.dat","w"); for(i=0;i10;i++){ for(j=0;j9;j++){ fprintf(fp,"%d",a[i][j]); if(j=7) fprintf(fp,","); } fprintf(fp,"\n");} fclose(fp);}
有以下程序程序运行后的输出结果是( )。A.1,2,3.4,5,6,7,8,9,10,B.10,9,8,7,6,5,4,3,2,1,C.2,3,1,6,8,7,5,4,10,9,D.10,9,8,7,6,1,2,3,4,5,
有下列程序:程序运行后的输出结果是( )。A.1,2,3,4,5,6,7,8,9,10,B.1,2,7,6,3,4,5,8,9,10,C.1,2,7,6,5,4,3,8,9,10,D.1,2,9,8,7,6,5,4,3,10,
以下程序中函数f的功能是:当na9为1时,进行由小到大排序;当na9为0时,进行由大到小排序。程序运行后的输出结果是( )。A.1,2,3,4,5,6,7,8,9,10,B.3,4,5,6,7,2,1,8,9,10,C.5,4,3,2,1,6,7,8,9,10,D.10,9,8,7,6,5,4,3,2,1,
有以下程序:程序运行后的输出结果是( )。A.2,3,1,6,8,7,5,4,10,9,B.3,4,2,7,9,8,6,5,11,10,C.2,4,3,9,12,12,11,11,18,9,D.1,2,3,6,8,7,5,4,10,9,
有以下程序:程序运行后的输出结果是( )。A.2,3,1,6,8,7,5,4,10,9,B.10,9,8,7,6,5,4,3,2,l,C.1,2,3,4,5,6,7,8,9,10,D.10,9,8,7,6,1,2,3,4,5,
以下程序的输出结果是( )。 A.1,2,3,4,5,6,7,8,9,10,B.1,2,3,4,10,12,14,16,9,10,SX 以下程序的输出结果是( )。A.1,2,3,4,5,6,7,8,9,10,B.1,2,3,4,10,12,14,16,9,10,C.1,2,6,8,10,12,7,8,9,10,D.1,2,6,8,10,12,14,16,9,10,
有以下程序: void sott(int a[], int n) { int i, j, t; for(i=0; i<n-1; i++) for(j=i+1; j<n; j++) if(a[i]<a[j]){t=a[i];a[i]=a[j];a[j]=t;) } main() {int aa[10]={1, 2, 3, 4, 5, 6, 7, 8, 9, 10}, I; sort(aa+2, 5); for (i=0; i<10; i++)printf("% d", aa[i]); printf("\n"); } 程序运行后的输出结果是______。A.1, 2, 3, 4, 5, 6, 7, 8, 9, 10,B.1, 2, 7, 6, 3, 4, 5, 8, 9, 10,C.1, 2, 7, 6, 5, 4, 3, 8, 9, 10,D.1, 2, 9, 8, 7, 6, 5, 4, 3, 10,
二维数组初始化正确的是()A、intarr[3][4]={1,2,3,4,5,6,7,8,9,10,11,12};B、intarr[3][4]={{1,2,3,4},{5,6,7,8},{9,10,11,12}};C、intarr[][4]={1,2,3,4,5,6,7,8,9,10,11,12};D、intarr[3][4]={{1,2,3},{4,5},{6}};
下列关于客人退房后的单据整理顺序,叙述正确的是哪项()?(1)信用卡签购单(2)《预收款收据》(红联)(3)签字后的《宾客账单》(4)《杂项转帐单》(红联)(5)《房间变更单》(红联)(6)《临时住宿登记单》(红联)(7)《散客预订单》(8)发票记帐联(9)协议/中介订房传真(10)其它A、(2)(1)(3)(4)(5)(7)(6)(9)(8)(10)B、(2)(1)(3)(4)(6)(5)(7)(8)(10)(9)C、(1)(3)(2)(4)(5)(7)(6)(8)(9)(10)D、(1)(2)(3)(4)(5)(6)(7)(8)(9)(10)
下列哪个清洁工具需要定期检查维护?()(1)喷壶(2)尘推(3)玻璃刮(4)拖把(5)恭桶刷(6)扫帚/簸箕(7)梯子(8)吸尘器(9)工作篮(10)地板擦A、(1)(2)(3)(4)(5)(6)(8)B、(1)(2)(5)(6)(8)(9)(10)C、(1)(3)(4)(7)(8)(9)(10)D、所有选项皆是
有程序:INTEGERM(3,3)DATAM/1,2,3,4,5,6,7,8,9/DO10I=1.3DO10J=1,3K=M(I,J)M(I,J)=M(J,I)M(J,I)=K10CONTINUEWRITE(*,100)((M(I,J),J=1,3),I=1,3)100FORMAT(1x,3I2)END此程序执行后的结果为:()A、1;4;7;2;5;8;3;6;9B、1;2;3;4;5;6;7;8;9C、9;6;3;8;5;2;7;4;1D、7;8;9;4;5;6;1;2;3
F12L413柴油机的发火顺序是()。A、1-5-3-8-10-7-6-11-2-9-4-12B、1-8-5-10-3-7-6-11-2-9-4-12C、1-10-3-8-7-11-6-9-2-4-12-5D、1-8-5-10-7-3-6-11-2-9-4-12
道依茨柴油机BF12L513C各缸的发火顺序是()。A、1-5-3-8-10-7-6-11-2-9-4-12B、1-8-5-10-3-7-6-11-2-9-4-12C、1-10-3-8-7-11-6-9-2-4-12-5D、1-8-5-10-7-3-6-11-2-9-4-12
单选题若有以下程序#include void fun(int a[],int n){ int t,i,j; for(i=1;i for(j=i+2;j if(a[i]a[j]) { t=a[i]; a[i]=a[j]; a[j]=t; }}main(){ int c[10]={10,9,8,7,6,5,4,3,2,1},i; fun(c,10); for(i=0;i printf("");}则程序的输出结果是( )。A2,9,4,7,6,5,8,3,10,1,B10,9,8,7,6,5,4,3,2,1,C10,1,8,3,6,5,4,7,2,9,D1,10,3,8,5,6,7,4,9,2,
单选题下列进行应聘者的筛选和录用的步骤的正确排列顺序为()。(1)录用决策;(2)面试;(3)应聘员工上岗试用;(4)初步面试;(5)证明材料和背景材料的核实;(6)身体检查;(7)评价申请表和简历;(8)选择测试;(9)新员工上岗任用;(10)试用期满进行任职考核。A(2)—(3)—(4)—(7)—(8)—(1)—(5)—(6)—(9)—(10)B(7)—(4)—(1)—(2)—(5)—(6)—(3)—(8)—(10)—(9)C(7)—(4)—(8)—(2)—(5)—(6)—(1)—(3)—(10)—(9)D(5)—(6)—(4)—(3)—(7)—(8)—(1)—(2)—(9)—(10)