求大神解答啊

var n,a,b,c,d,max,s:int64;f,g:char;e,nam:string;i:integer;
begin
readln(n);
max:=-maxint-1;
for i:=1 to n do
begin
readln(e,a,b,f,g,d);
if (a>80) and (d>=1) then
s:=s+8000;
if (a>85) and (b>80) then
s:=s+4000;
if a>90 then s:=s+2000;
if (a>85) and (g='Y') then
s:=s+1000;
if (b>80) and (f='Y') then
s:=s+850;
c:=c+s;
if s>max then
begin
max:=s;nam:=e;
end;
end;
writeln(nam);
writeln(max);
writeln(c);
end.

怎么输入名字啊???

1 条评论

  • @ 2013-12-14 18:06:48

    我有点不能理解你要提什么问题...**可以把问题详细讲一下吗?无法读入?无法输出?**

    • @ 2013-12-14 21:51:04

      就是输入名字 不是小于20个字符的字符串吗,但问题是,怎么把名字和之后的成绩分割开 我这样编出来的 如果输入连续输入名字和成绩会把成绩和名字当成一个字符,然后程序就崩溃了。。。。

  • 1

信息

ID
1001
难度
5
分类
模拟 点击显示
标签
递交数
39080
已通过
12716
通过率
33%
被复制
121
上传者