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

void solve()
{
int n;
cin >> n;
map<int, int> love;
for (int i = 0; i < n; i++)
{
int d;
cin >> d;
love[d]++;
}
for (auto hsh : love)
{
auto [ilove, ljl] = hsh;
if (ljl % 2)
{
cout << "NO" << '\n';
return;
}
}
cout << "YES" << '\n';
for (auto hsh : love)
{
auto [ilove, ljl] = hsh;

for (int i = 0; i < ljl; i++)
{
cout << ilove << ' ';
}
}
}


好想念unk呜呜┭┮﹏┭┮
情人节快乐喵喵~~