I was trying to solve this problem but got stuck i could not find the problem pls help any test case also will be helpful
code : (https://ideone.com/HkPWSw)
Problem Link : (https://icpcarchive.ecs.baylor.edu/index.php?option=com_onlinejudge&Itemid=8&page=show_problem&problem=1197)
TIA