30 lines
443 B
C++
30 lines
443 B
C++
#include"findcc.h"
|
|
#include <iostream>
|
|
#include <algorithm>
|
|
using namespace std;
|
|
|
|
__declspec(dllexport)int Grs(float sp,float gp,float s1,float s2,float s3,float l1,float l2,float l3,float g1)
|
|
{
|
|
if(sp==100)
|
|
return 0;
|
|
else if(sp>=s3&&sp<100)
|
|
return 1;
|
|
else if(sp>=s2&&sp<s3)
|
|
{
|
|
if(100-sp<l2)
|
|
return 2;
|
|
else
|
|
return 3;
|
|
}
|
|
else if(sp>=s1&&sp<s2)
|
|
return 3;
|
|
else if(sp<s1)
|
|
{
|
|
if(gp>g1)
|
|
return 5;
|
|
else
|
|
return 4;
|
|
}
|
|
}
|
|
|