Информатика → Областная → 2023 | BeyondOlympiads

@eudaimon how would you assess the code written by the student? The initial problem statement is this:

“You sell ice cream. A cost of production is k. Thus, if you sell ice cream at price x, your profit is x-k. There are n clients. For each client i we know the amount of money he’s willing to spend on ice cream, s_i. Choose the price of ice cream to maximize profits.”

2 лайка