Problem D Educational Round 106

Revision en4, by dominator1234, 2021-03-18 21:54:05

I think everybody must be having same problem in Problem D having time limit exceeded on Test case 15. The time limit is too strict for the problem. I am tired of optimizing it further now and I have seen exactly same logic being accepted. I am tired and frustrated now. Somebody pls tell how to optimize it from here on.

Here is my Code:

(https://mirror.codeforces.com/contest/1499/submission/110388552)

History

 
 
 
 
Revisions
 
 
  Rev. Lang. By When Δ Comment
en4 English dominator1234 2021-03-18 21:54:05 2781 Tiny change: ' p2[35];\nll getFa' -> ' p2[35];\n \nll getFa'
en3 English dominator1234 2021-03-18 21:43:28 55
en2 English dominator1234 2021-03-18 21:38:50 558
en1 English dominator1234 2021-03-18 21:37:36 3698 Initial revision (published)