ENG  RUSTimus Online Judge
Online Judge
Problems
Authors
Online contests
About Online Judge
Frequently asked questions
Site news
Webboard
Links
Problem set
Submit solution
Judge status
Guide
Register
Update your info
Authors ranklist
Current contest
Scheduled contests
Past contests
Rules
back to board

Discussion of Problem 1880. Psych Up's Eigenvalues

AC (Pascal)
Posted by ArcKontyR 9 Jun 2017 11:20
var i,j,n,n#,n2,a,m:integer;
       l:array[#..400#,#..2] of longint;
begin
read(n);
for i:=# to n do read(l[i,#]);
read(n1);
for i:=# to n# do begin
                              read(a);
                              for j:=# to 400# do if l[j,#]=a then l[j,2]+=#;
                              end;
read(n2);
for i:=# to n2 do begin
                              read(a);
                              for j:=# to 400# do if l[j,#]=a then l[j,2]+=#;
                              end;
for i:=# to 400# do if l[i,2]=2 then m:=m+#;
writeln(m);
end.

Where is # change it with 1