Julia version of heap added#16
Conversation
|
Please, provide me a way to check Julia syntax without running the program. Give me full code (I tried some without success). |
|
There doesn't seem to be a specific flag to call
If this script is stored in |
|
Hi, @MikeMirzayanov, is this method of checking syntax what you are looking for? Or is there anything else? Btw, that command can be used as a one-liner, i.e. |
|
Hi @MikeMirzayanov , I want to bump this issue to know what it will take to have julia language in the codeforces languages. Thanks! |
|
It seems your "Theatre square" uses ~1GB of RAM (Windows 10, 64-bit, Julia 1.7.0). Do you know any workaround to reduce it? |
|
Also, it uses \n by default as a line-break instead of \r\n (on Windows). Do you know how to force \r\n by default? |
|
Could you please share how you measure RAM usage? Regarding linebreaks, does the following version does what you want? |
|
ping |
I saw a thread on
juliaat https://codeforces.com/blog/entry/79 and wanted to help out. This code is a slightly modified copy&paste ofpython3version. The biggest difference isjulia's 1-based indexing. On my machine running time was within a factor of 2 slower thanc++version.Also, I've posted a solution to the "Theatre square" problem mentioned in the thread. https://gist.github.com/artemsolod/3eb48e75b06216fd0af317546c793480
juliabinaries are available here https://julialang.org/downloads/. The command to run code isjulia heap.jlOne thing to note is that
juliaJIT-compiles code so it seems that every test-case would spend some time recompiling the solution.Hope this helps!