上一页 1 ··· 21 22 23 24 25 26 27 28 29 ··· 32 下一页
摘要: 经典排序贪心开始时间从小到大为第一关键字结束时间从大到小为第二关键字从尾至头连一遍输出结果#include #include using namespace std;const int MAXN = 1e6 +... 阅读全文
posted @ 2018-07-12 17:09 张浦 阅读(61) 评论(0) 推荐(0) 编辑
摘要: 基础题(水题)数组存对应字母坑点在于结合题意判重一个原字母对应两个加密字母不行两个原字幕对应一个加密字母不行#include #include using namespace std;int main(){ ch... 阅读全文
posted @ 2018-07-12 16:22 张浦 阅读(64) 评论(0) 推荐(0) 编辑
摘要: 水题 结合题意双指针夹逼 #include #include #include using namespace std;const int MAXN = 3e4 + 10;int arr[MAXN];void ... 阅读全文
posted @ 2018-07-12 15:01 张浦 阅读(59) 评论(0) 推荐(0) 编辑
摘要: 水题 #include #include using namespace std;const int MAXN = 5e3 + 10;struct prc{ int price, val; }arr[MAXN]... 阅读全文
posted @ 2018-07-12 14:30 张浦 阅读(71) 评论(0) 推荐(0) 编辑
摘要: 朴素算法 遍历实现小根堆#include #include using namespace std;int arr[11000];int main(){ int N; cin>>N; for(int i =... 阅读全文
posted @ 2018-07-11 21:56 张浦 阅读(65) 评论(0) 推荐(0) 编辑
摘要: 1.排序2.前缀和#include #include #include using namespace std;const int MAXN = 1e3 + 10;struct que{ int num; int... 阅读全文
posted @ 2018-07-10 09:43 张浦 阅读(83) 评论(0) 推荐(0) 编辑
摘要: 很巧妙的思维题用数字表示直接全加成零就得了 有点像减法的借位#include using namespace std;int arr[120] = {0};int main(){ int N, sum = 0, ... 阅读全文
posted @ 2018-07-10 09:20 张浦 阅读(56) 评论(0) 推荐(0) 编辑
摘要: 这道题难点在于理解题意只有第一次可以从路到田,最后一次从田到路中间不能以回路再田的方式减少步数剩下的就是来回步数的细节问题顺序位置可以用结构体存了 没必要存二维数组代码#include #include #inc... 阅读全文
posted @ 2018-07-09 10:50 张浦 阅读(74) 评论(0) 推荐(0) 编辑
摘要: 没啥内容 xjb重载一下就得了//复数计算器 #include using namespace std;class cmplx //复数类{public: cmplx() //构造 { real = 0; ... 阅读全文
posted @ 2018-06-12 20:52 张浦 阅读(221) 评论(0) 推荐(0) 编辑
摘要: 1.添加员工(若不存在则添加, 存在则提示添加失败)2.查找员工3.输出所有员工4.删除单个员工后输出所有员工和退出操作代码:#include #include using namespace std;const... 阅读全文
posted @ 2018-06-01 22:30 张浦 阅读(177) 评论(0) 推荐(0) 编辑
上一页 1 ··· 21 22 23 24 25 26 27 28 29 ··· 32 下一页