srand   1년 전

M개의 Move를 읽기 위해 cin 으로 읽게 되면, 

저처럼 segment fault 발생할 수 있습니다.

M이 0개 ~ 10개 이라는 점에 주의 해야 할 것 같네요 :)

First line contains current user score. 0 ≤ S ≤ 500

Next line contains M next moves. 0 ≤ M ≤ 10

  • [move][2|4][at-row][at-column] eg: L200, Left arrow is pressed and then a new 2 is appeared at 0x0
  • Move: L for left, U for up, R for right, D for down

댓글을 작성하려면 로그인해야 합니다.