online-judge | ACM判题,对外提供HTTP判题服务
kandi X-RAY | online-judge Summary
kandi X-RAY | online-judge Summary
ACM判题,对外提供HTTP判题服务
Support
Quality
Security
License
Reuse
Top functions reviewed by kandi - BETA
- Listen task
- Creates the workspace
- Run test
- Main entry point
- The Kafka listener container container factory bean
- Create consumer config map
- Creates a new consumer factory
- Zips a file
- Recursively zip a file path
- Write the readme file
- Creates source file
- Replace the run word
- Execute the compiler
- Creates the main source file
- Creates the source file
- Creates the source file source file
- Creates the js source file
- Execute the compiler
- Display result
- Creates the main source script
- Test
- Test program
- Execute compile word
- The SimpleClientHttpRequestFactory bean
- Main entry point for the producer application
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 Java library. Please include the the jar files in your classpath. You can also use any IDE and you can run and debug the online-judge component as you would do with any other Java program. Best practice is to use a build tool that supports dependency management such as Maven or Gradle. For Maven installation, please refer maven.apache.org. For Gradle installation, please refer gradle.org .
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