I don’t know. I’ve just tried my own solution, and cannot get AC myself either.
I did wonder whether the trailing space after the final array element could be the reason, but still WA when I removed it.
I also wondered whether there could be additional values after the valid X[i]s in the input, but I don’t think there are.
There are an awful lot of WAs though, so I’m still suspicious of the input.