#1 sunyuhong@2011-01-29 01:52:00
20106
回复
删除
var a:array[1..12]of integer;
i,j:integer;
tot,s:integer;
begin
for i:=1 to 12 do read(a[i]);
tot:=0;s:=0;
for i:=1 to 12 do
begin
s:=s+300;
s:=s-a[i];
if s>=100 then
begin tot:=tot+(s div 100)*100; s:=s-(s div 100)*100 ;end;
if s<0 then begin
writeln('-',i);
exit;
end;
end;
writeln(tot*1.2+s:0:0);
end.