Stuck in Sage's birthday(easy version)

Revision en2, by JhnX, 2020-09-20 00:07:11

Hi,everyone. This was my first contest and I got close to solving problems but couldn't finish any of them entirely. I've been trying to solve the sage's birthday(easy version) but seem to get wrong answer on test 4.The input is very big and it gets truncated so I can't find the error by looking at the test case. Could someone please point out the error in my code and what I'm missing or doing wrong. Here's the submission link: Thanks!!


  Rev. Lang. By When Δ Comment
en2 English JhnX 2020-09-20 00:07:11 0 (published)
en1 English JhnX 2020-09-20 00:06:33 538 Initial revision (saved to drafts)