Codeforces|Leetcode|Codechef free solutions
Open in 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.
Show more4 317
Subscribers
No data24 hours
-137 days
-5230 days
Posts Archive
Repost from Codeforces|Leetcode|Codechef free solutions
Since your placement and intern session is coming 🤓🤓
So don't miss any opportunity in this recession😇😇😇😇
📌📌📌📌📌📌📌📌📌📌📌📌
No scam No fraud because we are not like other telegram channels.
If you want help in coding round of any company then Dm @Cpsoln and book your slot ✅✅✅✅
Repost from Codeforces|Leetcode|Codechef free solutions
Since your placement and intern session is coming 🤓🤓
So don't miss any opportunity in this recession😇😇😇😇
📌📌📌📌📌📌📌📌📌📌📌📌
No scam No fraud because we are not like other telegram channels.
If you want help in coding round of any company then Dm @Cpsoln and book your slot ✅✅✅✅
// Online C++ compiler to run C++ program online
#include <iostream>
using namespace std;
int main() {
int t;
cin>>t;
while(t--){
int n,m;
cin>>n>>m;
int x=(2*m)+1;
while(x<=n*m){
for(int i=0;i<m;i++)
cout<<x+i<<" ";
cout<<endl;
x+=2*m;
}
for(int i=1;i<=m;i++)cout<<i<<" ";
cout<<endl;
for(int i=3*m+1;i<=4*m;i++)cout<<i<<" ";
cout<<endl;
x=m+1;
while(x<=n*m){
if(x==3*m+1){
x+=2*m;
continue;
}
for(int i=0;i<m;i++)
cout<<x+i<<" ";
cout<<endl;
x+=2*m;
}
}
return 0;
}
#include <iostream>
using namespace std;
const int MOD = 1e9 + 7;
void solve() {
int stones, colors;
cin >> stones >> colors;
long long ways = 1;
for (int i = 0; i < stones; i++) {
if (i < colors) {
ways = (ways * (colors - i)) % MOD;
} else {
break;
}
}
cout << ways << endl;
}
int main() {
int testCases;
cin >> testCases;
while (testCases--) {
solve();
}
return 0;
}
If anyone want to sell his/her leetcode then dm @Cpsoln
Atleast 150 questions solved and 15 contest given
Repost from Codeforces|Leetcode|Codechef free solutions
Since your placement and intern session is coming 🤓🤓
So don't miss any opportunity in this recession😇😇😇😇
📌📌📌📌📌📌📌📌📌📌📌📌
No scam No fraud because we are not like other telegram channels.
If you want help in coding round of any company then Dm @Cpsoln and book your slot ✅✅✅✅
https://www.codechef.com/users/codechefercode
This id is on sale dm @Cpsoln to buy
https://codeforces.com/profile/kingsMan
This id on sale dm @Cpsoln to bu
If anyone want to sell his/her leetcode then dm @Cpsoln
Atleast 150 questions solved and 15 contest given
Repost from Codeforces|Leetcode|Codechef free solutions
Since your placement and intern session is coming 🤓🤓
So don't miss any opportunity in this recession😇😇😇😇
📌📌📌📌📌📌📌📌📌📌📌📌
No scam No fraud because we are not like other telegram channels.
If you want help in coding round of any company then Dm @Cpsoln and book your slot ✅✅✅✅
If anyone want to sell his/her leetcode then dm @Cpsoln
Atleast 150 questions solved and 15 contest given
Repost from Codeforces|Leetcode|Codechef free solutions
Since your placement and intern session is coming 🤓🤓
So don't miss any opportunity in this recession😇😇😇😇
📌📌📌📌📌📌📌📌📌📌📌📌
No scam No fraud because we are not like other telegram channels.
If you want help in coding round of any company then Dm @Cpsoln and book your slot ✅✅✅✅
