點解我葛程序交上去會錯,全錯誤~~

var

a:array[0..100,0..7] of string;

ans:array[0..100] of longint;

t:int64;

s:string;

n,i,j,l,q:longint;

begin

readln(n);

for i:=1 to n do begin

readln(s);

s:=s+' ';

q:=0;

while s'' do begin

l:=pos(' ',s);

inc(q);

a:=copy(s,1,l-1);

delete(s,1,l);

end;

str(i,s);

a:=s;

end;

for i:=1 to n do begin

if (a>'80') and (a>='1') then inc(ans[i],8000);

if (a>'85') and (a>'80') then inc(ans[i],4000);

if a>'90' then inc(ans[i],2000);

if (a>'85') and (a='Y') then inc(ans[i],1000);

if (a>'80') and (a='Y') then inc(ans[i],850);

end;

for i:=1 to n-1 do begin

for j:=i+1 to n do begin

if ans[i]

1 条评论

  • @ 2012-09-13 21:15:27

    装...

    广东省东莞市 电信

  • 1

信息

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