May the Triforce be with you!

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…

  1. You are timing out.
    Try printing the time taken as well to see if you area on the edge of the time limit.
  2. 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.

  1. groovy code is faster than java code that passes the validators, and a bit slower than scala code.
    replacing + by .concat, then by just printing one by one without concat did not help.
    replacing fancy (1..N).forEach and 1.upto(N) by simple for c-like loop helped a bit (down to 6-7ms).
  2. 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. :slight_smile:

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

2 Likes

this has been solved. Sorry for the long wait

1 Like