Two problems in April challenge had constraints such that one could not solve them without adding the following two lines:
ios_base::sync_with_stdio(false);
cin.tie(flase);
In both the above problems only those two lines make the difference between AC and TLE. While I do understand their importance but they were not mentioned necessary for solving the problem. Hence many people who could solve them couldn’t just because of this.
I don’t think it should be made mandatory to include those lines in a normal competition(up for debate). If it is used, it should be notified in the question to use fast IO to avoid TLE. I believe it is just bad on codechef’s behalf to do that without informing. Kindly look into it and make sure to prevent it from happening further
Just tagging active users, admin cause I don’t know whom to tag: @admin@alfarhanzahedi@l_returns@melfice
Java users can argue this in almost all problems
Well Xormin had even worse constraints… Cin cout doesn’t work with it… You have to use printf scanf for solving it…
What can codechef do?
They might keep time limit little lenient next time. But it depends on the question though.
Sometimes they keep it more tight for forcing user to use more optimized algorithm ( O(n*log(n)) vs O(n) ).
Optimization is also a skill…
though I agree it shouldn’t be just fast i/o…
What can you do ?
Save this two lines in your template
cin cout works for me in almost all problems after adding these lines… ( Not for xor min though)
I agree to the OP and I think that it is also a worthy point that people should know about these basic concepts of the programming language but hundreds of people have wasted hours and hours just for this thing without learning anything in the process whereas learning this was only a 10 minute job. The point of codechef long challenges is to make people learn, not bang their heads over silly mistakes. So I think they should at least give a warning in the problem statement about large input data.