摘要: 下载戳我~ 阅读全文
posted @ 2017-03-21 16:34 应子帆 阅读(170) 评论(0) 推荐(0) 编辑
摘要: 阅读全文
posted @ 2017-03-19 19:55 应子帆 阅读(474) 评论(1) 推荐(0) 编辑
摘要: NULL 阅读全文
posted @ 2018-03-20 21:31 应子帆 阅读(83) 评论(0) 推荐(0) 编辑
摘要: 【题目】 lowbit:一个数二进制中的最后一个1 如 :100111010→10,1011000→1000 a[i]:不解释。 sum[i]:a[i - lowbit(i) + 1].....a[i]的和 xask(i,j):a[i].....a[j]的值,前缀和实现。 可以得到:①sum[i] 阅读全文
posted @ 2018-03-18 20:01 应子帆 阅读(273) 评论(0) 推荐(0) 编辑
摘要: #include <cstdio> #include <cstring> #include <algorithm> using namespace std; #define N 100011 int n,w[N],a[N],f[N]; int main() { memset(f,0x7f,sizeo 阅读全文
posted @ 2018-03-16 23:03 应子帆 阅读(130) 评论(0) 推荐(0) 编辑
摘要: STL的优先队列: 头文件: 优先队列:priority_queue int类型默认优先队列(大根堆) int类型优先队列 (比较方式自定) 注意:cmp为结构体,且重载的是"()" 运算符! 自定类型优先队列 注意:重载"<" 运算符时只传入一个形参(number2 a)! 注意:用 “< ”时是 阅读全文
posted @ 2018-03-11 20:43 应子帆 阅读(237) 评论(0) 推荐(0) 编辑
摘要: #include<cstdio> #include<cstring> #include<vector> #include<algorithm> #include<iostream> using namespace std; struct BigInteger { static const int B 阅读全文
posted @ 2018-03-11 15:21 应子帆 阅读(1143) 评论(1) 推荐(0) 编辑
摘要: 下载链接 密码: x7tz 备用链接(无密码) 拖拽jpg格式文件 生成txt文件。 对比图↑↓ 欢迎使用! 阅读全文
posted @ 2018-03-10 12:59 应子帆 阅读(261) 评论(0) 推荐(0) 编辑
摘要: 题目在这里 首先想到的是DFS,附上80分代码(不知道为什么WA了一个点): #include <cstdio> #include <cstring> #define N 1001 int max(int a,int b){return a > b ? a : b;} int n,ans[N][N] 阅读全文
posted @ 2018-03-10 12:31 应子帆 阅读(160) 评论(0) 推荐(0) 编辑
摘要: 让窗体保持在最顶层实例 - CSDN博客1412729860_947537.jpg (466×312)MFC基本控件使用——列表控件(ListCtrl) - CSDN博客MFC界面库 - CSDN博客2013 duilib入门简明教程 -- VS环境配置(2) - Alberl - 博客园开局一个农 阅读全文
posted @ 2018-03-09 19:38 应子帆 阅读(715) 评论(0) 推荐(0) 编辑
摘要: 题目: 农夫约翰想要在他的正方形农场上建造一座正方形大牛棚。他讨厌在他的农场中砍树,想找一个能够让他在空旷无树的地方修建牛棚的地方。我们假定,他的农场划分成 N x N 的方格。输入数据中包括有树的方格的列表。你的任务是计算并输出,在他的农场中,不需要砍树却能够修建的最大正方形牛棚。牛棚的边必须和水 阅读全文
posted @ 2018-03-09 19:02 应子帆 阅读(222) 评论(0) 推荐(0) 编辑
摘要: 题目在这里 思路:暴力广度优先搜索+暴力判重(使用启发式搜索+康托展开更好) 阅读全文
posted @ 2017-04-09 16:01 应子帆 阅读(582) 评论(0) 推荐(0) 编辑