The world’s Largest Sharp Brain Virtual Experts Marketplace Just a click Away
Levels Tought:
Elementary,Middle School,High School,College,University,PHD
| Teaching Since: | May 2017 |
| Last Sign in: | 399 Weeks Ago, 1 Day Ago |
| Questions Answered: | 66690 |
| Tutorials Posted: | 66688 |
MCS,PHD
Argosy University/ Phoniex University/
Nov-2005 - Oct-2011
Professor
Phoniex University
Oct-2001 - Nov-2016
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 description:
Â
N abducted members of the team are denoted by unique integers.
Â
M humans and the clones are denoted by integers.
Â
Â
Â
Output description.
Â
Tips:
Â
Â
Â
Â
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
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