Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

False TLE for large test cases #93

Open
lancehaoh opened this issue Dec 6, 2016 · 3 comments
Open

False TLE for large test cases #93

lancehaoh opened this issue Dec 6, 2016 · 3 comments
Labels

Comments

@lancehaoh
Copy link

C++ Program is getting TLE for large inputs using a time limit of 1.0s in Hightail. However, when run in terminal, the program finishes execution in 0.09s. See the attached files for the sample program and test cases.
rmq.zip

@dj3500
Copy link
Owner

dj3500 commented Dec 6, 2016

For pseudormq5.in, it actually seems to run forever in Hightail (at least 20 minutes), whereas it runs very fast in terminal. Interesting. But are you sure the program is not buggy? Some undefined behaviour in the program might be causing this. In particular, on my computer for pseudormq7.in it gets a runtime error (when run in the terminal).

@lancehaoh
Copy link
Author

lancehaoh commented Dec 7, 2016

I don't think that the program is buggy. I tried out the test cases in my ubuntu and mac terminal, together with windows cmd. I also tested it on an online ide at codingground. All worked perfectly well.

@dj3500
Copy link
Owner

dj3500 commented Dec 7, 2016

Well, your array st is too small. When that is fixed, the large input works on my machine. Otherwise, the program looks correct to me, and the described issue persists. Thanks for the report.

@dj3500 dj3500 added the bug label Dec 7, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants