Alice and Bob are playing rock-paper-scissors game. The game rules are simple: rock crushes scissors; paper covers rock; and scissors cut paper. If both players throw the same shape, the game is tied. Your task is to determine the number of games won by Alice and Bob, respectively.
Input Specification
- The first line contains one integer that represents the number of games.
- The second line is Alice's shape sequence. The shape sequence contains shapes and they are separated by a space. The th shape in the sequence represents the shape thrown by Alice in the th game. There are only three shape values:
rock
,paper
, andscissors
. - The third line is Bob's shape sequence.
Output Specification
Two integers separated by a space, representing the number of games won by Alice and the number of games won by Bob.
Sample Input 1
3
rock rock scissors
paper rock rock
Output for Sample Input 1
0 2
Sample Input 2
4
paper rock rock scissors
rock scissors rock rock
Output for Sample Input 2
2 1
Comments
What if it's a tie?? I guess that that doesn't count for anybody, right?
No one wins.
Or everyone wins !!! ;)
orrrrr..... THEY WIN AND THEN THEY LOSE
why this guy getting so many downvotes it's funny for me :D