Advertisement
poxipox

Untitled

Jan 11th, 2023
36
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.62 KB | None | 0 0
  1.  
  2. #include <stdio.h>
  3. #include <stdint.h>
  4. #include <iostream>
  5. #include <cmath>
  6.  
  7. static uint64_t getExpForLevel(int32_t lv)
  8. {
  9. return (((lv - 6ULL) * lv + 17ULL) * lv - 12ULL) / 6ULL * 100ULL;
  10. }
  11.  
  12. static uint64_t getExpForLevelHell(int32_t lv)
  13. {
  14.  
  15. if (lv == 1)
  16. return 1ULL;
  17.  
  18. return (((lv - 6ULL) * lv + 17ULL) * lv - 12ULL) / 2ULL * 210ULL;
  19. }
  20.  
  21.  
  22. int main ()
  23. {
  24. for (int i = 1; i <= 300; ++i)
  25. {
  26. std::cout << "H LVL: " << i << " | " << getExpForLevelHell(i) <<" | N: " << getExpForLevel(i) << " | -: " << (getExpForLevel(i)*100)/getExpForLevelHell(i) << std::endl;
  27.  
  28. }
  29.  
  30. return 0;
  31. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement