【C/C++】BanGDream活动点数计算器
2024-10-19 14:51:50
作为一个白嫖咸鱼,我每个活动都只打出三星卡就不玩了,于是写了一个模拟器,算算还要打几把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");
}
最新文章
- List转换成XML
- 【代码笔记】iOS-点击加号增加书架,点击减号减少书架
- Mybatis批量插入oracle,mysql
- C# Socket 入门1(转)
- c# int? i = null
- js事件3
- How to export a model from SolidWorks to Google SketchUp
- bean之间的属性是怎么维护的
- js实现轮播图2
- css背景精华所在+前端页面开发流程
- imageNamed 、imageWithContentsOfFile、 initWithContentsFile区别
- 转-oracle中比较两表表结构差异和数据差异的方法
- Oracle11g服务详细介绍及哪些服务是必须开启的
- cocos2dx3.2升级Android5的坑
- 2017 Multi-University Training Contest - Team 4——HDU6069&;&;Counting Divisors
- linux install tomcat
- eclipse里启动rabbitmq报错 java.net.SocketException: Connection reset
- HDU 4320 Arcane Numbers 1 (数论)
- 【可持久化Trie】模板
- wifidog源码分析 - wifidog原理 tiger
热门文章
- Idea tomcat debug按钮灰色无法运行
- 为什么不直接去Arraylist list = new Arraylist();而是直接通过List list = new ArrayList();使用接口的好处
- IO流(二)
- Java学习(十六)
- js 增删节点
- 【死磕 NIO】— 深入分析Buffer
- <;C#任务导引教程>;练习五
- [bzoj1483]梦幻布丁
- Collections集合工具类的常用方法
- 实践案例1-利用低代码开发平台Odoo快速构建律师事务所管理系统