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

exercise grains overflows unsigned long long #35

Closed
kytrinyx opened this issue Jan 26, 2015 · 0 comments
Closed

exercise grains overflows unsigned long long #35

kytrinyx opened this issue Jan 26, 2015 · 0 comments

Comments

@kytrinyx
Copy link
Member

From @JAC42 in exercism/exercism#2176

In C++, the test for total number of grains merely tests to see whether you get the maximum value for unsigned long long, not for the correct number of grains. I believe 2^64 is max number allowed in unsigned long long, and the total grains on the board is greater than that given 64 squares.

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

No branches or pull requests

2 participants