///...................SUBHASHIS MOLLICK....................///
///.....DEPARTMENT OF COMPUTER SCIENCE AND ENGINEERING....///
///.............ISLAMIC UNIVERSITY,BANGLADESH.............///
///.....................SESSION-(14-15)....................///
#include<stdio.h>
#include<string.h>
#include<math.h>
#include<algorithm>
#include<ctype.h>
#include<bits/stdc++.h>
using namespace std;
main()
{
map<long long ,long long>mp;
vector<long long>vec;
long long a;
while(cin>>a)
{
if(mp[a]>0)
{
mp[a]++;
}
else
{
vec.push_back(a);
mp[a]=1;
}
}for(long i=0;i<vec.size();i++)
{
printf("%ld %ld\n", vec[i], mp[vec[i]]);
}
}
///.....DEPARTMENT OF COMPUTER SCIENCE AND ENGINEERING....///
///.............ISLAMIC UNIVERSITY,BANGLADESH.............///
///.....................SESSION-(14-15)....................///
#include<stdio.h>
#include<string.h>
#include<math.h>
#include<algorithm>
#include<ctype.h>
#include<bits/stdc++.h>
using namespace std;
main()
{
map<long long ,long long>mp;
vector<long long>vec;
long long a;
while(cin>>a)
{
if(mp[a]>0)
{
mp[a]++;
}
else
{
vec.push_back(a);
mp[a]=1;
}
}for(long i=0;i<vec.size();i++)
{
printf("%ld %ld\n", vec[i], mp[vec[i]]);
}
}
কোন মন্তব্য নেই:
একটি মন্তব্য পোস্ট করুন