Stuck in Sage's birthday(easy version)

Правка en2, от 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: https://codeforces.com/contest/1419/submission/93284554 Thanks!!

История

 
 
 
 
Правки
 
 
  Rev. Язык Кто Когда Δ Комментарий
en2 Английский JhnX 2020-09-20 00:07:11 0 (published)
en1 Английский JhnX 2020-09-20 00:06:33 538 Initial revision (saved to drafts)