hi, all validators for groovy failed. I tested N=2 in the IDE and it worked. Other languages worked also for the same algo. what should i check next? thanks.
There are some possible reasons for why all validators fail. I assume that you have not hardcoded the testcases…
- You are timing out.
Try printing the time taken as well to see if you area on the edge of the time limit.
- Lots of people are submitting now due to the unofficial contest. So there may be some server issue, but the CG team handles them very efficiently. So if you submit after an hour or two, the issue is likely resolved and if the failures continue it is probably in your code.
hi, thanks for your time.
- groovy code is faster than java code that passes the validators, and a bit slower than scala code.
.concat, then by just printing one by one without concat did not help.
1.upto(N)by simple for c-like loop helped a bit (down to 6-7ms).
- i can wait for the end of the contest. but i ran scala and java again w/o issue. scala and groovy codes have same algo.
i guess i should spend time on contests over than on easy training.
the problem here is with the platform, not with your code. (it’s not related either to the community contest imo)
I’ve tested your code in the contribution and it passed the validators in the IDE. I’ve created a bug ticket for the devs