ГлавнаяСборникиТурнирыРазделыФорумыУчастникиПечатьПомощьО системе

Турниры > CEN_114 Midterm A > задача:


4. 50528 - Rock-Scissors-Paper

CEN_114 Midterm A

Старт: 14.мая.2020 в 00:00:01
Финиш: 31.мая.2020 в 23:55:59
Турнир завершён!
• Турнирная таблица

Гость
• Вопросы к жюри (2)

Задачи турнира

• 1. 50467 - Random Numbers
• 10. 51093 - rgb2gray
• 11. 50410 - Zero Padding
• 12. 50470 - Close Pairs - Revised
• 13. 50735 - Top M Products
• 14. 51094 - Passing the course
• 15. 50804 - Marathon
• 3. 50390 - Total Salary Paid
• 4. 50528 - Rock-Scissors-Paper
• 5. 51087 - Are they the same?
• 6. 51092 - Even and Odd
• 7. 50449 - The biggest result
• 8. 51146 - Popular Baby Names
• 9. 50499 - Table to Row

Обратная связь

Если у вас есть предложения или пожелания по работе Contester, посетите форум сайта www.contester.ru.

Лимит времени 2000/4000/4000/4000 мс. Лимит памяти 65000/65000/65000/65000 Кб.
Question by Ibrahim Mesecan.

Rock-Scissors-Paper

Rock-Scissors-Paper is a hand game usually played between two people. The two players forms one of the three possible shapes simultaneously. If both sides have the same shape. The game is tie. There are three possible outcomes otherwise:

  • Rock crushes scissors
  • Paper covers rock
  • Scissors cut paper.
Note: If they are the same, they don't get any points.

Question: You are given n sequences of shapes. Find the winner.

Input specification
You will be given an integer (n) the number of plays where 0 ≤ n ≤ 1000. Then, in the following n lines, you will be given two of the strings: Rock, Paper, Scissors.

Output specification
Show the score in the first line. Then, show one of the messages:

  • The first player wins
  • The second player wins
  • Tie

Sample Input I
3
Rock Paper
Scissors Rock
Scissors Paper

Sample Output I
1 2
The second player wins



Для отправки решений необходимо выполнить вход.

www.contester.ru