#include <stdio.h>
int main(){
int lu[100];
int exn,ex,lank;
lu[0]=100;
for(int i=1;i<100;i++){
lu[i]=lu[i-1]*(9+i);
}
scanf("%d",&exn);
scanf("%d",&ex);
lank=0;
for(int i=0;exn>lu[i];i++){
lank=i+1;
}
exn+=ex;
if(exn>=lu[lank+1]) lank++;
printf("今のレベル %d 経験値 %d / %d",lank,exn,lu[lank+1]);
return 0;
}
To embed this project on your website, copy the following code and paste it into your website's HTML: