মঙ্গলবার, ২৮ মার্চ, ২০১৭

Upper bound lower bound

in here A and B are the numbers that i want to search the upper bound and lower bound in a  array
long long lw=lower_bound (v, v+n, A)-v;
long long hi=upper_bound (v, v+n, B)-v;

কোন মন্তব্য নেই:

একটি মন্তব্য পোস্ট করুন

Factorization with prime Sieve

vector <int> prime; char sieve[1000009]; int N=1000009; void primeSieve ( ) { sieve[0] = sieve[1] = 1; prime.push_back(2); ...