Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <stdio.h>
- #include <stdint.h>
- #include <iostream>
- #include <cmath>
- static uint64_t getExpForLevel(int32_t lv)
- {
- return (((lv - 6ULL) * lv + 17ULL) * lv - 12ULL) / 6ULL * 100ULL;
- }
- static uint64_t getExpForLevelHell(int32_t lv)
- {
- if (lv == 1)
- return 1ULL;
- return (((lv - 6ULL) * lv + 17ULL) * lv - 12ULL) / 2ULL * 210ULL;
- }
- int main ()
- {
- for (int i = 1; i <= 300; ++i)
- {
- std::cout << "H LVL: " << i << " | " << getExpForLevelHell(i) <<" | N: " << getExpForLevel(i) << " | -: " << (getExpForLevel(i)*100)/getExpForLevelHell(i) << std::endl;
- }
- return 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement