20240830

Panela Bread is a good place to study/work. The drinks are cheap, the seats are comfortable, and the WiFi is not slow.

My issue got a like! Yay! xavctn/img2table/issues/211 - and I noticed that there are open pull requests regarding the issue already. Yikes!

News: Codeforces - Congratulations: Tourist has reachd a rating of 4000!

As you may have already noticed, tourist has reached the symbolic milestone of 4000 rating points.

Right now, we have assigned a new rank “Tourist” to the 4+ rating. This highlights the uniqueness of the moment!

Review: 2003B. Turtle and Piggy Are Playing a Game 2

My assumption/approach

"""
Turtle -> remove the minimum value to increase the min of the array
Piggy -> remove the maximum value to decrease the max of the array
indices (i, i + 1) do not matter; one operation removes one value from the array
"""
for _ in range(int(input())):
    n: int = int(input())
    a: list[int] = list(map(int, input().split()))
    a.sort()
    print(a[n // 2])

but I'm not very sure that the optimal moves are greedy ones.

Codeforce Round 968 (Div. 2) Editorial

My approach seems to be correct, but I'm still not confident why it always works.

Maybe I'm overthinking. Let's skip this for now.


Gyu-don 1000 Rice 400 Salad 300 Bagels 500 Protein bar 200 Pocky 200 Protein shake 200

Total 2800 kcal (mini-cheat)


MUST:

TODO:


index 20240829 20240831