aboutsummaryrefslogtreecommitdiff
path: root/cses/IntroductoryProblems/PalindromeReorder/main.cpp
blob: 411cda88b2e3e48286f5da13b5a4d3312086586a (plain)
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
#include<bits/stdc++.h>

using namespace std;

int main () {
	ios_base::sync_with_stdio(false);
	cin.tie(NULL);
  int n;
  string s;
  cin >> s;
  map<char, int> mp;
  int e = 0, o = 0;
  for (auto ch : s) {
    mp[ch]++;
  }
  if (n & 1) {
    for (auto [key, value] : mp) {
      if (value & 1) {
        o++;
      } else {
        e++;
      }
    }
    if (o > 1) {
      cout << "NO SOLUTION" << '\n';
    } 
  } else {

  }
}