上一页 1 ··· 11 12 13 14 15
摘要: POJ3190 摊位预订。时间限制:1000MS内存限制:65536K。共提交材料:12959份接受:4 546名特别法官。描述。哦,那些挑剔的N(1<;=N<;=50,000)奶牛!他们是如此挑剔,以至于每一头奶牛都只能在某个精确的时间间隔A.B(1<;=A<;=B<;=1,000,000)内挤奶 阅读全文
posted @ 2019-03-04 19:42 阿斯水生产线 阅读(535) 评论(0) 推荐(0) 编辑
摘要: POJ 3614 1:奶牛的min和瓶子spx值从大到小排序 #include <iostream> #include <cmath> #include <cstdio> #include <cstring> #include <string> #include <map> #include <io 阅读全文
posted @ 2019-03-03 12:09 阿斯水生产线 阅读(516) 评论(0) 推荐(0) 编辑
摘要: POJ 3614 #include <iostream> #include <cmath> #include <cstdio> #include <cstring> #include <string> #include <algorithm> #include <queue> #include <s 阅读全文
posted @ 2019-02-25 21:11 阿斯水生产线 阅读(295) 评论(0) 推荐(0) 编辑
摘要: 记忆话递归 动态规划法: 阅读全文
posted @ 2019-02-01 13:35 阿斯水生产线 阅读(167) 评论(0) 推荐(0) 编辑
摘要: 快速幂取模(二分思想) 打了好多次比赛都用到快速幂,然而总是记得不太熟,今天写下来自己的模板 直接进行循环求幂的时间复杂度体现在for循环中,为O(b).这个算法存在着明显的问题,如果a和b过大,很容易就会溢出。 那么,我们先来看看第一个改进方案:在讲这个方案之前,要先有这样一个公式: ab mod 阅读全文
posted @ 2019-02-01 10:47 阿斯水生产线 阅读(196) 评论(0) 推荐(0) 编辑
摘要: c++ STL的浅谈 c++和c语言有很多区别,其中我觉得比较大的就是STL,STL中的很多东西都是先人给我们提前写好的,我们只要拿来用就行了。 STL最常用的有这些 1:string 2:vector 3:set 4:list 5:map 1:string 1:如何定义字符串 用string初始化 阅读全文
posted @ 2019-01-28 11:18 阿斯水生产线 阅读(194) 评论(0) 推荐(0) 编辑
摘要: 寒假?。。。。 阅读全文
posted @ 2019-01-28 03:58 阿斯水生产线 阅读(164) 评论(0) 推荐(0) 编辑
上一页 1 ··· 11 12 13 14 15