Maurice Tutor

(5)

$15/per page/Negotiable

About Maurice Tutor

Levels Tought:
Elementary,Middle School,High School,College,University,PHD

Expertise:
Algebra,Applied Sciences See all
Algebra,Applied Sciences,Biology,Calculus,Chemistry,Economics,English,Essay writing,Geography,Geology,Health & Medical,Physics,Science Hide all
Teaching Since: May 2017
Last Sign in: 399 Weeks Ago, 1 Day Ago
Questions Answered: 66690
Tutorials Posted: 66688

Education

  • MCS,PHD
    Argosy University/ Phoniex University/
    Nov-2005 - Oct-2011

Experience

  • Professor
    Phoniex University
    Oct-2001 - Nov-2016

Category > Computer Science Posted 17 Sep 2017 My Price 8.00

team of heroes

Skynet was on a rise. In order to fight against the machines, the Resistance formed a team of heroes. However N heroes from the team were abducted by Skynet. Skynet then cloned some of those members and sent them against the Resistance along with some of the original members and other civilians. Now the Resistance is ready with a counter-atack but they do not know how many of the team members have been sent back by Skynet from those N abducted team members.

 

Help the Resistance to find out the number of members sent back by Skynet.

 

Input

 

Input description:

 

N abducted members of the team are denoted by unique integers.

 

M humans and the clones are denoted by integers.

 

  • The first line contains two space separated integers N and M denoting the number of elements in both the arrays respectively.
  • The next line contains N space-separated unique integers A1, A2, ..., AN denoting the elements of array1 .
  • The next line contains M space-separated integers A1, A2, ..., AN denoting the elements of array2 ".

 

Output

 

Output description.

 

Tips:

 

  • Output a single line containing the number of team members sent back by Skynet.

 

Constraints

 

  • 1 = m = n = 1000000

 

Example

Input: Case1: 5 5 1 2 3 4 5 1 2 4 5 3 Case2: 5 4 1 2 3 4 5 2 2 3 1 Output: Case1: 5 Case1: 3

Answers

(5)
Status NEW Posted 17 Sep 2017 12:09 PM My Price 8.00

Hel-----------lo -----------Sir-----------/Ma-----------dam-----------Tha-----------nk -----------You----------- fo-----------r u-----------sin-----------g o-----------ur -----------web-----------sit-----------e a-----------nd -----------and----------- ac-----------qui-----------sit-----------ion----------- of----------- my----------- po-----------ste-----------d s-----------olu-----------tio-----------n.P-----------lea-----------se -----------pin-----------g m-----------e o-----------n c-----------hat----------- I -----------am -----------onl-----------ine----------- or----------- in-----------box----------- me----------- a -----------mes-----------sag-----------e I----------- wi-----------ll

Not Rated(0)