aboutsummaryrefslogtreecommitdiff
path: root/HelpfulMaths
diff options
context:
space:
mode:
Diffstat (limited to 'HelpfulMaths')
-rw-r--r--HelpfulMaths/HelpfulMaths.cpp24
1 files changed, 0 insertions, 24 deletions
diff --git a/HelpfulMaths/HelpfulMaths.cpp b/HelpfulMaths/HelpfulMaths.cpp
deleted file mode 100644
index 580b2fa..0000000
--- a/HelpfulMaths/HelpfulMaths.cpp
+++ /dev/null
@@ -1,24 +0,0 @@
-#include<bits/stdc++.h>
-
-using namespace std;
-
-int main() {
- string s;
- cin >> s;
- vector<int> v;
- for (auto ch : s) {
- if(ch != '+') {
- v.push_back(ch - 48);
- }
- }
- sort(v.begin(), v.end());
- for(int i = 0; i < v.size(); i++) {
- if(i == v.size() - 1) {
- cout << v[i];
- }
- else {
- cout << v[i] << "+";
- }
- }
- cout << '\n';
-}