JhnX's blog

By JhnX, history, 4 months ago, In English

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!!

  • Vote: I like it
  • -10
  • Vote: I do not like it

2 months ago, # |
  Vote: I like it 0 Vote: I do not like it

i don't know how to implement this in python.in my case, i use java and it is success.i ,too, stuck in test 4 and i find the answer.now, the problem is solved.it is about data structure you used.my former solution used linked list and i change it with array list.so, try find quicker data structure instead of list in your code.let me know if u have done.