上机题Word文件下载.docx

上传人:b****6 文档编号:16176185 上传时间:2022-11-21 格式:DOCX 页数:71 大小:23.24KB
下载 相关 举报
上机题Word文件下载.docx_第1页
第1页 / 共71页
上机题Word文件下载.docx_第2页
第2页 / 共71页
上机题Word文件下载.docx_第3页
第3页 / 共71页
上机题Word文件下载.docx_第4页
第4页 / 共71页
上机题Word文件下载.docx_第5页
第5页 / 共71页
点击查看更多>>
下载资源
资源描述

上机题Word文件下载.docx

《上机题Word文件下载.docx》由会员分享,可在线阅读,更多相关《上机题Word文件下载.docx(71页珍藏版)》请在冰豆网上搜索。

上机题Word文件下载.docx

ⅩⅧ选票问题:

第39、58、84题

ⅩⅨSIX与NINE问题:

第41题

ⅩⅩ特殊排序问题:

第43、44、50、71、90题

ⅩⅪ出圈问题:

第57题

ⅩⅩⅡ结构体筛选并排序问题:

第60、75题

ⅩⅩⅢ字符串循环位移问题:

第63题

第91题

在主函数/*********/与/*********/之间加入

cnt1=0;

cnt2=0;

for(i=0;

i<

200;

i++)

if(xx[i]%2)

cnt1++;

else

cnt2++;

j=0;

i+=2)

j+=xx[i];

pj=(float)j/100;

第92题

max=xx[0];

if(xx[i]>

max)

max=xx[i];

cnt=0;

if(xx[i]==max)

cnt++;

k=0;

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

{

k++;

}

pj=(float)j/k;

第93题

voidCompute(void)

{

inti;

1000;

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

odd++;

even++;

aver+=xx[i];

aver/=1000;

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

totfc/=1000;

}

第94题

for(i=1;

k+=xx[i];

pj=(float)k/100;

第95题

voidencryptChar()

inti,j,str;

unsignedchart;

maxline;

str=strlen(xx[i]);

for(j=0;

j<

str;

j++)

t=xx[i][j]*11%256;

if(t<

=32||t>

='

A'

&

t<

Z'

xx[i][j]=xx[i][j];

xx[i][j]=t;

第96题

=32||xx[i][j]>

a'

xx[i][j]<

z'

第97题

0'

9'

第98题

t=xx[i][j]*17%256;

=32||t%2)

第99题

voidSortDat()

inti,j;

PROt;

100;

for(j=i+1;

if(sell[i].je>

sell[j].je)

t=sell[i];

sell[i]=sell[j];

sell[j]=t;

elseif(sell[i].je==sell[j].je)

if(strcmp(sell[i].dm,sell[j].dm)>

0)

第100题

voidCharConvA(void)

chart;

t=xx[i][str-1];

for(j=str-1;

j>

0;

j--)

xx[i][j]=(xx[i][j]>

>

4)+xx[i][j-1];

xx[i][0]=xx[i][0]+t;

第81题

voidjsValue()

intg,s,h,q;

300;

g=a[i]%10;

s=a[i]%100/10;

h=a[i]%1000/100;

q=a[i]/1000;

if(q+h==s+g)

pjz1+=a[i];

pjz2+=a[i];

pjz1/=cnt;

pjz2/=300-cnt;

第82题

if(isP(a[i])==1)

第83题

ave1+=xx[i];

ave2+=xx[i];

ave1/=odd;

ave2/=even;

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

totfc/=odd;

第84题

voidCountRs(void)

inti,j,cnt;

10;

if(xx[i][j]=='

1'

if(cnt<

=5)

yy[j]++;

第85题

voidjsVal()

inti,j,t;

if(g-q-h-s>

=0&

a[i]%2==0)

b[cnt]=a[i];

cnt;

if(b[i]>

b[j])

t=b[i];

b[i]=b[j];

b[j]=t;

第86题

intab,cd;

ab=q*10+s;

cd=g*10+h;

if(ab>

cd&

ab%10==0&

cd%2==1&

q*g!

=0)

if(b[i]<

第87题

if(q+g==h+s)

第88题

voidSortCharA(void)

inti,j,k,str;

for(k=j+1;

k<

k++)

if(xx[i][j]>

xx[i][k])

t=xx[i][j];

xx[i][j]=xx[i][k];

xx[i][k]=t;

第89题

if(q+g==h+s&

a[i]%2==1)

第90题

jsValue(inta[10][9])

inti,j,k,t,s;

t=a[i][0];

for(j=1;

9;

if(a[i][j]<

t)

s=a[i][j];

for(k=j;

k>

k--)

a[i][k]=a[i][k-1];

a[i][0]=s;

第71题

voidjsSort()

20;

str/2;

if(xx[i][j]<

for(j=(str+1)/2;

第72题

ab=g*10+q;

cd=h*10+s;

if(ab%2==0&

cd%2==0&

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

g*h!

第73题

voidConvertCharD(void)

xx[i][j]='

;

xx[i][j]-=1;

第74题

voidStrCharJL(void)

t=xx[i][j]<

<

4;

100)

xx[i][j]+=t;

第75题

intjsSort()

inti,j,cnt=0;

datat;

if(aa[i].x1>

aa[i].x2+aa[i].x3)

bb[cnt]=aa[i];

if(bb[i].x1+bb[i].x3>

bb[j].x1+bb[j].x3)

t=bb[i];

bb[i]=bb[j];

bb[j]=t;

returncnt;

第76题

if((ab+cd)%2==1&

ab*cd%17==0&

第77题

if(q+s==h+g&

第78题

if(q>

=h&

h>

=s&

s>

=g&

第79题

voidcountValue(int*a,int*n)

inti,cnt=0;

if((i%7==0||i%11==0)&

i%77!

a[cnt]=i;

*n=cnt;

第80题

第61题

if(strcmp(sell[i].dm,sell[j].dm)<

第62题

t=xx[i][j]*13%256;

=32||t%2==0)

第63题

voidchg(char*s)

inti,str;

str=strlen(s);

t=s[0];

str-1;

s[i]=s[i+1];

s[str-1]=t;

第64题

voidcountValue()

for(i=2;

90;

if(isPrime(i)==1&

isPrime(i+4)==1&

isPrime(i+10)==1)

sum+=i;

第65题

voidCalValue(void)

totNum++;

totNum;

g=xx[i]%10;

s=xx[i]%100/10;

h=xx[i]%1000/100;

q=xx[i]/1000;

if((g+s+h+q)%2==1)

totCnt++;

totPjz+=xx[i];

totPjz/=totCnt;

第66题

inti,j,s=1,t;

for(i=799;

i>

500;

i-=2)

for(j=2;

;

if(i%j==0)

break;

if(i==j)

t=s*i;

sum+=t;

s=-s;

第67题

voidcountValue()

for(i=1000;

5000;

g=i%10;

s=i%100/10;

h=i%1000/100;

q=i/1000;

if(q+h==s+g&

q+h==(g-q)*10)

第68题

h=a[i]%1000

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

当前位置:首页 > 工程科技 > 交通运输

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

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