Codeforces|Leetcode|Codechef free solutions
Відкрити в Telegram
Free codeforces, Codechef, Leetcode solutions are available 😍😍😍😍😍😍 Helped More than 200+ students to crack coding round in 2022 and helped placed them in Good companies. 🥳🥳🥳🤩🤩🤩 Dm @Cpsoln if you want help in coding round.
Показати більше4 317
Підписники
Немає даних24 години
-137 днів
-5230 днів
Архів дописів
Today I will upload leetcode biweekly solutions here for free.
For This you have to just join the coding scholarship test : https://www.codingninjas.com/studio/contests/scholarship-test-11th-to-12th-july-2023?utm_source=Growth-CS&utm_medium=RJ&utm_campaign=Cpsoln_Hardik_12July
Send Ss to @Cpsoln we will give the link our channel.
Do fast🔥🔥🔥🔥🔥
If you want today's leetcode biweekly solutions for free then Dm @Cpsoln
⚡️Get 100% Free Scholarship ⚡️
Get Premium Courses Worth Lakhs For Free 📂
Get Free Bags🎒 / T-shirts 👕
Free Certification 📃
Eligibility: Anyone Can Join ✅
Fees: ZERO 😍
Last Date: 12th July 📥
Try your Luck Guys 👀
✅ Register Now:https://www.codingninjas.com/studio/contests/scholarship-test-11th-to-12th-july-2023?utm_source=Growth-CS&utm_medium=RJ&utm_campaign=Cpsoln_Hardik_12July
Company name: McKinsey & CompanyRole : Business Analyst
Salary - 35 LPA - 60 LPADue - 9 July (Fill as soon as possible)
Batch - 2021,2022,2023,2024Location- Bengaluru,chennai
Link : https://slickydealer.blogspot.com/2023/07/mckinsey-company-hiring-open.html
Repost from N/a
Google is hiring
Very Good opportunity 🤑🤑🤑
Company name: Google
Role : Software Engineer
Salary - 35- 55 LPA
Due - 7 July (Fill fast application will be closed soon)
Batch - 2022,2023,2024
Location- Bengaluru
Link : https://slickydealer.blogspot.com/2023/07/google-hiring-software-engineer.html?m=1
#include <iostream>
#include<bits/stdc++.h>
using namespace std;
#define ll long long int
template <typename T>istream &operator>>(istream &in, vector<T> &a) {for (auto &x : a)in >> x; return in;};
template <typename T>ostream &operator<<(ostream &out, vector<T> &a) {for (auto &x : a)out << x << ' '; return out;};
template <typename T1, typename T2>ostream &operator<<(ostream &out, const pair<T1, T2> &x) { return out << x.ff << ' ' << x.ss; }
template <typename T1, typename T2>istream &operator>>(istream &in, pair<T1, T2> &x) { return in >> x.ff >> x.ss; }
void solve(){
ll n;
cin >> n;
ll v = sqrt(n);
for (ll k = 2; k <= va k++) {
ll x = 1;
while (pow(k, x - 1) <= n) {
x++;
}
for (ll i = 1; i <= x + 1; i++) {
ll m = (pow(k, i) - 1) / (k - 1);
if (m == n) {
cout << "YES" << endl;
return;
}
}
}
cout << "NO" << endl;
}
int main() {
int t;
cin >> t;
while(t--){
solve();
}
return 0;
}
https://slickydealer.blogspot.com/2023/07/d-rudolph-and-christmas-tree.html
Codeforces D uploaded here 🥳🥳🥳🥳🥳🥳
https://slickydealer.blogspot.com/2023/07/c-rudolf-and-another-competition.html
Codeforces C will be uploaded here 🥳🥳🥳
#include <iostream>
#include <string>
using namespace std;
void sol() {
string a1, a2, a3;
cin >> a1 >> a2 >> a3;
char c = '.';
for (int i = 0; i < 3; i++) {
if (a1[i] == a2[i] && a1[i] == a3[i]) {
c = a1[i];
}
}
if (a1[0] == a1[1] && a1[0] == a1[2]) {
c = a1[0];
}
if (a2[0] == a2[1] && a2[0] == a2[2]) {
c = a2[0];
}
if (a3[0] == a3[1] && a3[0] == a3[2]) {
c = a3[0];
}
if (a1[0] == a2[1] && a1[0] == a3[2]) {
c = a1[0];
}
if (a3[0] == a2[1] && a3[0] == a1[2]) {
c = a3[0];
}
if (c == '.') {
cout << "DRAW" << endl;
} else {
cout << c << endl;
}
}
int main() {
int t;
cin >> t;
while (t--) {
sol();
}
return 0;
}
