全国计算机等级考试三级网络技术程序设计题Word格式.docx

上传人:b****3 文档编号:17892809 上传时间:2022-12-11 格式:DOCX 页数:39 大小:18.29KB
下载 相关 举报
全国计算机等级考试三级网络技术程序设计题Word格式.docx_第1页
第1页 / 共39页
全国计算机等级考试三级网络技术程序设计题Word格式.docx_第2页
第2页 / 共39页
全国计算机等级考试三级网络技术程序设计题Word格式.docx_第3页
第3页 / 共39页
全国计算机等级考试三级网络技术程序设计题Word格式.docx_第4页
第4页 / 共39页
全国计算机等级考试三级网络技术程序设计题Word格式.docx_第5页
第5页 / 共39页
点击查看更多>>
下载资源
资源描述

全国计算机等级考试三级网络技术程序设计题Word格式.docx

《全国计算机等级考试三级网络技术程序设计题Word格式.docx》由会员分享,可在线阅读,更多相关《全国计算机等级考试三级网络技术程序设计题Word格式.docx(39页珍藏版)》请在冰豆网上搜索。

全国计算机等级考试三级网络技术程序设计题Word格式.docx

return0;

for类型

22题

{inti;

doublesum=0;

for(i=0;

i<

n;

i++)

if(i%3==0&

&

i%7==0)

sum+=i;

sum=sqrt(sum);

returnsum;

67题

{inti,gw,sw,bw,qw;

sum=0;

cnt=0;

for(i=1000;

=5000;

{gw=i%10;

sw=i/10%10;

bw=i/100%10;

qw=i/1000;

if(qw+bw==sw+gw&

qw+bw==(gw-qw)*10)

{cnt++;

}}

二,一组平均值

49题

300;

if((a[i]/1000-a[i]/100%10-a[i]/10%10-a[i]%10)>

pjz1+=a[i];

pjz2+=a[i];

pjz1/=cnt;

pjz2/=300-cnt;

80题

{inti;

for(i=0;

if((a[i]%10-a[i]/1000-a[i]/100%10-a[i]/10%10)>

{cnt++;

pjz1+=a[i];

else

pjz2+=a[i];

pjz1/=cnt;

pjz2/=300-cnt;

81题

if(a[i]/1000+a[i]/100%10==a[i]/10%10+a[i]%10)

87题

if(a[i]/1000+a[i]%10==a[i]/100%10+a[i]/10%10)

91题

cnt1=0;

cnt2=0;

pj=0;

200;

{if(xx[i]%2==1)

cnt1++;

if(i%2==0)

pj+=xx[i];

cnt2=200-cnt1;

pj/=100;

94题

if(i%2==1)

92题

{inti,count=0;

max=xx[0];

if(max<

xx[i])

max=xx[i];

{if(max==xx[i])

cnt++;

if(xx[i]%3==0||xx[i]%7==0)

{count++;

pj/=count;

三.方差

33题

1000;

if(xx[i]%2==0)

{even++;

ave2+=xx[i];

ave1+=xx[i];

ave2/=even;

ave1/=1000-even;

totfc+=(xx[i]-ave2)*(xx[i]-ave2);

totfc/=even;

83题

if(xx[i]%2==1)

{odd++;

ave1/=odd;

ave2/=1000-odd;

totfc+=(xx[i]-ave1)*(xx[i]-ave1);

totfc/=odd;

93题

odd++;

aver+=xx[i];

aver/=1000;

even=1000-odd;

totfc+=(xx[i]-aver)*(xx[i]-aver);

totfc/=1000;

40题

if(xx[i]>

totNum++;

totNum;

if((xx[i]/1000+xx[i]/100%10+xx[i]/10%10+xx[i]%10)%2==0)

{totCnt++;

totPjz+=xx[i];

totPjz/=totCnt;

65题

if((xx[i]/1000+xx[i]/100%10+xx[i]/10%10+xx[i]%10)%2==1)

23题

N;

{aver+=xx[i];

sumint+=(int)xx[i];

sumdec+=xx[i]-(int)xx[i];

aver/=N;

四.一维排序

68题

{inti,j,t;

if(a[i]%10%2==1&

a[i]/10%10%2&

a[i]/100%10%2&

a[i]/1000%2)

b[cnt++]=a[i];

cnt;

for(j=i+1;

j<

j++)

if(b[i]<

b[j])

{t=b[i];

b[i]=b[j];

b[j]=t;

69题

=0&

a[i]%2==1)

if(b[i]>

14题

195;

if(a[i]>

a[i+1]&

a[i]>

a[i+2]&

a[i+3]&

a[i+4]&

a[i+5]&

30题

if(a[i]<

a[i]<

a[i]%2==0)

45题

for(i=5;

a[i-1]&

a[i-2]&

a[i-3]&

a[i-4]&

a[i-5]&

46题

a[i]%2==1&

a[i]%7==0)

28题

{inti,j,t,gw,sw,bw,qw,ab,cd;

{gw=a[i]%10;

sw=a[i]/10%10;

bw=a[i]/100%10;

qw=a[i]/1000;

ab=qw*10+sw;

cd=gw*10+bw;

if(ab-cd>

ab-cd<

=10&

ab%2==1&

cd%2==1&

qw!

gw!

=0)

29题

=20&

ab%2==0&

cd%2==0&

52题

ab=qw*10+gw;

cd=bw*10+sw;

if(ab%2==1&

(ab%5==0||cd%5==0)&

bw!

59题

if(ab<

cd&

ab%5!

72题

{inti,t,j,gw,sw,bw,qw,ab,cd;

ab=gw*10+qw;

if(ab%2==0&

(ab%9==0||cd%9==0)&

76题

if((ab%2==0&

cd%2==1||ab%2==1&

cd%2==0)&

(ab%17==0||cd%17==0)&

86题

if(ab>

ab%5==0&

2题

if(a[i]%10%2==0&

a[i]/10%10%2==0&

a[i]/100%10%2==0&

a[i]/1000%2==0)

15题

if(a[i]/1000<

=a[i]/100%10&

a[i]/100%10<

=a[i]/10%10&

a[i]/10%10<

=a[i]%10&

27题

48题

53题

if((a[i]%10-a[i]/1000-a[i]/100%10-a[i]/10%10)>

54题

77题

if((a[i]/1000+a[i]/10%10==a[i]/100%10+a[i]%10)&

78题

if(a[i]/1000>

a[i]/100%10>

a[i]/10%10>

85题

89题

if((a[i]/1000+a[i]%10==a[i]/100%10+a[i]/10%10)&

24题

{inti,cnt=0;

for(i=10;

32;

if(i*i/100==i*i/10%10||i*i/100==i*i%10||i*i/10%10==i*i%10)

bb[cnt++]=i*i;

returncnt;

五,二重排序

5题

if(aa[i]%1000>

aa[j]%1000||aa[i]%1000==aa[j]%1000&

aa[i]<

aa[j])

{t=aa[i];

aa[i]=aa[j];

aa[j]=t;

10;

bb[i]=aa[i];

6题

if(aa[i]%1000<

aa[i]>

六.素数

1题

for(i=m+1;

cnt<

k;

if(isP(i)==1)

xx[cnt++]=i;

51题

if(isprime(ab)==1&

isprime(cd)==1&

55题

if(isP(a[i]))

b[cnt++]=a[i];

64题

i+10<

=100;

if(isPrime(i)&

isPrime(i+4)&

isPrime(i+10))

82题

34题

for(i=2;

if(n%i==0)

voidcountValue()

for(i=101;

if((i%10+i/10%10)%10==i/100&

isP(i))

66题

intisP(intn)

for(

展开阅读全文
相关资源
猜你喜欢
相关搜索

当前位置:首页 > 幼儿教育 > 家庭教育

copyright@ 2008-2022 冰豆网网站版权所有

经营许可证编号:鄂ICP备2022015515号-1