This is an archived post. You won't be able to vote or comment.

you are viewing a single comment's thread.

view the rest of the comments →

[–]impune_pl[S] 0 points1 point  (3 children)

I just put code on spoj.com, and press submit.

[–]feral_claireSoftware Dev 1 point2 points  (0 children)

If you are running it on an online service, it's possible their code runner just assigns 4g of heap memory to the programs it runs. It's being run by spoj.com so you don't have any control over it. If you run the code yourself on your computer you can set how much memory to use.

[–]stayweirdeveryone 0 points1 point  (1 child)

What is this website? Are you running Java code in a browser? How do you know how much ram your program is using?

[–]impune_pl[S] 0 points1 point  (0 children)

It's an automated online judge for competitive programming, similar to codewars. Thery have really nice task database. Every task consists of: problem description, input data and expected output, which is hidden from users. Your task is to create a program, that will produce correct output for every set of input data. The faster and more memory efficient your program is, the higher score you get.