[Task 49] Rock Scissors Paper

Back to General discussions forum

Hennes     2015-09-02 07:03:44
User avatar

Hi, I'm just trying to solve task #49, but I'm not sure if the checker is correct.

These are the first five input lines:

20

RR SS SS PP SS RR PR PR RR SP SP RR SR RR PR RS

SS SS RP PS PS

SP PS PR RP PR SP

SP SS SS RP SR RS PS SS SR

In the fifth line (the fourth game), the game starts with SP, so Scissors cut Paper. That means player 1 has won.

But expected answer was "1 2 1 2 2 2 1 2 2 2 2 1 2 1 1 2 2 2 2 1", i.e. player 2 is the winner.

Is there a bug or is it my fault and I didn't get the description of the riddle correctly?

Regards Hennes

Rodion (admin)     2015-09-02 12:03:38
User avatar

Hi, thanks for your question!

>That means player 1 has won.

The game is won not by the first victory, but by the total count of victories. Perhaps this clarification should be added to problem statement...

So in th 4-th game we have

win tie tie lose lose win lose tie lose

so the first player wins 2 times and loses 4 times.

Hennes     2015-09-02 18:49:15
User avatar

Hi, thanks a lot. That really was my mistake.

Hennes

Please login and solve 5 problems to be able to post at forum