feat: refactor

This commit is contained in:
Barrett Ruth 2025-04-20 16:53:59 -04:00
parent 970b302ab8
commit ae73b1baf1
23 changed files with 180 additions and 0 deletions

View file

@ -77,6 +77,10 @@ void solve() {
prices.erase(unique(all(prices)), prices.end());
sort(all(a));
sort(all(b));
// fundamentally cooked - thought oculd binary search over the range (this is just not tree)
// "pass tc = right" mindset - braindead
// low patience -> lack of focus (phone?) gave up on e and f, espec. when
// f was doable
for (i64 price : prices) {
i64 A = n - distance(a.begin(), lower_bound(all(a), price));