online-judge | modern open-source online judge
kandi X-RAY | online-judge Summary
kandi X-RAY | online-judge Summary
DMOJ: Modern Online Judge
Support
Quality
Security
License
Reuse
Top functions reviewed by kandi - BETA
- Called when grading is finished
- Handle free submission
- Called when a submission is finished
- Called when the grading is free
- Returns a queryset of object_data
- The main function
- Sets up judges
- Make the plot
- Shutdown the server
- Prepares the submission data
- Called when a test case is completed
- Return the context of the page
- Return the context of the problem
- Displays the rating of the given contest
- Returns a dict of all available GameVersions
- Render a PDF
- Edit a profile
- Returns the queryset of the submission
- Validate the cleaned data
- Handle the connection
- Return the most recent n submissions
- Check if a form has been submitted
- Return object data
- Add the rating data to the context
- Check if the given user can view this problem
- Return a paginator
- Start the judges
online-judge Key Features
online-judge Examples and Code Snippets
Community Discussions
Trending Discussions on online-judge
QUESTION
I tried to solve this problem with BFS, but for input "99 100" my program uses more than 260 Mb and online-judge system throws MEMORY_LIMIT_EXCEEDED. I guess the problem is the way I use QUEUE. So what do you think is the problem? And how should I solve it?
Here is my code. And thanks in advance!:
...ANSWER
Answered 2018-Feb-08 at 09:55Your algorithm is not BFS, because, you can visit the same state more than one.
For example, 4 -> 3 -> 6 and 4 -> 8 -> 7 -> 6, which 6 will end up to be processed twice.
Secondly, for number x
that is greater than the target
, the minimum number of step is always
Community Discussions, Code Snippets contain sources that include Stack Exchange Network
Vulnerabilities
No vulnerabilities reported
Install online-judge
You can use online-judge like any standard Python library. You will need to make sure that you have a development environment consisting of a Python distribution including header files, a compiler, pip, and git installed. Make sure that your pip, setuptools, and wheel are up to date. When using pip it is generally recommended to install packages in a virtual environment to avoid changes to the system.
Support
Reuse Trending Solutions
Find, review, and download reusable Libraries, Code Snippets, Cloud APIs from over 650 million Knowledge Items
Find more librariesStay Updated
Subscribe to our newsletter for trending solutions and developer bootcamps
Share this Page