作为一个白嫖咸鱼,我每个活动都只打出三星卡就不玩了,于是写了一个模拟器,算算还要打几把hhh
#include <iostream>
#include <algorithm>
using namespace std;
const int goal = 77000;
struct cnt
{
int ap;
int score;
int pt;
int time;
};
int main()
{
int score = 21385;
int pt = 463;
cnt a, b, c; //a solo b挑战 c协力
// a.ap = 3;
// a.pt = ;
// a.score = 1680;
int apcounter = 0;
b.ap = 0;
b.pt = -200;
b.score = 4053;
b.time = 0;
c.ap = 3;
c.pt = 129;
c.score = 2565;
c.time = 0;
int time = 0;
while(score <= 77000)
{
time++;
if(pt > 200)
{
apcounter += b.ap;
pt += b.pt;
score += b.score;
b.time++;
}
else
{
apcounter += c.ap;
pt += c.pt;
score += c.score;
c.time++;
}
}
printf("%d", time);
system("pause");
}