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

문제

Alice and Bob are playing the two-player computer game called ALSDJFKSND. In this game, there is a ball on the screen. Initially, the ball is located at $x$ metres westward from the goal. Its initial velocity is $v$ metres per second eastward, and its acceleration is zero for the first one second. At $t$ seconds after the game begins, where $t$ is a positive integer,

  • If $t$ is odd, then it's Alice's turn.
  • If $t$ is even, then it's Bob's turn.

Each player should press either A or B immediately at their turn.

  • If A is pressed, then the ball's acceleration is set to zero for one second from that time.
  • If B is pressed, then the ball's acceleration is set to $a$ metres per second squared eastward for one second from that time.

A player loses and the game finishes when the ball is located at the goal or in the east of the goal at their turn. Assume that each player uses their optimal strategy to win. You want to help Alice win. Determine whether Alice can win or not, possibly depending on Alice's first move.

Write a function ALSDJFKSND:

  • input parameter: three int-type objects whose values are $x$, $v$, and $a$, respectively, where $0<v<x\le100$ and $0<a\le 100$
  • return value: the str-type object of length 1
    • return A if Alice can win only when Alice presses A at their first turn.
    • return B if Alice can win only when Alice presses B at their first turn.
    • return C if Alice can win in both cases.
    • return D if Alice can win in neither case.

출처

School > 한국과학영재학교 > 2021 Fall PPS Final Mock Exam 3번

제출할 수 있는 언어

PyPy3

채점 및 기타 정보

  • 예제는 채점하지 않는다.