PE0765

A place to air possible concerns or difficulties in understanding ProjectEuler problems. This forum is not meant to publish solutions. This forum is NOT meant to discuss solution methods or giving hints how a problem can be solved.
Forum rules
As your posts will be visible to the general public you are requested to be thoughtful in not posting anything that might explicitly give away how to solve a particular problem.

This forum is NOT meant to discuss solution methods for a problem.

In particular don't post any code fragments or results.

Don't start begging others to give partial answers to problems

Don't ask for hints how to solve a problem

Don't start a new topic for a problem if there already exists one


See also the topics:
Don't post any spoilers
Comments, questions and clarifications about PE problems.
Post Reply
henrig
Posts: 18
Joined: Mon Nov 21, 2016 7:39 am

PE0765

Post by henrig »

I would just like to clarify that "certain amount of your gold" means that before each toss, you bet this fixed proportion of gold you have after the previous toss.
User avatar
neverforget
Posts: 88
Joined: Sat Sep 16, 2006 10:10 pm

Re: PE0765

Post by neverforget »

Nowhere is it mentioned the wager must be a fixed proportion. You can pick a different wager before each round, and the amount you pick can depend on the previous rounds' outcomes.
Image
deWalk
Posts: 7
Joined: Sun Oct 11, 2015 8:23 pm

Re: PE0765

Post by deWalk »

must bet be an integer?
User avatar
neverforget
Posts: 88
Joined: Sat Sep 16, 2006 10:10 pm

Re: PE0765

Post by neverforget »

deWalk wrote: Sun Sep 19, 2021 7:07 am must bet be an integer?
You can bet any non-negative real amount you have.
Image
abcwuhang
Posts: 10
Joined: Mon Nov 28, 2016 5:14 pm

Re: PE0765

Post by abcwuhang »

Say I have x gram of gold and I bet b gram (0<=b<=x). If just considering one round, is it correct that I end up with x+2b gram if I win, and end up with x-b if I lose?
Image
If you'd like to friend me, shoot me a message and I'll give you my friend key :)
philiplu
Posts: 92
Joined: Wed Aug 02, 2017 8:51 pm
Location: Redmond, WA, USA

Re: PE0765

Post by philiplu »

abcwuhang wrote: Sun Sep 19, 2021 4:16 pm Say I have x gram of gold and I bet b gram (0<=b<=x). If just considering one round, is it correct that I end up with x+2b gram if I win, and end up with x-b if I lose?
Yeah, the "double your bet" in the problem statement seems ambiguous. I'm not sure if that means winning a bet of b grams means you end up with x+b or x+2b, though I've been assuming it meant x+b.
Image
User avatar
neverforget
Posts: 88
Joined: Sat Sep 16, 2006 10:10 pm

Re: PE0765

Post by neverforget »

abcwuhang wrote: Sun Sep 19, 2021 4:16 pm Say I have x gram of gold and I bet b gram (0<=b<=x). If just considering one round, is it correct that I end up with x+2b gram if I win, and end up with x-b if I lose?
Not quite. If you have $x$ and wager $b\leq x$ and win, you now have $x-b+2b=x+b$.
Image
pjt33
Posts: 140
Joined: Mon Oct 06, 2008 6:14 pm

Re: PE0765

Post by pjt33 »

neverforget wrote: Sun Sep 19, 2021 8:08 pm
abcwuhang wrote: Sun Sep 19, 2021 4:16 pm Say I have x gram of gold and I bet b gram (0<=b<=x). If just considering one round, is it correct that I end up with x+2b gram if I win, and end up with x-b if I lose?
Not quite. If you have $x$ and wager $b\leq x$ and win, you now have $x-b+2b=x+b$.
Do you have any evidence to back up this assertion? Because I would note that in the "part I" of this problem (#267) an explicit example is given where you have 1 GBP, bet 0.25 GBP, win, and end up with 1.5 GBP.
User avatar
neverforget
Posts: 88
Joined: Sat Sep 16, 2006 10:10 pm

Re: PE0765

Post by neverforget »

pjt33 wrote: Mon Sep 20, 2021 9:18 am
neverforget wrote: Sun Sep 19, 2021 8:08 pm
abcwuhang wrote: Sun Sep 19, 2021 4:16 pm Say I have x gram of gold and I bet b gram (0<=b<=x). If just considering one round, is it correct that I end up with x+2b gram if I win, and end up with x-b if I lose?
Not quite. If you have $x$ and wager $b\leq x$ and win, you now have $x-b+2b=x+b$.
Do you have any evidence to back up this assertion? Because I would note that in the "part I" of this problem (#267) an explicit example is given where you have 1 GBP, bet 0.25 GBP, win, and end up with 1.5 GBP.
I suppose the evidence is that accepted solution uses the standard "double or nothing" interpretation, instead of the one in problem 267.
Image
philiplu
Posts: 92
Joined: Wed Aug 02, 2017 8:51 pm
Location: Redmond, WA, USA

Re: PE0765

Post by philiplu »

Nice find for the language in Problem 267 (View Problem), @pjt33. I'd agree that and Problem 765 (View Problem) clearly have contradictory meanings for "double your bet". As @neverforget says, the interpretation in this new problem must be $x+b$, not $x+2b$, because assuming that let me get the checkmark :D

Admins, might be nice to clarify the wording in this problem.
Image
urimend
Administrator
Posts: 2669
Joined: Fri Jul 06, 2018 6:34 pm

Re: PE0765

Post by urimend »

Problem 765 (View Problem) has been modified to clarify the meaning of "double your bet".

Thanks for your observation and feedback.
User avatar
neverforget
Posts: 88
Joined: Sat Sep 16, 2006 10:10 pm

Re: PE0765

Post by neverforget »

urimend wrote: Fri Sep 24, 2021 5:04 am Problem 765 (View Problem) has been modified to clarify the meaning of "double your bet".

Thanks for your observation and feedback.
Thanks urimend, it is much clearer now!
Image
Post Reply