Skip to content

Instantly share code, notes, and snippets.

@uhfx
Created May 12, 2013 16:50
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save uhfx/5564200 to your computer and use it in GitHub Desktop.
Save uhfx/5564200 to your computer and use it in GitHub Desktop.
シュースターのレベル
#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