UVA 484 - The Department of Redundancy Department

UVA Sep 1, 2020

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

Tags

Great! You've successfully subscribed.
Great! Next, complete checkout for full access.
Welcome back! You've successfully signed in.
Success! Your account is fully activated, you now have access to all content.