三级网络技术答案.docVIP

  • 1
  • 0
  • 约3.66万字
  • 约 73页
  • 2018-02-28 发布于河南
  • 举报
三级网络技术答案

48: { int q,w,e,r,i,j,t; cnt=0; for(i=0;iMAX;i++) { q=a[i]/1000; w=a[i]/100%10; e=a[i]/10%10; r=a[i]%10; if(q=ww=ee=ra[i]%2) { b[cnt++]=a[i]; } } for(i=0;icnt;i++) { for(j=0;jcnt-1;j++) { if(b[j]b[j+1]) { t=b[j];b[j]=b[j+1];b[j+1]=t; } } } } 49: { int q,w,e,r,i,j,t; cnt=0; for(i=0;iMAX;i++) { q=a[i]/1000; w=a[i]/100%10; e=a[i]/10%10; r=a[i]%10; if(q=ww=ee=ra[i]%2==0) { b[cnt++]=a[i]; } } for(i=0;icnt;i++) { for(j=0;jcnt-1;j++) { if(b[j]b[j+1]) { t=b[j];b[j]=b[j+1];b[j+1]=t; } } } } 50: { int q,w,e,r,i,j,t; totNum=totCnt=0;totPjz=0; for(i=0;iMAXNUM;i++) { if(xx[i]0) { totNum++; q=xx[i]/1000; w=xx[i]/100%10; e=xx[i]/10%10; r=xx[i]%10; if((q+w+e+r)%2==0) { totCnt++; totPjz+=xx[i]; } } } totPjz/=totCnt; } 51: { int q,w,e,r,i,j,t; totNum=0;totCnt=0;totPjz=0; for(i=0;iMAXNUM;i++) { if(xx[i]0) { totNum++; q=xx[i]/1000; w=xx[i]/100%10; e=xx[i]/10%10; r=xx[i]%10; if((q+w+e+r)%2) { totCnt++; totPjz+=xx[i]; } } } totPjz/=totCnt; } 4: { int q,w,e,r,i; cnt=sum=0; for(i=1000;i=5000;i++) { q=i/1000; w=i/100%10; e=i/10%10; r=i%10; if((q+w)==(e+r)(q+w)==(r-q)*10) { cnt++;sum+=i; } } } 61: { int q,w,e,r,s1,s2,i,j,t; cnt=0; for(i=0;iMAX;i++) { q=a[i]/1000; w=a[i]/100%10; e=a[i]/10%10; r=a[i]%10; s1=q*10+r; s2=w*10+e; if((s1%2s2%2)(s1%5==0||s2%5==0)(s1=10s2=10)) { b[cnt++]=a[i]; } } for(i=0;icnt;i++) { for(j=0;jcnt-1;j++) { if(b[j]b[j+1]) { t=b[j];b[j]=b[j+1];b[j+1]=t; } } } } 62: { int q,w,e,r,s1,s2,i,j,t; cnt=0; for(i=0;iMAX;i++) { q=a[i]/1000; w=a[i]/100%10; e=a[i]/10%10; r=a[i]%10; s1=r*10+q; s2=w*10+e; if((s1%2==0s2%2==0)(s1%9==0||s2%9==0)(s1=10s2=10)) { b[cnt++]=a[i]; } } for(i=0;icnt;i++) { for(j=0;jcnt-1;j++) { if(b[j]b[j+1]) { t=b[j];b[j]=b[j+1];

文档评论(0)

1亿VIP精品文档

相关文档