BdW44222

02. Trains

Jun 14th, 2021
596
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. # 2SPORED MEN
  2. # train_length = int(input())
  3. # train = [0] * train_length
  4. # command = input()
  5. # while command != 'End':
  6. #     tokens = command.split(" ")
  7. #     key_word = tokens[0]
  8. #     if key_word == 'add':
  9. #         people = int(tokens[1])
  10. #         del train[-1]
  11. #         train.append(people)
  12. #     if key_word == 'insert':
  13. #         del train[0]
  14. #         index = int(tokens[1])
  15. #         people = int(tokens[2])
  16. #         train.insert(index, people)
  17. #         # print(train)
  18. #     if key_word == 'leave':
  19. #         index = int(tokens[1])
  20. #         people = int(tokens[2])
  21. #         leave = train[index] - people
  22. #         train.pop(index)
  23. #         train.insert(index, leave)
  24. #     command = input()
  25. # print(train)
RAW Paste Data