ENG  RUSTimus Online Judge
Online Judge
Problems
Authors
Online contests
About Online Judge
Frequently asked questions
Site news
Webboard
Links
Problem set
Submit solution
Judge status
Guide
Register
Update your info
Authors ranklist
Current contest
Scheduled contests
Past contests
Rules
back to board

Discussion of Problem 2068. Game of Nuts

Test 3
Posted by HaPhuong 17 Oct 2015 15:28
5
777 313 465 99 1

in the test above, how Daenerys  can win ??? While we can divide:
#Daenerys  777 -> 3 heaps (259)
- 313 -> can't divide
#Stannis  465 -> 3 heaps (155)
#Daenerys 99  -> 3 heaps (33)
#Stannis  33 -> 3 heaps (11)
- 1   -> can't devide
==> Stannis  is the winner
Re: Test 3
Posted by Alekper 17 Oct 2015 16:55
HaPhuong wrote 17 October 2015 15:28
5
777 313 465 99 1

in the test above, how Daenerys  can win ??? While we can divide:
#Daenerys  777 -> 3 heaps (259)
- 313 -> can't divide
#Stannis  465 -> 3 heaps (155)
#Daenerys 99  -> 3 heaps (33)
#Stannis  33 -> 3 heaps (11)
- 1   -> can't devide
==> Stannis  is the winner

99 / 3 = 33
we put 33 3 times in array and can make a move
and others too
Re: Test 3
Posted by Max 17 Oct 2015 16:56
+++ bad test I don't know how to use my program at this task
Re: Test 3
Posted by Filip Franik 11 Jul 2016 19:22
"313" can be divided into three heaps with odd number of nuts like this: "313 = 311 + 1 + 1" It doesn't have to equal number of nuts.