fork download
  1. #include <bits/stdc++.h>
  2. #define ll long long
  3. using namespace std;
  4.  
  5. void solve()
  6. {
  7. vector<int> vc = {};
  8. vector<char> s;
  9.  
  10. for (auto it : s)
  11. {
  12. cin >> it;
  13.  
  14. if (it != '+')
  15. {
  16. vc.push_back(it);
  17. }
  18. }
  19. sort(vc.begin(), vc.end());
  20. for (auto it : vc)
  21. {
  22. cout << it << '+';
  23. }
  24. }
  25. int main()
  26. {
  27. ll t = 1;
  28. // cin >> t;
  29. while (t--)
  30. {
  31. solve();
  32. }
  33. }
Success #stdin #stdout 0s 5328KB
stdin
Standard input is empty
stdout
Standard output is empty