-
Notifications
You must be signed in to change notification settings - Fork 224
Show memory usage of the program on cf test
#9
Comments
Show memory is OK. But check stuff is not. Because memory limit is fetched by using network, it causes lag. |
Sorry, I do not understand how fetching memory limit causes network lag? It currently does fetch the test cases for the problem. So, fetching the memory limit value should be quite a trivial addition to that, shouldn't it? |
Current version doesn't store any contest information. So to get the contest info must be fetched online. Yeah, the contest info should be stored in local, and there are many things to consider. But you need to wait some time (I'm busy)~ |
I found getting memory usage in windows is a little bit hard :( |
Sure, take your time :) |
One possible way to implement this feature is to use ulimit: https://ss64.com/bash/ulimit.html |
I'm trying https://github.com/shirou/gopsutil |
Done~ I'll release it later, because the GIF should be updated. |
Is it possible to show memory consumption of program alongside the verdicts...
and highlight in red if it exceeds the memory limit mentioned on the problem page? I am asking because I recently overran memory by accidentally using a 5000x5000 long long int 2D vector, and got an MLE later.
The text was updated successfully, but these errors were encountered: