摘要: 题目链接:https://cn.vjudge.net/contest/242366#problem/L大体意思就是:h代表旅馆,m代表人,人每走动一个需要一个金币,行动只有两个方向,水平或者竖直。问你最终让所有人都能到达旅馆并且花的总费用最少。具体思路:一开始我是按照... 阅读全文
posted @ 2018-08-17 21:13 Let_Life_Stop 阅读(178) 评论(0) 推荐(0) 编辑
摘要: 模板题:#includeusing namespace std;int n,m;int a[11];void update(int t){ int i; while(t*2=1; i--) { update(i); }//数组下标... 阅读全文
posted @ 2018-08-17 11:29 Let_Life_Stop 阅读(159) 评论(0) 推荐(0) 编辑
摘要: 模板题:#includeusing namespace std;int n,m;int a[11];void update(int t){ int i; while(t*2=1; i--) { update(i); }//数组下标... 阅读全文
posted @ 2018-08-17 11:29 Let_Life_Stop 阅读(442) 评论(0) 推荐(0) 编辑
摘要: #includeusing namespace std;double a[2000];int main(){ char c; double n; while(cin>>n) { a[0]=n; if(n==0) ... 阅读全文
posted @ 2018-08-17 08:44 Let_Life_Stop 阅读(103) 评论(0) 推荐(0) 编辑
摘要: #includeusing namespace std;double a[2000];int main(){ char c; double n; while(cin>>n) { a[0]=n; if(n==0) ... 阅读全文
posted @ 2018-08-17 08:44 Let_Life_Stop 阅读(194) 评论(0) 推荐(0) 编辑
摘要: 题目链接:https://cn.vjudge.net/contest/234497#problem/A#include#include#include#include#include#include#include#include#include#include#in... 阅读全文
posted @ 2018-08-15 09:36 Let_Life_Stop 阅读(243) 评论(0) 推荐(0) 编辑
摘要: 题目链接:https://cn.vjudge.net/contest/234497#problem/A#include#include#include#include#include#include#include#include#include#include#in... 阅读全文
posted @ 2018-08-15 09:36 Let_Life_Stop 阅读(202) 评论(0) 推荐(0) 编辑
摘要: 我们三个人的精神的高度凝结的到了这套组合数模板#include#include#include#include#include#include#include#include#include#includeusing namespace std;# define in... 阅读全文
posted @ 2018-08-14 14:46 Let_Life_Stop 阅读(158) 评论(0) 推荐(0) 编辑
摘要: 我们三个人的精神的高度凝结的到了这套组合数模板#include#include#include#include#include#include#include#include#include#includeusing namespace std;# define in... 阅读全文
posted @ 2018-08-14 14:46 Let_Life_Stop 阅读(105) 评论(0) 推荐(0) 编辑
摘要: 题目链接:http://codeforces.com/problemset/problem/1000/B代码:#include#include#include#include#include#include#include#include#include#includ... 阅读全文
posted @ 2018-08-13 09:59 Let_Life_Stop 阅读(138) 评论(0) 推荐(0) 编辑