https://ideone.com/RpPof5
點左上角EDIT/fork
後點INPUT欄位第一行填武器ATK
第二行填精練值(數字S=15 A=14 C=13 B=12 D=11 E=10)
然後點SUBMIT/RUN
公式=(武器ATK+精煉值)+[(武器ATK*精煉值^2)/100]
C++ CODE
#include <iostream>
#include <string>
#include <stdio.h>
#include <math.h>
#include <stdlib.h>
using namespace std;
int main()
{
float a;
float b;
float c;
float d;
float total;
cout << "請輸入武器攻擊力" << endl;
cin >>a;
cout << "請輸入武器精練值" << endl;
cin >>b;
c=a*b*b;
d=c/100;
total=(a+b)+d;
cout << "武器精練過所增加的攻擊力=" << total << endl;
system("pause");
return 0;
}
測試A7161616退迴避+自然成功率
如果退雙防雙回復倍率65%一迴避一自然45%的話
A7161616退迴避應該是51潛可做
https://ideone.com/TMeUIq
#include <iostream>
#include <string>
#include <stdio.h>
#include <math.h>
#include <stdlib.h>
using namespace std;
int main()
{
float a;
float b;
float c;
float d;
float e;
float f;
float g;
float h;
cout << "請輸入基礎潛力" << endl;
cin >>a;
b=a-48;
c=b-2;
if (c>0)
{
d=c+121;
e=d-30;
f=e-101;
g=230/e*f;
h=130+g;
cout << "成功率=" << h << "%" << endl;
}
else
{
cout << "不適用此公式" << endl;
}
system("pause");
return 0;
}
測試A7CD216C16退迴避+自然成功率
https://ideone.com/YLzu6L
#include <iostream>
#include <string>
#include <stdio.h>
#include <math.h>
#include <stdlib.h>
using namespace std;
int main()
{
float a;
float b;
float c;
float d;
float e;
float f;
float g;
float h;
float i;
cout << "請輸入基礎潛力" << endl;
cin >>a;
b=a-20;
c=b-36;
d=c-1;
if (d>0)
{
e=d+121;
f=e-31;
g=f-101;
h=230/f*g;
i=130+h;
cout << "成功率=" << i << "%" << endl;
}
else
{
cout << "不適用此公式" << endl;
}
system("pause");
return 0;
}
[
本帖最後由 スネりスウ 於 2018-8-2 11:53 編輯 ]