Hi, im currently working on the 2022 february gold problem cow camp with the official solution .
I am getting everything, except when they state we only need to calculate when ⌊E_x⌋ < ⌊E_(x+q)⌋.Why wouldn’t it just be E_x < E_(x+q)?
Thanks in advance
Benq
May 4, 2023, 3:49pm
#2
codexistent:
⌊E_x⌋ ≤ ⌊E_(x+q)⌋
I don’t see this in the analysis. Which part are you referring to?
1 Like
Benq
May 4, 2023, 4:07pm
#4
It’s always true that E_x<E_{x+q} when q>0
1 Like
Also, I usually code in Java or C++. Could someone please explain this code? I’ve tried searching online.
prob = [(x+y)/2 for x, y in zip([Decimal(0)]+prob, prob+[Decimal(0)])]
Thank you