zoukankan      html  css  js  c++  java
  • 【C/C++】BanGDream活动点数计算器

    作为一个白嫖咸鱼,我每个活动都只打出三星卡就不玩了,于是写了一个模拟器,算算还要打几把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"); 
    }
    

  • 相关阅读:
    oracle_case when
    sql记录
    修改tomcat默认编码
    sql server_TED(透明数据加密)
    web请求过程
    freemarker 标签循环list 以及获取下标值
    鼠标操作
    窗口切换
    日历控件
    xpath定位
  • 原文地址:https://www.cnblogs.com/kinologic/p/14217466.html
Copyright © 2011-2022 走看看