Created
May 12, 2013 16:50
-
-
Save uhfx/5564200 to your computer and use it in GitHub Desktop.
シュースターのレベル
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <stdio.h> | |
#include <math.h> | |
#define MAX_LV 100 | |
int main(void){ | |
int i,n; | |
int sum = 0; | |
printf("LV\t#NEXT\t#TOTAL\n"); | |
for(i=0; i < MAX_LV; i++){ | |
n = i * 100; | |
sum += n * (int)log(n); | |
printf("%d\t%d\t%d\n", i+1, n*(int)log(n), sum); | |
} | |
return 0; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment