se  us  dk 

Forum

Välkommen gäst Sök | Aktiva konversationer | Logga in | Registrera dig

Grundy-funktioner? [Options]
JulleJulia
#1 Postad : Saturday, March 18, 2017 3:45:06 PM
Rank: Member

Grupper: Member

Registrerade sig: 3/18/2017
Meddelanden: 1

Two players alternately pick integers from 1 to 10 until the sum reaches at least 100. The same number can be used more than once. The fist person to reach at least 100 wins. Who has the winning strategy and what is that strategy? Generalize this game to the case where each player picks an integer from 1 to k and the first player to reach n wins.

Svaret:

if n is a multiple of k+1, the second player wins; if not, the first player wins



Men hur ställer jag upp en Grundyfunktion av detta? 

Användare som läser denna konversation
guest (2)
Du kan inte skapa nya konversationer i detta forum.
Du kan inte svara på konversationer i detta forum.
Du kan inte radera dina meddelanden i detta forum.
Du kan inte ändra dina meddelanden i detta forum.
Du kan inte skapa undersökningar i detta forum.
Du kan inte svara på undersökningar i detta forum.

YAFPro Theme Created by Jaben Cargman (Tiny Gecko)
[Powered by] YAF 1.9.3 RC2 | YAF © 2003-2008, Yet Another Forum.NET
This page was generated in 0.154 seconds.