funny marbles problem

hi i tried to solve this problem im getting error in the submission. my solution is
. i know java a little but here i find only few submission in java. give me some example for java solution submissions. if i want to use Javascript i dont think it has something similar to stdin and stdout other than writing and reading html document. thanks in advance.

Here is i link to Java Solutions for this problem from the practice section. Here is the link to Java solutions during the contest.

Unfortunately no one has solved it in Javascript yet.

1 Like

i need some example on how to solve any problem here in javascript