Are there any further optimizations to this Java code? (1388E)

Revision en1, by ijxjdjd, 2020-07-30 23:04:02

Link to my code: https://mirror.codeforces.com/contest/1388/submission/88538912

I think I've pretty much explored all avenues for optimization (besides switching to C++). The number of operations is around $$$2\cdot10^8$$$ in the absolute worst case, so I don't have any idea what could be slowing down my code. Is there anyone who's more knowledgeable in me at Java that can identify any further optimizations or possible bottlenecks in my code?

History

 
 
 
 
Revisions
 
 
  Rev. Lang. By When Δ Comment
en1 English ijxjdjd 2020-07-30 23:04:02 500 Initial revision (published)