Skip to main content
1 of 5

Instead of cin and scanf, try fast IO. I got AC on many questions when I changed to fast IO.