TOPIC

10%WA, 5% WA

Boyiddha_ asked 2 months ago

10% WA

case : ( One word can appear more than once in the text, and will be abbreviated every time )

input :

amar sonar bangla am amar sonar bangla amar

output :

a. s. b. am a. s. b. a.

3

a. = amar

b. = bangla

s. = sonar

5% WA

case :( has many word starting with smae letter , which word is abbreviated ? abbreviate in a way that after the abbrevations are applied, the post will have as less characters as possible. )

input:

amar sonar bangla abar sobar bankla amar sonar bangla amarrr sobarrr bankkkla

output:

a. s. b. abar sobar bankla a. s. b. amarrr sobarrr bankkkla

3

a. = amar

b. = bangla

s. = sonar

Remember not post solutions. Your post may be reviewed by our moderators.

  • feodorv replied 2 months ago

    Is it a question? Or a help query? Or suggestion to change the problem statement? Or wrong uDebug's solution? Couldn't you elaborate more?