A-R's blog

By A-R, history, 3 days ago, In English

for i in range(int(input())): w = input() if len(w) <= 10: print(w) else: print(w[0] + str(len(w) — 2) + w[-1])

 
 
 
 
  • Vote: I like it
  • -20
  • Vote: I do not like it

»
3 days ago, # |
  Vote: I like it 0 Vote: I do not like it

Auto comment: topic has been updated by A-R (previous revision, new revision, compare).

»
3 days ago, # |
  Vote: I like it 0 Vote: I do not like it

c++ solution

Spoiler