Skip to content

Conversation

@DAUN3046
Copy link
Collaborator

  1. push 일 때만 공백으로 나뉘기 때문에, push일 때 공백으로 분리해 숫자 부분만 int형변환하여 넣었다.
  2. 다른 명령어들은 그대로 입력받고 리스트의 특성을 이용해 지시사항대로 작성했다.

시간 제한 때문에 sys.stdin.readline()으로 입력받았는데, 이 때 str형으로 받아오면서 개행공백이 생긴다. 그러므로 rstrip()으로 공백을 제거해주어야 된다.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant