Why std::cout gave me runtime error?
I was solving a problem on LightOj, my solution was correct but the problem was in the std::cout, then I replaced it to printf, then It worked fine. Plz anyone reply, why this happened.
solution without cout: link
Thanks in advance :)
Codeforces Round 953 Div 2 Solution Discussion (with Jan)