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 день
Архив постов
Repost from Codeforces|Leetcode|Codechef free solutions
But we solve only for you means 1 person at a time that's why we don't post any thing that
This ques done that ques done wgera wgera in our channel😂
We placed many students till now.
Repost from Codeforces|Leetcode|Codechef free solutions
Reminder
Beware of fraud telegram channels
They are just selling you Plagrised code and sell the codes to many people's.
I will bet you that if you are taking code from them then it is 100 percent sure that you will be not selected for further rounds.
#include <iostream>
#include<bits/stdc++.h>
using namespace std;
int main() {
int t;
cin>>t;
while(t--){
int n,k;
cin>>n>>k;
string s;
cin>>s;
int ans = 0;
for(int i=0;i<n;i++){
if(s[i]=='B'){
ans++;
i+=k-1;
}
}
cout<<ans<<endl;
}
return 0;
}
#include <bits/stdc++.h>
using namespace std;
int main()
{
int t;
cin>>t;
while(t--){
char arr[10][10];
vector<pair<int,int>> v;
for(int i=0;i<10;i++){
for(int j=0;j<10;j++){
cin>>arr[i][j];
if(arr[i][j]=='X'){
v.push_back({i,j});
}
}
}
int ans=0;
for(int i=0;i<v.size();i++){
int r = v[i].first;
int c = v[i].second;
if(r<=4){
if(c<=4){
ans+= 5 - max(4-r,4-c);
}
else{
ans+= 5 - max(4-r,c-5);
}
}
else{
if(c<=4){
ans+= 5 - max(r-5,4-c);
}
else{
ans+= 5 - max(r-5,c-5);
}
}
}
cout<<ans<<endl;
}
}
Proof of previous oa done ✅✅✅
Dm @Cpsoln for more coding round help
Repost from Codeforces|Leetcode|Codechef free solutions
Today's Microsoft slot done
Dm @Cpsoln for any coding round help
Repost from Codeforces|Leetcode|Codechef free solutions
Today's zscalar slot done🤩🤩
Dm @Cpsoln for coding round help
Repost from Codeforces|Leetcode|Codechef free solutions
Microsoft slot done 🥳
Dm @Cpsoln for help in coding rounds of any company
Repost from Codeforces|Leetcode|Codechef free solutions
Today's tesco slots done ✅✅✅
Dm @Cpsoln for coding round help
Repost from Codeforces|Leetcode|Codechef free solutions
Today's atlassian slot done🥳🥳🥳
Dm @Cpsoln for any coding round help
Repost from Codeforces|Leetcode|Codechef free solutions
Deutsche bank today's slot done 🥳
Dm @Cpsoln for coding round help
