We use cookies to ensure you have the best browsing experience on our website. Please read our cookie policy for more information about how we use cookies.
- Prepare
- Algorithms
- Game Theory
- Fun Game
- Discussions
Fun Game
Fun Game
Sort by
recency
|
45 Discussions
|
Please Login in order to post a comment
I don't get it. The first test case works fine, but the others are failing. I used some hackos to view the input and expected output for test case #3. I checked and everything should output correclty. I even pasted the input into the section for using custom input. When I use the same data as a custom input, it works perfeclty. My code's output matches the expected output. I then select submit code and that same test case then fails. The expected output here is completely different.
This is all about nine apk: https://nineapk.com
Thanks
When I get bored, I play https://apkwires.com/candy-crush-saga-mod-apk/. It's a very interesting game.
2 of the test cases here are wrong most probably. for example, for this one below: 1 18 100000 100000 100000 100000 100000 100000 100000 100000 100000 100000 100000 100000 100000 100000 100000 5 33 100000 100000 100000 100000 100000 100000 100000 100000 100000 100000 100000 100000 100000 100000 100000 100000 33 5 100000
The answer should be First but the expected output is shown as 'Tie' but it is noy possible to be a Tie, because considering A starts the game, both will be at a point after 8 turns each when both will have 800000 as the scores, and then 5 and 33 as the remaining values to choose from, playing optimally, A will choose 33, leaving 5 for B, hence B will loose. So, expected Output should be 'First'.