Maintain the Queue

“Ajob Desh” is a strange country. Anyone who wants to buy train tickets need to go to the railway st…

Click here to read the complete problem statement.


If you need help solving this problem, mention your approach and ask specific questions. Please avoid sharing your code and asking the Community to figure out “what’s wrong”.

Blockquote bccnSU - Online C++ Compiler & Debugging Tool - Ideone.com Why show WA for 2nd case & further?
Someone pls hlp

This problem is a complete copy from spoj . Shame !! How can they use copy paste problem in a national contest .

Spoj problem was uploaded in 2013 , and NSU cyberbauts’16 held on 2016 . So it’s copy and pasted , but slightly changed .