diff options
| author | omagdy7 <omar.professional8777@gmail.com> | 2022-11-05 01:41:11 +0200 |
|---|---|---|
| committer | omagdy7 <omar.professional8777@gmail.com> | 2022-11-05 01:41:11 +0200 |
| commit | 7f856c7ff080b8d455b9ed16c2e57dd862c3879d (patch) | |
| tree | c2baf90f98c91567358003d6b97a4afed7fa9b42 /HelpfulMaths | |
| parent | c52b36c6a37fdb1d1de146d3939cb42e2c691f44 (diff) | |
| download | competitive-programming-7f856c7ff080b8d455b9ed16c2e57dd862c3879d.tar.xz competitive-programming-7f856c7ff080b8d455b9ed16c2e57dd862c3879d.zip | |
moved some file
Diffstat (limited to 'HelpfulMaths')
| -rw-r--r-- | HelpfulMaths/HelpfulMaths.cpp | 24 |
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'; -} |
