|
|
@ -1,4 +1,4 @@
|
|
|
|
program login;
|
|
|
|
program tour;
|
|
|
|
|
|
|
|
|
|
|
|
uses
|
|
|
|
uses
|
|
|
|
md5, crt;
|
|
|
|
md5, crt;
|
|
|
@ -39,7 +39,7 @@ hotels: array [0..4] of HOTEL = (
|
|
|
|
var
|
|
|
|
var
|
|
|
|
readinput: string;
|
|
|
|
readinput: string;
|
|
|
|
i, j, distance_total, hnum1, hnum2: integer;
|
|
|
|
i, j, distance_total, hnum1, hnum2: integer;
|
|
|
|
correct, exit: boolean;
|
|
|
|
correct, exit_loop: boolean;
|
|
|
|
usersuccess: boolean = false;
|
|
|
|
usersuccess: boolean = false;
|
|
|
|
velocity, time: real;
|
|
|
|
velocity, time: real;
|
|
|
|
|
|
|
|
|
|
|
@ -50,7 +50,7 @@ procedure hotelmain;
|
|
|
|
var
|
|
|
|
var
|
|
|
|
i : integer;
|
|
|
|
i : integer;
|
|
|
|
begin
|
|
|
|
begin
|
|
|
|
while exit = false do
|
|
|
|
while exit_loop = false do
|
|
|
|
begin
|
|
|
|
begin
|
|
|
|
distance_total := 0;
|
|
|
|
distance_total := 0;
|
|
|
|
for i := 0 to 4 do
|
|
|
|
for i := 0 to 4 do
|
|
|
@ -83,9 +83,9 @@ begin
|
|
|
|
ReadLn(readinput);
|
|
|
|
ReadLn(readinput);
|
|
|
|
|
|
|
|
|
|
|
|
if readinput = 'y' then
|
|
|
|
if readinput = 'y' then
|
|
|
|
exit := true
|
|
|
|
exit_loop := true
|
|
|
|
else
|
|
|
|
else
|
|
|
|
exit := false;
|
|
|
|
exit_loop := false;
|
|
|
|
end;
|
|
|
|
end;
|
|
|
|
end;
|
|
|
|
end;
|
|
|
|
|
|
|
|
|
|
|
|