ALSDJFKSND
시간 제한2초메모리 제한1024 MB
x, v, a가 주어질 때, 첫 수에 따라 Alice가 이기는지 판정하는 교대 가속도 게임이다.
문제
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 metres westward from the goal. Its initial velocity is metres per second eastward, and its acceleration is zero for the first one second. At seconds after the game begins, where is a positive integer,
- If is odd, then it's Alice's turn.
- If is even, then it's Bob's turn.
Each player should press either A or B immediately at their turn.
- If
Ais pressed, then the ball's acceleration is set to zero for one second from that time. - If
Bis pressed, then the ball's acceleration is set to 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 , , and , respectively, where and -
return value: the
str-type object of length 1- return
Aif Alice can win only when Alice pressesAat their first turn. - return
Bif Alice can win only when Alice pressesBat their first turn. - return
Cif Alice can win in both cases. - return
Dif Alice can win in neither case.
- return
예제
이 문제는 공개된 예제가 없습니다.