From 61fcd7e1026a624e2b3cddc92f726942a306b6b3 Mon Sep 17 00:00:00 2001 From: Divyansh Garg Date: Wed, 22 Oct 2025 10:07:42 +0530 Subject: [PATCH] Added CC Starter 208 soln for first 3 Problems in Div 4 --- CodeChef - Starters 208 Contest/ALJMP.cpp | 14 +++++++++ CodeChef - Starters 208 Contest/SBTG.cpp | 33 +++++++++++++++++++++ CodeChef - Starters 208 Contest/SPRCLN.cpp | 9 ++++++ 3 files changed, 56 insertions(+) create mode 100644 CodeChef - Starters 208 Contest/ALJMP.cpp create mode 100644 CodeChef - Starters 208 Contest/SBTG.cpp create mode 100644 CodeChef - Starters 208 Contest/SPRCLN.cpp diff --git a/CodeChef - Starters 208 Contest/ALJMP.cpp b/CodeChef - Starters 208 Contest/ALJMP.cpp new file mode 100644 index 0000000..3244fb4 --- /dev/null +++ b/CodeChef - Starters 208 Contest/ALJMP.cpp @@ -0,0 +1,14 @@ +#include +using namespace std; + +int main() { + // your code goes here + int T; + cin >> T; + while(T--){ + int N; + cin >> N; + if(N%2==1) cout << N/2 + 1 << endl; + else cout << N/2 << endl; + } +} diff --git a/CodeChef - Starters 208 Contest/SBTG.cpp b/CodeChef - Starters 208 Contest/SBTG.cpp new file mode 100644 index 0000000..83ef4a6 --- /dev/null +++ b/CodeChef - Starters 208 Contest/SBTG.cpp @@ -0,0 +1,33 @@ +#include +using namespace std; + +int main() { + // your code goes here + int T; + cin >> T; + while(T--){ + int n,x,k; + cin >> n >> x >> k; + vector a(n); + for(int i=0; i> a[i]; + } + + sort(a.rbegin(), a.rend()); + + for(int i=0; i x) + max++; + } + cout << max+1 << '\n'; + } +} diff --git a/CodeChef - Starters 208 Contest/SPRCLN.cpp b/CodeChef - Starters 208 Contest/SPRCLN.cpp new file mode 100644 index 0000000..b739b24 --- /dev/null +++ b/CodeChef - Starters 208 Contest/SPRCLN.cpp @@ -0,0 +1,9 @@ +#include +using namespace std; + +int main() { + // your code goes here + int X,Y; + cin >> X >> Y; + cout << 30*(X+2*Y); +}