Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- # coding: utf-8
- # 自分の得意な言語で
- # Let's チャレンジ!!
- code = [int(i) for i in input().split()]
- S = input()
- X = [int(i) for i in input()]
- if S == 'encode':
- for i in X:
- print(code[i],end = '')
- else:
- for i in X:
- print(code.index(i), end = '')
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement