Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[POI2016]Nim z utrudnieniem | K-D Space #23

Open
EndSaH opened this issue Sep 24, 2019 · 0 comments
Open

[POI2016]Nim z utrudnieniem | K-D Space #23

EndSaH opened this issue Sep 24, 2019 · 0 comments

Comments

@EndSaH
Copy link
Owner

EndSaH commented Sep 24, 2019

https://endsah.cf/blog/POI2016-Nim-z-utrudnieniem/#more

DescriptionA 和 B 两个人玩游戏,一共有 $m$ 颗石子,A 把它们分成了 $n$ 堆,每堆石子数分别为 $a _{1, 2, \dots, n}$,每轮可以选择一堆石子,取掉任意颗石子,但不能不取。谁先不能操作,谁就输了。 在游戏开始前,B 可以扔掉若干堆石子,但是必须保证扔掉的堆数是 $d$ 的倍数,且不能扔掉所有石子。A 先手,请问 B 有多少种扔的方式,使得 B 能够获胜。

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant