Database | Version |
MySQL | MySQL 5.6 |
PostgreSQL | PostgreSQL 9.5 |
SQL Server | SQL Server 2014 |
Oracle Database | Oracle Database 11g |
Legend | Explanation | Icons |
RE | Execution Failed/Runtime Error | |
CV | Constraints Violated |
When you submit your query, we do the following:
Setup a new database
Create tables
Load data specified in the test case
Execute your query on the newly set up database and compare the result with expected output
If the output matches the expected result, then it is considered to be an Accepted Submission (AC).
If the output does not match the expected result, then it is considered to be a Wrong Answer (WA).
For more information about various output results, see the LEGEND section.
Your code is automatically tested by a HackerEarth SQL service and not by a human being. Therefore, you must write your code accordingly. Each problem will have the following:
Tips:
Your code will not be judged as a correct submission in the following scenarios: - If your queries start by echoing “Enter the number” and the problem statement does not tell you to do so. Since this is not a part of your correct output, your script will not be judged as a correct submission irrespective of what the rest of your queries do. - If you use a method other than using the standard input and output streams, for example, using command line arguments, reading from a file, opening up a dialog box, etc., your code will not be judged as a correct submission.
Total execution time <= (time limit*number of input files). Your queries are tested multiple times with different data in the tables. The execution time that is displayed is the total time spent in executing your queries against the database collectively. While processing an input file, if the execution exceeds the time limit (mentioned in the problem), then your queries are terminated.
Your queries are constrained in following ways:
Your queries violated one of the above constraints mentioned.
No, TLE means that your solution has exceeded the amount of time that was determined for the problem or for a specific test case. Your solution never finished running in time because it was stopped in between. Therefore, there is no definite way to say whether the code is correct or not.
TLE could also mean the following:
WA means that your script ran successfully but the answer was incorrect. This could either be because your SQL script contains a bug or you are not interpreting the problem statement correctly. Your code may pass the sample input correctly, however your SQL script still needs to be evaluated against multiple input and output cases. Therefore, despite passing the sample input cases, you may still get a wrong answer if your output does not match the corresponding correct sample output.
A runtime error means that the program was compiled successfully but it exited with an error or crashed. You will receive an additional error message. The most common runtime errors include the following:
RE
This error means your query execution failed.
You can avoid this error by ensuring the following:
CV
This error means you have violated one of the problem constraints. The most common reasons for this error are as follows:
Max number of tables and Max number of rows per table are restricted.
No, you cannot. Similarly, nobody can view your solutions either.
Many users may be submitting code simultaneously, due to which, processing will take time. However, your code is in queue and you and you will receive the result of your submission as soon as it is evaluated.
Sometimes our code-checker servers or web servers may be under maintenance. As soon as the maintenance is complete, your submissions will be evaluated.
There may be an issue with the judge. Contact the website admin immediately by sending an email to either vivek@hackerearth.com or arjit@hackerearth.com.
Ideally you should not share your code. During a contest if your code becomes public, then your account can be suspended, if detected for plagiarism.
If you think that a problem has incorrect test data, its specification isn't clear or in your opinion something in the problem needs clarification, then post a comment on the problem page.
While posting comments, ensure the following:
Note: Admins/Moderators are allowed to delete the comments.
If you have any more queries, send us an email to support@hackerearth.com.