Logo
(追記) (追記ここまで)

30044번 - Rock-Paper-Scissors 서브태스크점수다국어인터랙티브번외

시간 제한메모리 제한제출정답맞힌 사람정답 비율
15 초 (추가 시간 없음) 1024 MB251000.000%

문제

The rock-paper-scissors game is played as follows: Two players simultaneously pick their moves as ‘rock’, ‘paper’, or ‘scissors’. When both pick the same move, they each get zero points. When they pick different moves, the rock beats the scissors, the scissors beat the paper, and the paper beats the rock. The player who picked the winning move gets $+1$ and the loser $-1$ points. A match consists of a number of moves whose points are added. Thus, the sum of points of the two players at the end of a match will always be zero.

There are many rock-paper-scissors competitions where the main goal is to guess the opponent’s strategy and play against it.

The jury has implemented 10 simple programs that play rock-paper-scissors. Write a program to play against them and score as many points as possible.

입력

출력

Your program is started a new for each opponent. Your program should write its move, followed by a newline, to the standard output and then read the opponent’s move from the standard input. Each move is designated by a capital letter: K (rock), P (paper), or R (scissors). The match is managed by a judge program that gets the moves of the jury’s program in the same way and keeps track of the score. The end of the match is signaled by L as the opponent’s move and after that your program should terminate immediately.

제한

점수

If subtask score is negative, your score for subtask is zero.

서브태스크

예제 입력 1

K
P
R
(99997 moves)
L

예제 출력 1

K
P
R
(99997 moves)
L

힌트

출처

Olympiad > Estonian Informatics Olympiad > 2014-15 > Open Competition 7번

채점 및 기타 정보

  • 예제는 채점하지 않는다.
  • 재채점을 하지 않는다.
  • 제출한 후 다른 소스를 제출하려면 60×(⌊(오늘 제출)/50⌋+1)초가 지나야 한다.
  • 이 문제의 채점 우선 순위는 3이다.
(追記) (追記ここまで)

출처

대학교 대회

  • 사업자 등록 번호: 541-88-00682
  • 대표자명: 최백준
  • 주소: 서울시 서초구 서초대로74길 29 서초파라곤 412호
  • 전화번호: 02-521-0487 (이메일로 연락 주세요)
  • 이메일: contacts@startlink.io
  • 통신판매신고번호: 제 2017-서울서초-2193 호

AltStyle によって変換されたページ (->オリジナル) /