From 45df11b76e8a19055728f26941d7e865782c48f8 Mon Sep 17 00:00:00 2001 From: Vinayak Mohite Date: Mon, 17 May 2021 14:13:08 +0530 Subject: [PATCH 1/3] Reload the Code Gun - Solutions Language Used: C++ Problems: 1. Factor Count in a Number 2. Burn Calories, no kidding! 3. Hamming Distance 4. Mias Essay Paper --- .../Codechef/Reload the Code Gun/RTCG001.cpp | 29 ++++++++++++++ .../Codechef/Reload the Code Gun/RTCG002.cpp | 38 +++++++++++++++++++ .../Codechef/Reload the Code Gun/RTCG003.cpp | 23 +++++++++++ .../Codechef/Reload the Code Gun/RTCG004.cpp | 28 ++++++++++++++ 4 files changed, 118 insertions(+) create mode 100644 Contests/Codechef/Reload the Code Gun/RTCG001.cpp create mode 100644 Contests/Codechef/Reload the Code Gun/RTCG002.cpp create mode 100644 Contests/Codechef/Reload the Code Gun/RTCG003.cpp create mode 100644 Contests/Codechef/Reload the Code Gun/RTCG004.cpp diff --git a/Contests/Codechef/Reload the Code Gun/RTCG001.cpp b/Contests/Codechef/Reload the Code Gun/RTCG001.cpp new file mode 100644 index 0000000..c3adbb8 --- /dev/null +++ b/Contests/Codechef/Reload the Code Gun/RTCG001.cpp @@ -0,0 +1,29 @@ +#include +using namespace std; + +int main() { + #ifndef ONLINE_JUDGE + freopen("input.txt", "r", stdin); + freopen("output.txt", "w", stdout); + #endif + + ios_base::sync_with_stdio(false); + cin.tie(NULL); + + int T; + cin >> T; + while(T--) { + string N; + cin >> N; + + int num = stoi(N); + int ans = 0; + + for (int i=0; i +#include +using namespace std; + +int main() { + #ifndef ONLINE_JUDGE + freopen("input.txt", "r", stdin); + freopen("output.txt", "w", stdout); + #endif + + ios_base::sync_with_stdio(false); + cin.tie(NULL); + + map mp; + mp['D'] = 238; + mp['T'] = 244; + mp['M'] = 138; + mp['B'] = 279; + mp['C'] = 186; + + string S; + cin >> S; + + int cal = 0; + for (int i=0; i +using namespace std; + +int main() { + #ifndef ONLINE_JUDGE + freopen("input.txt", "r", stdin); + freopen("output.txt", "w", stdout); + #endif + + ios_base::sync_with_stdio(false); + cin.tie(NULL); + + string S, T; + cin >> S >> T; + + int ans = 0; + for (int i=0; i +using namespace std; + +int main() { + #ifndef ONLINE_JUDGE + freopen("input.txt", "r", stdin); + freopen("output.txt", "w", stdout); + #endif + + ios_base::sync_with_stdio(false); + cin.tie(NULL); + + int T; + cin >> T; + + while (T--) { + string S; + cin >> S; + + int ans = 0; + int n = S.size(); + for (int i=0; i Date: Mon, 17 May 2021 14:16:09 +0530 Subject: [PATCH 2/3] About the Reload the Code Gun --- .../Codechef/Reload the Code Gun/README.md | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) create mode 100644 Contests/Codechef/Reload the Code Gun/README.md diff --git a/Contests/Codechef/Reload the Code Gun/README.md b/Contests/Codechef/Reload the Code Gun/README.md new file mode 100644 index 0000000..80ff439 --- /dev/null +++ b/Contests/Codechef/Reload the Code Gun/README.md @@ -0,0 +1,18 @@ +# **Reload the Code Gun** + +This coding contest was based on algorithms, data structures and problem solving. + +**Duration**: 30 minutes +**Start time**: 26th December 2020, 18:30 hrs IST +**End time**: 26th December 2020, 19:00 hrs IST + +Here is the [link](https://www.codechef.com/RTCG2020?itm_campaign=contest_listing) to the contest. + +### **Problems:** +- Factor Count in a Number ([RTCG001](https://www.codechef.com/RTCG2020/problems/RTCG001)\) +- Burn Calories, no kidding! ([RTCG002](https://www.codechef.com/RTCG2020/problems/RTCG002)\) +- Hamming Distance ([RTCG003](https://www.codechef.com/RTCG2020/problems/RTCG003)\) +- Mias Essay Paper ([RTCG004](https://www.codechef.com/RTCG2020/problems/RTCG004)\) + + +### **Editorials:** N.A. From 1217f8e06c816380a289f988c28116ef24d9b6c7 Mon Sep 17 00:00:00 2001 From: Vinayak Mohite Date: Mon, 17 May 2021 14:17:49 +0530 Subject: [PATCH 3/3] Add name to contributors --- Contribution.md | 1 + 1 file changed, 1 insertion(+) diff --git a/Contribution.md b/Contribution.md index c614bc9..da0f7c0 100644 --- a/Contribution.md +++ b/Contribution.md @@ -1,5 +1,6 @@ # These Are The Contributors for this Repository +- ## [Vinayak Mohite](https://github.com/VinayakMohite4040) - ## [Yash Shukla](https://github.com/Yash1256) - ## [Kaushik Rishi](https://github.com/kaushik-rishi) - ## [Chandra Kiran G](https://github.com/Chandu-4444)