- 235
- 90 642
Computer Knowledge
India
เข้าร่วมเมื่อ 1 มิ.ย. 2024
Hello Everyone
My self Abhishek Kumar and I am a Computer Science Engineer and warm welcome you to this channel guys...
This channel is related to computer knowledges, programming languages, different programs, solution code, updates and information , Off-campus Placement updates, Internships updates etc.
So, Subscribe to this channel..💯👍😚
and stay updated.
Bye bye...
See you in next video.
Your friend
Abhishek Kumar
Owner of this channel
Telegram group:
t.me/computerknowledge4217
Instagram profile :
computerknowledge421?igsh=MWE4amRjYmgwZjg0dg==
My self Abhishek Kumar and I am a Computer Science Engineer and warm welcome you to this channel guys...
This channel is related to computer knowledges, programming languages, different programs, solution code, updates and information , Off-campus Placement updates, Internships updates etc.
So, Subscribe to this channel..💯👍😚
and stay updated.
Bye bye...
See you in next video.
Your friend
Abhishek Kumar
Owner of this channel
Telegram group:
t.me/computerknowledge4217
Instagram profile :
computerknowledge421?igsh=MWE4amRjYmgwZjg0dg==
Work from home (Remote ) job || Software Developer #job
Work from home (Remote ) job || Software Developer #job
Apply link:
www.linkedin.com/jobs/view/4114046715
Apply link:
www.linkedin.com/jobs/view/4114046715
มุมมอง: 4
วีดีโอ
STARTERS 167 #codechef
มุมมอง 97 ชั่วโมงที่ผ่านมา
STARTERS 167 #codechef Our official Telegram channel 👇 t.me/computerknowledge4217
Happy New year 2025 to all of you...#2025
มุมมอง 216 ชั่วโมงที่ผ่านมา
Happy New year 2025 to all of you...#2025
D. Refined Product Optimality solution #codeforces
มุมมอง 6447 ชั่วโมงที่ผ่านมา
D. Refined Product Optimality solution #codeforces Good Bye 2024 : 2025 is Near
C. Bewitching Stargazer solution #codeforces
มุมมอง 7667 ชั่วโมงที่ผ่านมา
C. Bewitching Stargazer solution #codeforces Good Bye 2024 : 2025 is Near
B. Outstanding Impressionist solution #codeforces
มุมมอง 9277 ชั่วโมงที่ผ่านมา
B. Outstanding Impressionist solution #codeforces Good Bye 2024 : 2025 is Near
A. Tender Carpenter solution code #codeforces
มุมมอง 1K7 ชั่วโมงที่ผ่านมา
A. Tender Carpenter solution code #codeforces Good Bye 2024 : 2025 is Near
Codeforces Today's contest || Good Bye 2024:2025 is NEAR #codeforces
มุมมอง 2009 ชั่วโมงที่ผ่านมา
Codeforces Today's contest || Good Bye 2024:2025 is NEAR #codeforces Our official Telegram channel 👇 t.me/computerknowledge4217
Christmas Gifts || STARTERS 166 #codechef
มุมมอง 3214 ชั่วโมงที่ผ่านมา
Christmas Gifts #codechef Our official Telegram channel 👇 t.me/computerknowledge4217
Divisors Array (Easy Version) || STARTERS 166 #codechef
มุมมอง 21914 ชั่วโมงที่ผ่านมา
Divisors Array (Easy Version) #codechef Our official Telegram channel 👇 t.me/computerknowledge4217
Costly Permutation || STARTERS 166 #codechef
มุมมอง 24914 ชั่วโมงที่ผ่านมา
Costly Permutation #codechef Our official Telegram channel 👇 t.me/computerknowledge4217
Chefland Library || STARTERS 166 #codechef
มุมมอง 8514 ชั่วโมงที่ผ่านมา
Chefland Library || STARTERS 166 #codechef
MERRY CHRISTMAS! solution || STARTERS 166 #codechef #codechefsolution
มุมมอง 5914 ชั่วโมงที่ผ่านมา
MERRY CHRISTMAS! solution || STARTERS 166 #codechef #codechefsolution
B. Digits solution code || Educational Codeforces Round 173(Div.2) || #codeforces
มุมมอง 54416 ชั่วโมงที่ผ่านมา
B. Digits solution code || Educational Codeforces Round 173(Div.2) || #codeforces
TCS HackQuest Season 9 || TCS Off-campus drive #tcs
มุมมอง 3916 ชั่วโมงที่ผ่านมา
TCS HackQuest Season 9 || TCS Off-campus drive #tcs
A. Coin Transformation solution || Educational Codeforces Round 173(Div.2) || #codeforces
มุมมอง 56316 ชั่วโมงที่ผ่านมา
A. Coin Transformation solution || Educational Codeforces Round 173(Div.2) || #codeforces
Educational Codeforces Round 173(Div.2) #codeforces
มุมมอง 20219 ชั่วโมงที่ผ่านมา
Educational Codeforces Round 173(Div.2) #codeforces
G. Snakes || Codeforces Round 995(Div.3) #codeforces
มุมมอง 15721 ชั่วโมงที่ผ่านมา
G. Snakes || Codeforces Round 995(Div.3) #codeforces
F. Joker || Codeforces Round 995(Div.3) #codeforces
มุมมอง 20921 ชั่วโมงที่ผ่านมา
F. Joker || Codeforces Round 995(Div.3) #codeforces
E. Best Price || Codeforces Round 995(Div.3) #codeforces
มุมมอง 80821 ชั่วโมงที่ผ่านมา
E. Best Price || Codeforces Round 995(Div.3) #codeforces
D. Counting Pairs || Codeforces Round 995(Div.3) #codeforces
มุมมอง 45121 ชั่วโมงที่ผ่านมา
D. Counting Pairs || Codeforces Round 995(Div.3) #codeforces
C. Preparing for the Exam || Codeforces Round 995(Div.3) #codeforces
มุมมอง 1.1K21 ชั่วโมงที่ผ่านมา
C. Preparing for the Exam || Codeforces Round 995(Div.3) #codeforces
B. Journey || Codeforces Round 995(Div.3) #codeforces
มุมมอง 19221 ชั่วโมงที่ผ่านมา
B. Journey || Codeforces Round 995(Div.3) #codeforces
A. Preparing for the Olympiad || Codeforces Round 995(Div.3) #codeforces
มุมมอง 66521 ชั่วโมงที่ผ่านมา
A. Preparing for the Olympiad || Codeforces Round 995(Div.3) #codeforces
100464. Maximum number of distinct elements after operation || Leetcode weekly contest429 #leetcode
มุมมอง 47วันที่ผ่านมา
100464. Maximum number of distinct elements after operation || Leetcode weekly contest429 #leetcode
Codeforces Round 995(Div.3) #codeforces
มุมมอง 126วันที่ผ่านมา
Codeforces Round 995(Div.3) #codeforces
F. MEX OR Mania solution code || Codeforces Global Round 994(Div.2) #codeforces
มุมมอง 57วันที่ผ่านมา
F. MEX OR Mania solution code || Codeforces Global Round 994(Div.2) #codeforces
E. Broken Queries solution || Codeforces Global Round 994(Div.2) #codeforces
มุมมอง 106วันที่ผ่านมา
E. Broken Queries solution || Codeforces Global Round 994(Div.2) #codeforces
B. pspspsps solution || Codeforces Global Round 994(Div.2) #codeforces
มุมมอง 950วันที่ผ่านมา
B. pspspsps solution || Codeforces Global Round 994(Div.2) #codeforces
Like and Subscribe and stay updated..👍
😢
bhai code correct hai to comment me code de do
code in comment
code
Like and Subscribe guys 👍
can you pass me code this problem
help me pls
C. In C++ language #include <bits/stdc++.h> using namespace std; pair<long long, int> computeLucky(long long left, long long right, int threshold) { if (right - left + 1 < threshold) { return {0, 0}; } if (right - left + 1 == 1) { return {left, 1}; } long long mid = left + (right - left) / 2; if ((right - left + 1) % 2) { pair<long long, int> leftResult = computeLucky(left, mid - 1, threshold); long long totalLucky = mid + 2 * leftResult.first + mid * leftResult.second; int totalSegments = 2 * leftResult.second + 1; return {totalLucky, totalSegments}; } else { pair<long long, int> leftResult = computeLucky(left, mid, threshold); long long totalLucky = 2 * leftResult.first + mid * leftResult.second; int totalSegments = 2 * leftResult.second; return {totalLucky, totalSegments}; } } int main() { ios::sync_with_stdio(false); cin.tie(NULL); int test_cases; cin >> test_cases; while (test_cases--) { long long n, k; cin >> n >> k; pair<long long, int> result = computeLucky(1, n, k); cout << result.first << " "; } return 0; }
Like and Subscribe guys..👍 B. In C++ language #include <bits/stdc++.h> using namespace std; #define int long long int32_t main() { int t; cin>>t; while(t--) { int n; cin>>n; vector<pair<int,int>>vec(n); for(int i=0;i<n;i++) { cin>>vec[i].first>>vec[i].second; } string ans1=""; set<int>st; map<int,int>mp; for(int i=0;i<n;i++) { if(vec[i].first==vec[i].second) { st.insert(vec[i].first); mp[vec[i].first]++; } } vector<int>ans; for(auto it=st.begin();it!=st.end();it++) { ans.push_back(*it); } for(int i=0;i<n;i++) { int l=vec[i].first; int r=vec[i].second; if(l==r) { if(mp[l]>1) { ans1.push_back('0'); } else { ans1.push_back('1'); } continue; } int lower=lower_bound(ans.begin(),ans.end(),l)-ans.begin(); int upper=lower_bound(ans.begin(),ans.end(),r+1)-ans.begin(); int len=(upper-1)-lower+1; if(len==r-l+1) { ans1.push_back('0'); } else { ans1.push_back('1'); } } cout<<ans1<<endl; } return 0; }
Like and Subscribe guys 👍 A. In C++ language #include <bits/stdc++.h> using namespace std; #define int long long int32_t main() { int t; cin>>t; while(t--) { int n; cin>>n; vector<int>vec(n); for(int i=0;i<n;i++) { cin>>vec[i]; } bool c=true; for(int i=0;i<n;i++) { if(i-1>=0 && vec[i-1]>=vec[i]) { if(2*vec[i]>vec[i-1]) { c=false; break; } } else if(i-1>=0 && vec[i-1]<vec[i]) { if(2*vec[i-1]>vec[i]) { c=false; break; } } if(i+1<=n-1 && vec[i+1]>=vec[i]) { if(2*vec[i]>vec[i+1]) { c=false; break; } } else if(i+1<=n-1 && vec[i+1]<vec[i]) { if(2*vec[i+1]>vec[i]) { c=false; break; } } } if(c==false) { cout<<"Yes"<<endl; } else { cout<<"NO"<<endl; } } }
correct code do bhai
A. In C++ language #include <bits/stdc++.h> using namespace std; #define int long long int32_t main() { int t; cin>>t; while(t--) { int n; cin>>n; vector<int>vec(n); for(int i=0;i<n;i++) { cin>>vec[i]; } bool c=true; for(int i=0;i<n;i++) { if(i-1>=0 && vec[i-1]>=vec[i]) { if(2*vec[i]>vec[i-1]) { c=false; break; } } else if(i-1>=0 && vec[i-1]<vec[i]) { if(2*vec[i-1]>vec[i]) { c=false; break; } } if(i+1<=n-1 && vec[i+1]>=vec[i]) { if(2*vec[i]>vec[i+1]) { c=false; break; } } else if(i+1<=n-1 && vec[i+1]<vec[i]) { if(2*vec[i+1]>vec[i]) { c=false; break; } } } if(c==false) { cout<<"Yes"<<endl; } else { cout<<"NO"<<endl; } } }
Like and Subscribe guys..👍
please share this code in comments
A. In C++ language #include <bits/stdc++.h> using namespace std; #define int long long int32_t main() { int t; cin>>t; while(t--) { int n; cin>>n; vector<int>vec(n); for(int i=0;i<n;i++) { cin>>vec[i]; } bool c=true; for(int i=0;i<n;i++) { if(i-1>=0 && vec[i-1]>=vec[i]) { if(2*vec[i]>vec[i-1]) { c=false; break; } } else if(i-1>=0 && vec[i-1]<vec[i]) { if(2*vec[i-1]>vec[i]) { c=false; break; } } if(i+1<=n-1 && vec[i+1]>=vec[i]) { if(2*vec[i]>vec[i+1]) { c=false; break; } } else if(i+1<=n-1 && vec[i+1]<vec[i]) { if(2*vec[i+1]>vec[i]) { c=false; break; } } } if(c==false) { cout<<"Yes"<<endl; } else { cout<<"NO"<<endl; } } }
Like and Subscribe guys..👍
Like and Subscribe and stay updated..👍
Subscribe to our channel which supports me and solution video of further contest will be uploaded..👍
Like and Subscribe guys
Subscribe to our channel which supports me and solution video of further contest will be uploaded..👍
Yes, please give the code in comments🙏
can u give the code in comments?
Like and Subscribe
Subscribe to our channel which supports me and solution video of further contest will be uploaded..👍
Like and Subscribe 🙏
Like and Subscribe...🙏
//In C++ 17 language #include <bits/stdc++.h> using namespace std; typedef long long ll; vector<int> determineDigits(ll n, ll d) { vector<int> ans; // Always include 1 ans.push_back(1); // Include 3 if n >= 3 or d is divisible by 3 if (n >= 3 || d % 3 == 0) { ans.push_back(3); } // Include 5 if d is 5 if (d == 5) { ans.push_back(5); } // Include 7 if n >= 3 or (n == 2 and d == 7) if (n >= 3 || (n == 2 && d == 7)) { ans.push_back(7); } // Include 9 if special condition or n >= 6 if (n >= 6) { ans.push_back(9); } else { ll factorial = 1; int i = 2; while (i <= n) { factorial *= i; i++; } if ((factorial * d) % 9 == 0) { ans.push_back(9); } } return ans; } int main() { int t; cin >> t; while (t--) { ll n, d; cin >> n >> d; vector<int> ans = determineDigits(n, d); for (int digit : ans) { cout << digit << " "; } cout << " "; } return 0; }
Do the second one bro
Thank you ❤👍 It is 💯 correct...
#include <stdio.h> // Function to calculate maximum number of coins long long maxCoins(long long n) { if (n <= 3) return 1; // Cannot transform if n <= 3 long long coins = 1; // Start with 1 coin while (n > 3) { n /= 4; // Each transformation divides the value by 4 coins *= 2; // Each transformation doubles the number of coins } return coins; } int main() { int t; scanf("%d", &t); // Number of test cases while (t--) { long long n; scanf("%lld", &n); // Read coin value for each test case printf("%lld ", maxCoins(n)); // Output required result } return 0; }
Like and Subscribe it ...
Can you provide the code? I wasn't able to understand what the question was asking :(
code
code
code
provide the correct code
WRONG CODE
Recheck your code
Like and Subscribe now
code in description
Like and Subscribe now...
Like and subscribe us and take code from our Telegram channel..
Rank ma name hai but mail nhi aaya abhi tak
It will come soon..
Thank you ❤👍
👍
👍
👍
👍