I’m getting WA for this (during contest)–
https://www.codechef.com/viewsolution/32347280
Getting AC for the same code with sys.stdin.readline removed (after contest)—
https://www.codechef.com/viewsolution/32370012
Why so? Is it because of ill-formatted strings with newlines in test cases?