# [Community Puzzle] The experience for creating puzzles

Coding Games and Programming Challenges to Code Better

This might need further review, as I might be confused myself. But comparing the problem statement with what I used to pass the validation tests, Iâ€™m currently in a mindset where:

The xp needed to reach the next level is ( NextLevel * Sqrt(NextLevel) * 10 ), rounded down.

â€¦ought to be replaced with:

The xp needed to reach the next level is ( CurrentLevel * Sqrt(CurrentLevel) * 10 ), rounded down.

3 Likes

Ah, crap. You know, looking at my code, youâ€™re right. How did I not catch this? My apologies. Could some CG individual please change the puzzle description as indicated? Thanks.

Unfortunately, changing the problem statement slightly lessens the joke since it no longer matches the CG formula, but itâ€™s either that or rewrite the tests and invalidate all currently submitted solutions (12 at this writing). Sigh.

• danBhentschel
1 Like

Another option is to change the verbiage to replace:

In the statement

â€śYouâ€™re given the current level and XP needed for BlitzProg to level upâ€ť â†’ â€śYouâ€™re given the next level BlitzProg needs to attain and the XP needed to get to that levelâ€ť

In the Input

â€śAn integer Level for the current level BlitzProg has reachedâ€ť â†’ â€śAn integer Level for the next level BlitzProg is working towardsâ€ť

** In the output**

â€śThe level BlitzProg has reachedâ€ť â†’ â€śThe next level BlitzProg is working towardsâ€ť

This might be a nicer change. Thoughts?

• danBhentschel
1 Like

You are right JBM, I too noticed that just after approving it - serves me right for solving it after approval. Bad Bob.

I think the simplest would be to update the statement the way JBM mentions - just replace â€śnext levelâ€ť with â€ścurrent levelâ€ť or â€ślevelâ€ť. For me itâ€™s not much of a problem if it doesnâ€™t match the actual CG formula - who bothers about that one anyway?

1 Like

Updated. .

2 Likes