A問題 25個の文字列
1 2 3 4 5 6 7 8 9 10 11 12 13 |
s = input() n = int(input()) if n<=5: print(s[0]+s[n-1]) elif 6<=n<=10: print(s[1]+s[n-6]) elif 11<=n<=15: print(s[2]+s[n-11]) elif 16<=n<=20: print(s[3]+s[n-16]) elif 21<=n<=25: print(s[4]+s[n-21]) |
コメント