Please explain why my solution to MATMOD (CodeChef) is wrong

Revision en1, by siddhantuniyal, 2024-02-22 23:17:06

The problem : MATMOD

My solution (with complete explanation in comments) : My Solution

I have taken a random accepted submission , and compared my code's output with every possible edge case I could think of, and my output matches it every single time.

The accepted submission : Other Solution

Still, I am getting wrong answer.

Please help

Tags codechef, combinatorics

History

 
 
 
 
Revisions
 
 
  Rev. Lang. By When Δ Comment
en1 English siddhantuniyal 2024-02-22 23:17:06 562 Initial revision (published)