diff options
| -rw-r--r-- | StringTask/StringTask.cpp | 20 | ||||
| -rw-r--r-- | chocolateFeastRevised/chocolateFeastRevised.cpp | 19 | ||||
| -rw-r--r-- | cutTheSticksJoe/cutTheSticksJoe.cpp | 21 | ||||
| -rw-r--r-- | cutTheSticksRevised/cutTheSticksRevised.cpp | 10 |
4 files changed, 0 insertions, 70 deletions
diff --git a/StringTask/StringTask.cpp b/StringTask/StringTask.cpp deleted file mode 100644 index 74d4635..0000000 --- a/StringTask/StringTask.cpp +++ /dev/null @@ -1,20 +0,0 @@ -#include <bits/stdc++.h> - -using namespace std; - -int main() { - ios::sync_with_stdio(false); - cin.tie(0); - string s; - cin >> s; - string vowels = "aeiouy"; - set<char> st(vowels.begin(), vowels.end()); - string ans = ""; - for (char ch : s) { - if (!st.count(tolower(ch))) { - ans += "." + string(1, tolower(ch)); - } - } - cout << ans << '\n'; - return 0; -} diff --git a/chocolateFeastRevised/chocolateFeastRevised.cpp b/chocolateFeastRevised/chocolateFeastRevised.cpp deleted file mode 100644 index edaa983..0000000 --- a/chocolateFeastRevised/chocolateFeastRevised.cpp +++ /dev/null @@ -1,19 +0,0 @@ -#include<bits/stdc++.h> - -using namespace std; - -int main() { - int tt; - cin >> tt; - while (tt--) { - int n, c, m; - cin >> n >> c >> m; - long long ans = n / c, cur = ans; - while (cur >= m) { - ans += cur / m; - cur = (cur % m) + (cur / m); - } - cout << ans << '\n'; - } - return 0; -} diff --git a/cutTheSticksJoe/cutTheSticksJoe.cpp b/cutTheSticksJoe/cutTheSticksJoe.cpp deleted file mode 100644 index 4504062..0000000 --- a/cutTheSticksJoe/cutTheSticksJoe.cpp +++ /dev/null @@ -1,21 +0,0 @@ -#include <bits/stdc++.h> - -using namespace std; - -int main() { - ios::sync_with_stdio(false); - cin.tie(0); - int n; - cin >> n; - map<int, int> mp; - for (int i = 0; i < n; i++) { - int x; - cin >> x; - ++mp[x]; - } - for (auto p : mp) { - cout << n << '\n'; - n -= p.second; - } - return 0; -} diff --git a/cutTheSticksRevised/cutTheSticksRevised.cpp b/cutTheSticksRevised/cutTheSticksRevised.cpp deleted file mode 100644 index 0d63fb4..0000000 --- a/cutTheSticksRevised/cutTheSticksRevised.cpp +++ /dev/null @@ -1,10 +0,0 @@ -#include<bits/stdc++.h> - -using namespace std; - -int main(){ - - - - return 0; -} |
