CENS20G Wrong Answer

Can anyone tell me why is my code for CENS20G not working.
CENS20G
My Solution

1 Like

cant say whats wrong as i am not familiar with stacks, but it can be solved just using simple implementation
check my solution
https://www.codechef.com/viewsolution/36987942

oh , you printed "YES " instead of β€œYES” , extra gap

1 Like