Code Forces Problem Way Too Long Words
So I am trying to solve problem way too long words from codeforces here 's the link to check it https://codeforces.com/problemset/problem/71/A
now in my code i have created logic for word which have more than 10 characters would become in a special abbrevations and words which are less than 10 characters would be print as it is but i am not able to filter and remove int if user inputs integer with string
here is my code
Codeforces
Problem - 71A - Codeforces
3 Replies
you need to read the first line, parse that as int
n
, then loop n
times, reading a line each time, do the thing and write the resultok let me try
Also break the problem into separate methods like for
1. Parsing int where (1 <= int <= 100)
2. Parsing string validating they are not null or empty or whitespace and length <= 100.
3. Solving problem (here abbreviating words whose length >10)