Advertisement
Guest User

Untitled

a guest
Jan 22nd, 2017
142
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.28 KB | None | 0 0
  1. # coding: utf-8
  2. # 自分の得意な言語で
  3. # Let's チャレンジ!!
  4. code = [int(i) for i in input().split()]
  5. S = input()
  6. X = [int(i) for i in input()]
  7. if S == 'encode':
  8. for i in X:
  9. print(code[i],end = '')
  10. else:
  11. for i in X:
  12. print(code.index(i), end = '')
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement