Is it too hard to put all the edge cases or should i say basic cases?

Revision en1, by ritwij_kr, 2024-04-13 17:24:04

So in the last contest i.e. Educational round 164 I solved C with the right logic i.e. I was making a new string after the index where n and m have different digits. However initially I set that index to be zero. Now if the latter condition isn't met it adds the whole number twice except the first digits i.e. if the number is 99 and 99 it will give output as 999 & 999 this is a very small bug and can be fixed easily.

was it too hard to put a simple case of n and m being the same? it's not about rating but it hurts when you get the wrong answer in system testing for such a basic test case which I would've presumed is already present.As no one thinks more about the code once it's accepted.

link to the submission 256329939 link to question 1954C - Long Multiplication

Thank you awoo & your co-authors for the contest.

History

 
 
 
 
Revisions
 
 
  Rev. Lang. By When Δ Comment
en1 English ritwij_kr 2024-04-13 17:24:04 922 Initial revision (published)