Hello again,
I remember myself reporting this in the past already and it got fixed for some time. Now again I can see Groovy failing randomly with: “Timeout: your program did not write to the standard output in due time.”
Like this it is impossible to solve puzzles and/or COC. Results differ between each run, and unfortunately also between test case runs and after submitting. If I run 10 test cases it is always 1-2 cases failing and the others pass and each time a different one.
Specifically I am trying to solve “The Descent” puzzle to get progress in my quest map.
The code I use is:
input = new Scanner(System.in);
while (true) {
def maxHeight = -1
def maxId = -1
for (i = 0; i < 8; ++i) {
mountainH = input.nextInt()
if (mountainH > maxHeight) {
maxHeight = mountainH
maxId = i
}
}
println "$maxId"
}
Can you please have a look on this once more?
Thanks and gratefull greetings.