2 051
المشتركون
لا توجد بيانات24 ساعات
لا توجد بيانات7 أيام
لا توجد بيانات30 أيام
أرشيف المشاركات
Based on references I need 50 persons to inbox me privately with the correct answer, i have an investment opportunity for them to earn on daily basis.
Let's Go! 👍
#include <iostream>
#include <vector>
#include <algorithm>
using namespace std;
int nSk(int n, int k){
if (n < 2)
return 1;
if (k > n-2)
return 0;
vector<int> numbers;
numbers.reserve(n - 2);
for (int i = 0; i < n - 2; ++i){
numbers.push_back(i + 2);
}
std::vector<bool> v(numbers.size());
std::fill(v.end() - k, v.end(), true);
int ret = 0;
do {
int tmpnum = 1;
for (int j = 0; j < numbers.size(); ++j) {
if (v[j])
{
tmpnum *= numbers[j];
}
}
ret += tmpnum;
} while (std::next_permutation(v.begin(), v.end()));
return ret;
}
int main(){
int n, d;
cin >> n;
cin >> d;
int sum = 0;
for (int k = 0; k < d; ++k){
sum += nSk(n, k);
}
//sum *= 2;
cout<< sum;
}
Coins code
Hi Anu Welcome to this Community. Join Our Channel for daily Off-Campus Job Updates ❤️
👇👇
@offcampusjobs_0
@offcampusjobs_0
Take one loop for array a and inside the loop take another loop for array b and traverse and check the elements of both array
Hi Vibha Welcome to this Community. Join Our Channel for daily Off-Campus Job Updates ❤️
👇👇
@placement_0
@placement_0
All 10 A.M LTI exam students gathered at CODING_SOLUTION_HELP group for mutual help jiionn theree
/@coding_solution_help
/@coding_solution_help
/@coding_solution_help
/@coding_solution_help
/@coding_solution_help
/@coding_solution_help
Hi Ss , Welcome to this Community for 2022 Batch Daily Off Campus Jobs Updates join this channel ✅
👇👇
@offcampusjobs_0
@offcampusjobs_0
Hi ashutosh Welcome to this Community. Join Our Channel for daily Off-Campus Job Updates ❤️
👇👇
@offcampusjobs_0
@offcampusjobs_0
Any telugu people's want
TCS, Infosys, Wipro, Accenture,
Capgemini, cognizant, Mindtree,
mphasis, LTI, NQT, all exams
clear chestam 400 or 500 RS ki
exam clear chestam antaru
scan blocked but memu what's
up lo exam clear chestam
