A問題 AtCoder Beginner Contest 999
1 2 3 4 5 6 7 8 |
s = input() ans = len(s)*[0] for i in range(len(s)): if s[i] == '1': ans[i]='9' elif s[i] == '9': ans[i]='1' print(''.join(ans)) |
1 2 3 4 5 6 7 8 |
s = input() ans = len(s)*[0] for i in range(len(s)): if s[i] == '1': ans[i]='9' elif s[i] == '9': ans[i]='1' print(''.join(ans)) |
コメント