Recursion solution not working (Help)

Правка en1, от 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

Теги #recursion, #cpp

История

 
 
 
 
Правки
 
 
  Rev. Язык Кто Когда Δ Комментарий
en1 Английский mr_zodiac 2021-07-31 00:11:18 561 Initial revision (published)