UVA 484 - The Department of Redundancy Department

Problem PDF

Solution:

#include
#include
#include
#include
#include
#include
#include
#include
#include
#include
#include
#define pi 2*acos(0.0)
using namespace std;

int main()
{
    vectorv;
    mapmp;
    mapfind;
    int i,n;
    while(scanf("%d",&n)==1)
    {
        v.push_back(n);
        mp[n]++;
    }
     for(i=0;i
https://github.com/Shipu/OnlineJudgeProblemSolutionWithCPlusPlus/tree/master/uva/484/484.cpp