Ok so it took me 1 hour to realize the number of trees sold is not continuous by price (because the negative review condition break it), so binary search on it is wrong... sadly I got into wrong direction twice in this contest.
Outplayed, it took more to be an expert I guess :(
Ok so it took me 1 hour to realize the number of trees sold is not continuous by price (because the negative review condition break it), so binary search on it is wrong... sadly I got into wrong direction twice in this contest.
Outplayed, it took more to be an expert I guess :(