Guess Number Higher or Lower II
Medium
Interval DP
You guess a hidden number in 1..n; each wrong guess x costs x dollars. Print the minimum amount of money you need to guarantee a win.
Constraints
1 <= n <= 200
Discussion
No discussions yet.
Shalyam Support
Hi! Ask us anything — we'll reply on WhatsApp or Telegram within 24 hours.