cpinitiative / usaco-guide

A free collection of curated, high-quality resources to take you from Bronze to Platinum and beyond.
https://usaco.guide
Other
1.6k stars 476 forks source link

Contact Form Submission - Other (Silver - More on Prefix Sums) #4506

Closed maggieliu05 closed 3 months ago

maggieliu05 commented 3 months ago

Someone submitted the contact form!

URL: https://usaco.guide/silver/more-prefix-sums Module: Silver - More on Prefix Sums Topic: Other Message: The forest queries sample solution gets a TLE when submitted

AwesomestCode commented 3 months ago

Hi. I submitted this. I can't seem to make a submission that doesn't TLE on CSES. Even the sample solution doesn't work. Any ideas?

bqi343 commented 3 months ago

If you're referring to the Python solution, you should submit in Pypy3.

AwesomestCode commented 3 months ago

Oops. Forgot to specify the language. I'm referring to the Java solution.

bqi343 commented 3 months ago

it works for me.

Screenshot 2024-06-08 at 10 59 15 AM
AwesomestCode commented 3 months ago

I just tested again—it worked this time, and my own solution did too. Wondering if it's inconsistent depending on server load

screenshot of submission from last night: screenshot

bqi343 commented 3 months ago

it's possible. anyway, I would suggest using C++ if you want to pass comfortably under the time limit