Number Grid

Revision en1, by nitr0gen, 2021-10-29 13:36:04

So I was thinking about this CSES problem: link. I saw that the answer is (x-1) ^ (y-1), but I have absolutely no idea why it works. Could someone explain or at least give some hints? Thanks.

History

 
 
 
 
Revisions
 
 
  Rev. Lang. By When Δ Comment
en1 English nitr0gen 2021-10-29 13:36:04 243 Initial revision (published)