Wednesday, 1 January 2020

way-too-long-words-codeforces-problem (71A)

codeforces Way Too Long Words (71A) probem 


solution in python:-

n = int(input())
for i in range(n):
  s= input()
  if len(s)>10:
    print (s[0]+str(len(s)-2)+s[-1])
  else:
    print(s)

1 comment:

  1. Please guys comment your solution ok in the comment box

    ReplyDelete