-
Notifications
You must be signed in to change notification settings - Fork 0
/
11503_VirtualFriends.cpp
56 lines (47 loc) · 1.05 KB
/
11503_VirtualFriends.cpp
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
#include<iostream>
#include<map>
#include<cstring>
using namespace std;
int main()
{
int T;
scanf("%d",&T);
while(T--)
{
}
return 0;
}
/*map<string,int>frnd;
long long int T,F,cnt;
string s1,s2;
cin>>T;
while(T--)
{
cnt=0;
cin>>F;
while(F--)
{
cin>>s1>>s2;
if((frnd.find(s1)->second<1)&&(frnd.find(s2)->second<1))
{
cnt=2;
frnd.insert(pair<string,int>(s1,cnt));
frnd.insert(pair<string,int>(s2,cnt));
}
else
{
if(frnd.find(s1)->second<1)
{
cnt=frnd.find(s1)->second+1;
frnd.insert(pair<string,int>(s1,cnt));
}
if(frnd.find(s2)->second<1)
{
cnt=frnd.find(s2)->second+1;
frnd.insert(pair<string,int>(s2,cnt));
}
}
cout<<cnt<<endl;
}
frnd.clear();
}*/