Poor Tokyo
CodeChefOpen on judge ↗
Tokyo is not very much educated and she finds it difficult to write words like "accomplishments" or "internationalization". Let's consider a word **too long** only if its length is strictly more than 10 characters, now Tokyo wants to write them in a **shorter format**. There is a particular way of writing any word in shorter format. The first and last letters of the word stay as it is and between
HINT LADDERno hints yet
L1 Observation
L2 Technique
L3 Approach
L4 Pseudo-code
🔒
L5 Full solution
L5 unlocks only if you insist twice
solution.cppC++17
CodeSearch Tutor
Hints, not spoilers — it won’t hand over the full solution unless you insist.
Sign in to chat with the tutor and save your progress.
Sign in to start