I think the time limit is highly strict ,even taking input takes 0.37 seconds even while using getchar_unlocked and printf.
Yeah the IO constraints are pretty tight. I feel that we would have to heavily optimize the program itself for this to pass.
I also have a problem with output size limit,I get error SIGXFSZ for subtask 3 and I don’t know why.If I use cin,cout I get tle because of big input,output .If I use scanf,printf I get this error…Can someone please help me?Or maybe what could be the problem?
@archazey That seems to be an unrelated problem. Using fast IO should either give you AC or TLE for the last subtask. Though I suspect that you might need faster methods of IO. I recall there being a post in the forums regarding fast IO =)