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

最新文章

  1. List转换成XML
  2. 【代码笔记】iOS-点击加号增加书架,点击减号减少书架
  3. Mybatis批量插入oracle,mysql
  4. C# Socket 入门1(转)
  5. c# int? i = null
  6. js事件3
  7. How to export a model from SolidWorks to Google SketchUp
  8. bean之间的属性是怎么维护的
  9. js实现轮播图2
  10. css背景精华所在+前端页面开发流程
  11. imageNamed 、imageWithContentsOfFile、 initWithContentsFile区别
  12. 转-oracle中比较两表表结构差异和数据差异的方法
  13. Oracle11g服务详细介绍及哪些服务是必须开启的
  14. cocos2dx3.2升级Android5的坑
  15. 2017 Multi-University Training Contest - Team 4——HDU6069&amp;&amp;Counting Divisors
  16. linux install tomcat
  17. eclipse里启动rabbitmq报错 java.net.SocketException: Connection reset
  18. HDU 4320 Arcane Numbers 1 (数论)
  19. 【可持久化Trie】模板
  20. wifidog源码分析 - wifidog原理 tiger

热门文章

  1. Idea tomcat debug按钮灰色无法运行
  2. 为什么不直接去Arraylist list = new Arraylist();而是直接通过List list = new ArrayList();使用接口的好处
  3. IO流(二)
  4. Java学习(十六)
  5. js 增删节点
  6. 【死磕 NIO】— 深入分析Buffer
  7. &lt;C#任务导引教程&gt;练习五
  8. [bzoj1483]梦幻布丁
  9. Collections集合工具类的常用方法
  10. 实践案例1-利用低代码开发平台Odoo快速构建律师事务所管理系统