How to deal with SIGXFSZ error

This question has been asked here before and I understand what the error means. The question which is giving this error expects 5000 lines of output (at max) so I figure the method by which I output should be very fast. Correct me if I’m wrong.

How do I improve my output method? I submitted my code in C and this was the only output line: printf("%llu\n",x); I’m stuck at this problem. I looked around and could only find code snippets for fast input. Can someone help me?

Dude take care of the fact that the output file has a fixed size hence the output should be such strictly monitored …as in which input is supposed to give the output remember that whitespaces also count :slight_smile:

//