A - Kyu in AtCoder

直接模拟

#define IO ios::sync_with_stdio(false);cin.tie();cout.tie(0)
#define debug(x) cout<<#x<<": "<<x<<" "
#include<iostream>
#include<algorithm>
using namespace std;
int main()
{IO;int x;cin>>x;//cout<<10-x/200<<endl;标准答案if(x<=599)       cout<<'8'<<endl;else if(x<=799)  cout<<'7'<<endl;else if(x<=999)  cout<<'6'<<endl;else if(x<=1199) cout<<'5'<<endl;else if(x<=1399) cout<<'4'<<endl;else if(x<=1599) cout<<'3'<<endl;else if(x<=1799) cout<<'2'<<endl;else cout<<'1'<<endl;return 0;
}

B - Magic 2

贪心

#define IO ios::sync_with_stdio(false);cin.tie();cout.tie(0)
#define debug(x) cout<<#x<<": "<<x<<" "
#include<iostream>
#include<algorithm>
using namespace std;
int main()
{IO;int a,b,c,k;cin>>a>>b>>c>>k;int cnt=0;while(b<=a){b*=2;cnt++;}while(c<=b){c*=2;cnt++;}if(cnt<=k) cout<<"Yes"<<endl;else cout<<"No"<<endl;return 0;
}

C - Marks

比较一下就可以了

#define IO ios::sync_with_stdio(false);cin.tie();cout.tie(0)
#define debug(x) cout<<#x<<": "<<x<<" "
#include<iostream>
#include<algorithm>
using namespace std;
const int N=200010;
int a[N];
int main()
{IO;int n,k;cin>>n>>k;for(int i=1;i<=n;i++) cin>>a[i];for(int i=k+1;i<=n;i++){if(a[i]>a[i-k]) cout<<"Yes"<<endl;else cout<<"No"<<endl;}return 0;
}

D - Road to Millionaire

贪心:有钱就赚,低买高卖

#define IO ios::sync_with_stdio(false);cin.tie();cout.tie(0)
#define debug(x) cout<<#x<<": "<<x<<" "
#include<iostream>
#include<algorithm>
using namespace std;
typedef long long ll;
const int N=100;
int a[N],n;
int main()
{IO;cin>>n;for(int i=1;i<=n;i++) cin>>a[i];ll res=1000;for(int i=1;i<=n;i++)if(i<=n&&a[i+1]>=a[i])res=res/a[i]*a[i+1]+res%a[i];cout<<res<<endl;return 0;
}

只能做这些容易题~~嗨,要加油哦!

M-SOLUTIONS Programming Contest 2020总结相关推荐

  1. Atcoder Keyence Programming Contest 2020 D - Swap and Flip

    Atcoder Keyence Programming Contest 2020 D - Swap and Flip 题目描述 Solution 写了一个简单的O(2nn(n+w))O(2^nn(n+ ...

  2. Atcoder Panasonic Programming Contest 2020 B Bishop 周期性+难在特判

    Panasonic Programming Contest 2020   比赛人数6617   慢,比赛开始后10分钟才看到题目,比赛题目比ABC要灵活些 Atcoder Panasonic Prog ...

  3. Panasonic Programming Contest 2020 E.Three Substrings

    Panasonic Programming Contest 2020 E.Three Substrings 题目链接 这题考虑到贪心会有疏漏,加上数据范围比较小,所以考虑穷搜,即记录下所有冲突位置,a ...

  4. M-SOLUTIONS Programming Contest 2020 D.Road to Millionaire

    M-SOLUTIONS Programming Contest 2020 D.Road to Millionaire 题目链接 典型的股票买卖问题,允许任意次交易就非常简单,如果前一天股票便宜就买前一 ...

  5. HHKB Programming Contest 2020 总结

    A - Keyboard 签到题1 #define IO ios::sync_with_stdio(false);cin.tie();cout.tie(0) #pragma GCC optimize( ...

  6. AIsing Programming Contest 2020 总结

    A - Number of Multiples 按照题目意思走就行 #define IO ios::sync_with_stdio(false);cin.tie();cout.tie(0) #incl ...

  7. 2020-2021 ICPC Southeastern European Regional Programming Contest (SEERC 2020)

    2020-2021 ICPC Southeastern European Regional Programming Contest (SEERC 2020) B. Reverse Game 题目描述: ...

  8. The 2020 ICPC Asia Shenyang Regional Programming Contest I题 Rise of Shadows(数论)

    题目链接The 2020 ICPC Asia Shenyang Regional Programming Contest 题目大意: 一天内有H小时,每小时M分钟,时针分针以恒定速率旋转. 现在若时针 ...

  9. The 2020 ICPC Asia Yinchuan Regional Programming Contest

    The 2020 ICPC Asia Yinchuan Regional Programming Contest A 开三个vector数组存储x,y,z轴上的点,unique+erase去重 #in ...

最新文章

  1. Caused by: java.lang.NoClassDefFoundError: redis/clients/util/Pool
  2. 基于stm32智能风扇_一款基于STM32的智能灭火机器人设计
  3. ACL 2019 | 图表示解决长文本关系匹配问题:腾讯提出概念交互图算法
  4. 代码jit_但这是不可能的,或者无法发现JIT破坏了您的代码。
  5. ASP.NET进阶(8):HttpModule和HttpApplication
  6. 【CodeForces - 357D】Xenia and Hamming (字符串问题,数论,思维)
  7. 使用outputstream写到指定位置_MaxCompute Spark与Spark SQL对比分析及使用注意事项
  8. 2021军校高考成绩查询时间,2021考军校难吗 军校录取分数线是多少
  9. linux之sed使用
  10. 小程序项目:基于微信小程序音乐播放器——计算机毕业设计
  11. Bypass Windows AppLocker
  12. 运维:你们 JAVA 服务怎么又又又又出问题了,内存降不下来。
  13. 完整的保存onetab的书签信息
  14. 小特工具箱5.0发布 增加50+个功能
  15. Python PyQt4 文字朗读演示代码
  16. 结构体中的函数指针(c语言里一种思想)
  17. 电路设计实例(防止DC电源反接的方法)
  18. 过来人的经验:自学编程的6个建议
  19. 合肥师范Java考试试卷_合肥知到appJava Web程序设计-新期末题库-测验答案
  20. 机器学习经典算法---EM算法(一文秒懂极大释然估计和EM算法)

热门文章

  1. php 图片 3d旋转图片,html5实现图片的3D旋转效果
  2. 金蝶凭证序时簿在哪_来了!金蝶日常账务处理大全
  3. c++游戏代码大全_还在学少儿编程?不如来玩工厂编程师,免费学编程逻辑的小游戏...
  4. android 设置folder类型,正确配置你的 Android 项目
  5. 前端 input怎么显示null_小猿圈WEB前端之HTML5+CSS3面试题(一)
  6. 微型计算机硬件采用什么,微型计算机的硬件系统包括什么?
  7. python实例化对象是什么意思_请帮我理解python对象的实例化.
  8. [蓝桥杯2019初赛]矩形切割-找规律
  9. Zookeeper--ZAB与Paxos算法联系与区别
  10. matlab贝叶斯优化工具箱_经济学人的神器——BEAR(贝叶斯估计、分析和回归工具包)...