No Time for Dragons
来源:互联网 发布:添加mysql服务 编辑:程序博客网 时间:2024/06/11 04:24
/*按杀龙要的人数与牺牲人数之差降序排列,在遍历一遍即可。*/#include#include #includeusing namespace std;struct ss{ long long a; long long b;}Dragon[200000];int cmp(ss x,ss y){ if(x.a-x.b>y.a-y.b) return 1; return 0;}int main(){ int n; long long ans=0; cin>>n; for(int i=0;i
0 1
- No Time for Dragons
- Gym 101149B B - No Time for Dragons 模拟
- B. No Time for Dragons----排序水题
- GYM 101149 B.No Time for Dragons(贪心)
- GYM 101149 B.No Time for Dragons【二分+贪心】
- Dragons
- Dragons
- 时光不等人 Time waits for no man
- No time is no excuse.
- long time no see
- long time no see!
- Long time no swimming
- no time to say
- long time no see!
- Again Prime? No Time.
- Long time no come
- UVA10780Again Prime? No Time.
- Again Prime? No Time.
- JAVA CAS原理分析
- H5本地存储之存储JSON格式数据
- Android中的序列化方式
- d3.js 解决——元素覆盖
- 如何使用Git上传文件到Github之tortoiseGit的使用(二)
- No Time for Dragons
- String类的应用(作业)
- mysql(二)
- leetcode--Group Anagrams
- Java设计模式(1):单例模式
- 访问修饰符的作用范围
- 解决springMVC在浏览器请求数据时产生的乱码问题
- 移动端VIN码识别应用范围
- leetcode--ZigZag Conversion