It seems instead of printf/scanf, If I use cout/cin, in the above program it is getting accepted.
Initially, I submitted c++ based cout/cin only. But since I didn't include newline character endl, It was giving TLE. I thought it was something to do with cin/cout. So, I changed to printf/scanf. Then It started to gave WA. After the competition time is over, I just added endl at the end of every cout and it got accepted. Because C program didn't get accepted, I spent almost addtional 1.5 hrs to fix which by that time competition was over. I couldn't start 1st problem. Can someone guide me if there is any problem with printf & scanf of C language dealing with characters? Because in my case cout/cin works but printf/scanf does not work. -- You received this message because you are subscribed to the Google Groups "Google Code Jam" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To post to this group, send email to [email protected]. To view this discussion on the web visit https://groups.google.com/d/msgid/google-code/3d83a5da-48d7-4a1f-83ac-147bfa3b97bd%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.
