Hi, in the game Temperatures,
in the test 2, it gives this inputs: 5, 4, 2, 1 and ask the following outpout: 2. But according to what we have to do, it should be 1, because it is the closest to zero Did i missunderstood something?
The stuff which reads our output is broken: if you give back ‘-10’ it will just read ‘-’ and tell you it is not ok as if you outpouted a number
Thanks you for this great website!
The input for test 2 is more like : -5 -4 -2 12 -40 4 2 18 11 5.
The puzzle has already been solved hundreds of times.
The validator read the output char by char and stop when the result is not as expected.
MrRoux is correct.
There is a bug with this test.
Here is the input:
And here is the expected output:
You can check that the input is correct with:
var TEMPS = readline(); // the N temperatures expressed as integers ranging from -273 to 5526
Can confirm, my solution in bash still passes. I doubt anything changed at all.
oh god it is hawfull how i can do shit sometimes XD