NOIP提高组初赛试题汇编(2002-2009)(3)

时间:2026-01-16

NOIP提高组初赛试题汇编(2002-2009)noip考试者必备我也是马上要考了!!!

ch1:=ch[jw];ch[jw]:=ch[jb];ch[jb]:=ch1;jw:=jw-1;jb:=jb-1;end

end;

fori:=1tondowrite(ch[1]);writeln;

end.

输入:输入:10

RBRBWWRBBR

输出:输出:

2.programGxp2;

vari,j,s,sp1:integer;

p:boolean;a:array[1..10]ofinteger;begin

sp1:=1;a[1]:=2;j:=2;whilesp1<10dobegin

j:=j+1;p:=true;fori:=2toj-1do

if(jmodi=0)thenp:=false;ifpthenbegin

sp1:=sp1+1;a[sp1]:=j;end;

end;

j:=2;p:=true;whilepdobegins:=1;

fori:=1tojdos:=s*a[i];s:=s+1;

fori:=2tos-1do

ifsmodi=0thenp:=false;j:=j+1;end;

writeln(s);writeln;end.

输出:输出:

3.ProgramGxp2

Vard1,d2,X,Min:real;begin

Min:=10000;X:=3;whileX<15dobegin

d1:=sqrt(9+(X-3)*(X-3));d2:=sqrt(36+(15-X)*(15-X));

NOIP提高组初赛试题汇编(2002-2009)(3).doc 将本文的Word文档下载到电脑

精彩图片

热门精选

大家正在看

× 游客快捷下载通道(下载后可以自由复制和排版)

限时特价:4.9 元/份 原价:20元

支付方式:

开通VIP包月会员 特价:19元/月

注:下载文档有可能“只有目录或者内容不全”等情况,请下载之前注意辨别,如果您已付费且无法下载或内容有问题,请联系我们协助你处理。
微信:fanwen365 QQ:370150219