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 1196. History Exam

WA? why?
Posted by vitya 22 Jun 2011 00:25
var
a:array[1..15000] of integer;
i:integer;
m,n,k:integer;
b:array[1..1000000] of longint;
j:integer;
Begin
k:=0;
readln(n);
for i:=1 to n do read(a[i]);
readln(m);
for j:=1 to m do readln(b[j]);
for i:=1 to n do
for j:=1 to m do
if b[j]=a[i] then k:=k+1;
writeln(k);
end.
Re: WA? why?
Posted by sftuit 8 Oct 2012 16:20
2
22
22
4
22
22
22
22
Because your answer is 8?
Re: WA? why?
Posted by Ealham Al Musabbir 28 Jun 2015 21:40
Thanks...
:)