Блог пользователя ajit

Автор ajit, история, 5 лет назад, По-английски

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?

  • Проголосовать: нравится
  • +16
  • Проголосовать: не нравится

»
5 лет назад, # |
  Проголосовать: нравится +40 Проголосовать: не нравится

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.