ajit's blog

By ajit, history, 5 years ago, In English

In the recent codeforces global round 6 for the problem C DIVERSE MATRIX my code prints the transpose of the correct output matrix for the cases where r=1,c>1 and for r>1,c=1. But it gives me OK verdict for this wrong output format. This is my link to the submission.Is this a problem with the checker?

  • Vote: I like it
  • +16
  • Vote: I do not like it

»
5 years ago, # |
  Vote: I like it +40 Vote: I do not like it

Most likely the checker just reads the integers ignoring line breaks, as it already knows what shape the matrix is. This isn't unusual, I think checkers always ignore whitespace. For r=1 or c=1 this doesn't change the correctness of the answer, and your program works correctly for larger inputs, so you get AC.