getting wa in this problem, need help
problem link
my solution
Mock ICPC Prelims Contest 1 Solution Discussion