|
DataMuseum.dkPresents historical artifacts from the history of: RegneCentralen GIER Computer |
This is an automatic "excavation" of a thematic subset of
See our Wiki for more about RegneCentralen GIER Computer Excavated with: AutoArchaeologist - Free & Open Source Software. |
top - download
Length: 1152 (0x480) Description: Bits:30000714 Sorteringsprogram 5 udg Types: 8-hole paper tape Notes: Gier Text
algol<begin _____integer m,n,p,q,r,k,l,i,j,s; _______select(19);writecr; m:=read integer;n:=read integer;p:=read integer;q:=read integer;r:=0;begin _____integer array A[1:m],B[1:n],C[1:p]; _______ _____for i:=1 step 1 until m do ___ ____ _____ __A[i]:=read integer;for i:=1 step 1 until p do ___ ____ _____ __C[i]:=0; again:r:=r+1;begin _____for i:=1 step 1 until n do ___ ____ _____ __B[i]:=read integer;k:=0;l:=0;for i:=1 step 1 until p do ___ ____ _____ __beginl:=l+k+1;k:=A[l]/2;s:=0; _____for j:=1 step 1 until k do ___ ____ _____ __begin _____l:=l+1;if A[j+l]=B[A[j+l-1]] then __ ____s:=s+1;end; ___if s=k then C[i]:=C[i]+1; __ ____end;if r|q then go to again; ___ __ = ____ __ __end; ___for i:=1 step 1 until p do ___ ____ _____ __begin _____writetext(|< question number |); < >write(|ddd|,i);writecr; < >writetext(|< number of datagroups: |); < >write(|dddd|,C[i]);writecr;writecr;writecr; < >end ___end ___end;t< ___