Recursion solution not working (Help)

Revision en1, by mr_zodiac, 2021-07-31 00:11:18

I was solving the problem A.Domino Pilling (https://codeforces.net/problemset/problem/50/A) and i did get the correct answer by printing out (m*n)/2. but then i was trying to solve it by recursion but i got an incorrect answer on a test case it worked fine with most of the test cases but when i tried 3x6 i got an incorrect answer. I cannot figure out whats wrong with the recursion solution. Please help me figure out. Thank you

This is the link for the solution https://codeforces.net/contest/50/submission/124366489

Tags #recursion, #cpp

History

 
 
 
 
Revisions
 
 
  Rev. Lang. By When Δ Comment
en1 English mr_zodiac 2021-07-31 00:11:18 561 Initial revision (published)