CodinGame sponsored challenge discussion

Yes, 50ms I think

1 Like

ok, thank you !

OF COURSE the thirdInput is not always 5! How could I miss this???
Thank you, I was stuck on the exact same test because I was using a hardcoded value instead of the variable.

scroll video window (game area) out of view, then your cpu gets relaxed and you can work.
Basically this is their fault, because if game is idling, it should do this, but the loop continues without pause. this is definitely bad poor code

no, this is a test picture from (old) television times when tv sets had tubes for adjusting the picture of the tv set. it seems to be inserted just randomly. it has no meaning for the game

A fun challenge, I like reversing stuff.
After two half days, I managed to get about 2,800 pts with a relatively simple algorithm and some dice rolling.
I can see how some things can be hard coded and future implementations could maybe push me towards 6,000 pts by my guesstimations.
I still have no idea how to get to more than 10,000 pts.

Also wrote a little fuzzer hoping for some cheatcodes or secret inputs but nothing

Hello Everyone!

The second and the third test cases have the same input.
How could be the output different if my input is the (exactly) same?
For me, it means there is at least one internal state/value that influences the game.
So the input I give (which command) is not deterministic (I do not know what it will do with the input provided by the game).

What do you think?

Have a nice day!

You’re absolutely right. The input in the game loop will become different, though.

I just printed “A” and all tests passed!!!

1 Like

And a low score.

I think i really need a mentor in this

1 Like

LOL. I actually found out the answer in a single line of code…
Beginner’s luck???

Same here!!!

It’s one of the most complexe Optimization puzzle but also the more interesting one.
I spent perhaps hundred of hours just to study it and optimal solution is like a Grail.
There is no luck at all on this one.
Get 100% if more than easy, but the only important tasks are the points.
Getting top of the board is more than rewarding tasks.

Good luck if you wish to climb this Everest. Not impossible at all.

Those who think they’ve found with “print A” probably haven’t looked at their rankings :smile:

It could have been a real optimization puzzle even if the rules were displayed. When you have found out which game it is, you are far from finished with this game.