uses windows,messages;
Var
timeintvec:procedure;
counter,chet,year,day_of_week,month,day,hour,minute,second,milisecond,day1,month1,year1,hour1,minute1:word;
fil:text;
sobitie:string;
Procedure int08;
const
seconds=60;
Begin
inline($8); { 18.6 raz v secundu,prerivanie taimera}
timeintvec;chet:=chet+1; {nakaplivaem prerivanie taimera 60*18.6}
if chet=1116 then begin chet:=0; {sbrasivaem scetchik}
gettime(hour,minute,second,milisecond);{poluchaem vrema}
getdate(year,month,day,day_of_week); {poluchaem datu}
assign(fil,'d:\f1.txt');
reset(fil); {otkrivaem fail sobitii}
while not eof(fil) do
begin
readln(fil,year1,month1,day1,minute1,sobitie); {schitivaem daty,vremi,sobitia po strokam}
if year1=year then
if month1=month then
if day1=day then
if hour1=hour then
if minute1=minute then {sravnivaem s tekychei datoi,esli sovpadaet,to vivodim sobitie}
writeln(sobitie); {vivod sobitia}
end;
close(fil);
end; end;
BEGIN
counter:=0;
gettime(hour,minute,second,milisecond);{poluchaem tekushee vrema}
getdate(year,month,day,day_of_week); {poluchaem tekushuu daty}
assign(fil,'d:\f1.txt'); {svizivaem failovuu peremennuu s failon}
reset(fil);
while not eof(fil) do
begin
readln(fil,year1,month1,day1,minute1,sobitie); {shitivaem po strokam daty,vremi i sobitie iz faila}
if year1=year then
if month=month1 then
if day1=day then
if hour1=hour then
if minute1=minute then
writeln(sobitie);
end;
close(fil);
getintVec($8,@timeintVec); {poluchenii vectora }
setIntVec($8,addr(int08)); {ustanovka vectora}
keep(0); end.