Can Someone explain me this problem http://codeforces.com/contest/114/problem/B Using bruteforce method asked 16 Jun '17, 22:06 ![]()
|
We have to choose a team such that no 2 volunteers have a problem with each other. Since the number of volunteers, N = 16 is small we can iterate through all the subsets (2^16 = 65536) possible and check whether this subset satisfies the given condition. Generating all the subsets can be done by bit manipulation. answered 17 Jun '17, 01:37 ![]()
|