PROJECT EULER · #0770
Delphi Flip
A and B play a game. A has originally
-
A chooses and displays,
, a nonnegative real number no larger than the amount of gold that A has. -
Either B chooses to TAKE. Then A gives B
grams of gold. -
Or B chooses to GIVE. Then B gives A
grams of gold.
B TAKEs
Define
Find
Write-up coming later
The complete problem is available here. An approach, code, and answer will be added later.