lishanshan 2008-10-01 08:07:00
点我顶贴
收藏
删除
program jxj;
var
name,maxname:string;
i,j,k,m,n,qimo,class,s,u:longint;
west,studentgb,c:char;
lunwen:0..10;
begin
s:=0;
read(n);
for i:=1 to n do
begin
name:=’’;
read(c);
while c<>’ ’ do
begin
name:=name+c;
read(c);
end;
read(qimo,class,studentgb,studentgb,west,west,lunwen);
if (qimo>80)and(lunwen>=1) then m:=m+8000;
if (qimo>85)and(class>80) then m:=m+4000;
if qimo>90 then m:=m+2000;
if (qimo>85)and(west=’Y’) then m:=m+1000;
if (class>80)and(studentgb=’Y’) then m:=m+850;
u:=u+m;
if m>s then begin maxname:=name;s:=m;end;
m:=0;
end;
writeln(maxname);
writeln(s);
write(u);
end.
#5 wish@2008-10-01 08:07:00
6452
回复
删除
刚才没仔细看 -_-
read(qimo,class,studentgb,studentgb,west,west,lunwen);
不能这样读入
你自己翻下pascal语言的相关书籍吧