Skip to content

Instantly share code, notes, and snippets.

View bruteforceboy's full-sized avatar

Chibuoyim (Wilson) Ogbonna bruteforceboy

View GitHub Profile
#include <bits/stdc++.h>
constexpr int N_PICK = 5;
constexpr int NUM_PLAYERS = 20;
auto solve_helper(int budget, std::span<int> points, std::span<int> costs) {
const int N = points.size();
std::vector<std::vector<std::pair<int, int>>> ret(N_PICK + 1);
for (int i = 0; i < (1 << N); i++) {