#ifndef phigros_h
#define phigros_h
#include<bits/stdc++.h>
#define nullptr 0
namespace music {
struct phi_music {
const char* name;
int ez;
int hd;
int in;
bool hav_at;
int at;
};
struct grade {
char f;
char c;
char b;
char a;
char s;
char wv;
const char* bv;
const char* phi;
};
grade stdgrade = {'F', 'C', 'B', 'A', 'S', 'V', "VV", "φ"};
float cal_mus_rks(double Acc, int lv) {
double rks = (100*Acc-55)/45.00;
rks *= (rks*lv);
rks += 0.005;
rks = ((int)(rks*100))/100.0;
return rks;
}
float cal_mus_data(int sc, int lv) {
int data = (sc - (int)7e5)/(int)3e5;
if((lv-7) < 0) data *= 256;
else if((lv-10) < 0) data *= 512;
else if((lv-13) < 0) data *= 768;
else if((lv-15) < 0) data *= 1024;
else if(lv == 15) data *= 1280;
else if(lv == 16) data *= 1536;
else return nullptr;
return data;
}
}
#endif //phigros_h