-
Notifications
You must be signed in to change notification settings - Fork 58
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
Add submission details after submitting any problem #50
Comments
on it |
The main function to edit is in |
Also, @vsvipul, the first non AC status will be the verdict and hence the time and memory, else the verdict will be "Accepted" and time = max(tc(time)) and memory = max(tc(memory)) |
why max and not avg @Vishal1541 ? |
@vsvipul in case of AC it kinda shows how much worse or good is your solution (by looking at the worst case time and memory taken). The same happens in Codechef and Codeforces. |
* add submissions model * add mongoose-double for time and fix submission id count * Closes #50
The submission schema should look like:
username: String,
qID: Number,
subID: Number,
code: String,
language: String,
verdict: String,
time: Number,
memory: Number,
isVisible: Boolean,
timeStamp: Date,
tc: [{ status: String, time: Number, memory: Number }]
The subID will be 1 + total no of submissions till now. URL: http://localhost:3000/submit/:qID
The text was updated successfully, but these errors were encountered: