| ||||||||||
| Online Judge | Problem Set | Authors | Online Contests | User | ||||||
|---|---|---|---|---|---|---|---|---|---|---|
| Web Board Home Page F.A.Qs Statistical Charts | Current Contest Past Contests Scheduled Contests Award Contest | |||||||||
过路神牛帮忙看看为什么wa~~~~PROGRAM Ride_to_School;
VAR
num:longint;
ans:extended;
PROCEDURE init;
Begin
read(num);
End;
PROCEDURE solve;
Var
i,v,t:longint;
tmp:extended;
Begin
ans:=maxlongint;
for i:=1 to num do
begin
read(v,t);
if i>=0 then
begin
tmp:=4500.0*3.6/(v)+t;
if tmp-trunc(tmp)>0 then tmp:=tmp+1;
if tmp<ans then ans:=tmp;
end;
end;
writeln(trunc(tmp));
End;
PROCEDURE outit;
Begin
End;
BEGIN
num:=1;
while num<>0 do
begin
init;
if num<>0 then
begin
solve;
outit;
end;
end;
END.
Followed by:
Post your reply here: |
All Rights Reserved 2003-2013 Ying Fuchen,Xu Pengcheng,Xie Di
Any problem, Please Contact Administrator