|
|
вернуться в форумwhy WA10 ? python 3 my code : import sys for t in sys.stdin : s = '' for i in range(len(t)): if (ord(t[i]) >=97 and ord(t[i]) <= 122) or (ord(t[i])>=65 and ord(t[i])<=90): s += t[i] else : if len(s) > 0 : print(s[len(s)-1:0:-1]+s[0], end='') s = '' print(t[i], end='') print(s, end='') Edited by author 29.08.2016 01:57 |
|
|