Travelling Salesman Problem Spoj Add Comment Edit Problem Link: https://www.spoj.com/problems/PESADA04/ #include <bits/stdc++.h> using namespace std; int tsp(vector<vect... Read More
SPOJ Knapsack Add Comment Edit #include <bits/stdc++.h> using namespace std; long long int knapsack(long long int nn,long long int mm,long long int ncost[],lon... Read More
SPOJ GraCon Connectivity Add Comment Edit #include <bits/stdc++.h> using namespace std; vector<long long int>edges [ 100 ] ; vector<long long int>resul... Read More
SPOJ TDKPRIME - Finding the Kth Prime Add Comment Edit N:B: Use bool type vector to store status as upper limit is 10^8 Read More
সেগমেন্টেড সিভ (Segmented Sieve) Add Comment Edit সেগমেন্টেড সিভ (Segmented Sieve) হল নির্দিষ্ট রেঞ্জ এর মধ্যে প্রাইম নম্বর ... Read More
SPOJ PRIME1 - Prime Generator 1 Comment Edit SPOJ PRIME1 - Prime Generator #include <bits/stdc++.h> using namespace std; #define n 10000000 vector<long long int... Read More