pls anyone hlep me about this problem.
i think this is an easy problem, but getting WA again and again. what's the tric ??
pls HELP ME.
L I M O N
Moderator: Board moderators
if (length of 1st string + length of 2nd string + length of number + 2 != length of input line)
return false


Sanny wrote:Check if there is more than one space between inputs. I gave a check like this -
- Code: Select all
if (length of 1st string + length of 2nd string + length of number + 2 != length of input line)
return false
Regards
Sanny
Cut after AC
if (n1 > 1000 || n2 > 2000) return 0;if (n1 > 1000 || n3 > 2000 || n2 == 0) return 0;Users browsing this forum: No registered users and 1 guest