Skip to content

Commit

Permalink
Merge pull request #2206 from Georghus/patch-1
Browse files Browse the repository at this point in the history
Hackerrank No idea!!!!
  • Loading branch information
fineanmol authored Oct 3, 2022
2 parents 86eaff2 + c1eaf12 commit daee856
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions HackerRank No Idea
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
happy=0;
n,m=map(int,input().split());
lst=list(map(int,input().split()));
A=set(map(int,input().split()));
B=set(map(int,input().split()));
for i in lst:
if (i in A)==1:
happy+=1;
elif (i in B)==1:
happy-=1;
else:
continue;
print(happy);

0 comments on commit daee856

Please sign in to comment.