아직 만들고 있는 페이지입니다.

이 페이지는 아직 만드는 중입니다. 보이는 내용은 바뀔 수 있습니다.

ALSDJFKSND

시간 제한2초메모리 제한1024 MB

요약
x, v, a가 주어질 때, 첫 수에 따라 Alice가 이기는지 판정하는 교대 가속도 게임이다.
난이도

보통10점 중 5점

유형
게임 이론, 시뮬레이션, 수학
정답자
아직 제출이 없습니다

문제

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 xx metres westward from the goal. Its initial velocity is vv metres per second eastward, and its acceleration is zero for the first one second. At tt seconds after the game begins, where tt is a positive integer,

  • If tt is odd, then it's Alice's turn.
  • If tt 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 aa 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 xx, vv, and aa, respectively, where 0\<v\<x≤1000\<v\<x\le100 and 0\<a≤1000\<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.

예제

이 문제는 공개된 예제가 없습니다.