码迷,mamicode.com
首页 > 其他好文
NUBT 1580 素数分解 母函数法解
#include #include #include #include using namespace std; int pre[209]; int ans[209]; int tmp[409]; int main(){ int sq= (int)sqrt(209.0); for(int i = 0;i <= 2...
分类:其他好文   时间:2015-08-16 15:15:19    阅读次数:135
POJ 3904 Sky Code (容斥+莫比乌斯反演)
POJ 3904 Sky Code (容斥+莫比乌斯反演)...
分类:其他好文   时间:2015-08-16 15:16:30    阅读次数:100
URAL1306 Sequence Median(卡内存神题)
给出n个数,n 卡内存的神题,用数组存下来刚好1mb,再加上运行时消耗内存,马上爆。因此我们用优先队列存储一半的数。网上的某些代码,用priority_queue全爆内存。我存的125000长度的数组,加上STL的make_heap() #include #include using namespace std; int a[125010]; int main() { in...
分类:其他好文   时间:2015-08-16 15:16:36    阅读次数:126
打造一款语音菜谱软件,人人都能是大厨!
首先自我介绍一下吧,我是个刚考上计算机专业研究生的X丝,对技术和互联网颇有兴趣。在兴趣的驱动下,大三的时候我和几个小伙伴开发了个人服务器的交易平台,在这个平台上大家可以把自己的一技之长作为商品出售给需要的人。三个月的开发加上三个月的运营,注册量可观但活跃量可悲。上了大四之后,小伙伴们的精力都转向了找工作,而我也开始备战考研。这个网站也就渐渐没落,但互联网对我的诱惑力依然强大,我们谈不上创业,我们想...
分类:其他好文   时间:2015-08-16 15:16:47    阅读次数:130
POJ 1001 Exponentiation 求高精度幂
Exponentiation Time Limit: 500MS   Memory Limit: 10000K Total Submissions: 147507   Accepted: 36006 Description Problems involving the computation of exact values of very l...
分类:其他好文   时间:2015-08-16 15:16:54    阅读次数:114
黑客专属记事本(编程记事本)
这个记事本比系统自带记事本视觉上更好看一些,大家可以下载试用一下,自我感觉还是可以的   黑客记事本本:360云盘下载    访问密码 259d 另外推荐几款好用的编程记事本,都已用过,都十分小巧实用,其中任一款都挺好用的,可以根据个人习惯,然后去从中选择一款使用 编程记事本:360云盘下载   访问密码 e20b     如果连接失效了,可以直接评论回复通知我哦,或者加...
分类:其他好文   时间:2015-08-16 15:13:47    阅读次数:182
hdu 5392 Infoplane in Tina Town (质因子分解求gcd)
题目:http://acm.hdu.edu.cn/showproblem.php?pid=5392 题意:至今没弄懂题意。按admin的意思猜的:求出每个循环的长度,然后求出这些长度的最小公倍数。结果%3221225473。 分析:首先求出每个循环的长度len,由于结果很大,用gcd求最小公倍数的时候不能直接模3221225473(模下gcd是不正确的......),可以将所有的长度len分解...
分类:其他好文   时间:2015-08-16 15:16:26    阅读次数:151
swiper插件制作轮播图swiper2.x和3.x差别
swiper3.x只兼容到ie10+,比较适合移动端。 swiper3.x官网  http://www.swiper.com.cn/ swiper2.x可以兼容到ie7+,官网是http://swiper2.swiper.com.cn/ 2.x和3.x使用上有差别 2.x需要引入 link rel="stylesheet" href="css/idangerous.swi...
分类:其他好文   时间:2015-08-16 15:13:54    阅读次数:158
HDU 1247 Hat’s Words(字典树)
题目链接:http://acm.hdu.edu.cn/showproblem.php?pid=1247 题意:输入一些单词,输出这些单词中可以由其他2个单词构成的单词。 思路:暴力+字典树 代码 #include #include #include #include #include #include #include using namespace...
分类:其他好文   时间:2015-08-16 15:15:27    阅读次数:129
短信发送的流程,硬编码在了服务方法里面,优化方案
短信发送的流程,直接硬编码在服务方法里面,如何优化? 需要建立一个系统的短信发送表,定义短信发送模板; 通过批处理,比如spring batch+quartz,去扫描这个表,来统一进行短信发送处理; 而不是各自service,直接发送短信,这样既造成硬编码,而且又造成入口很多, 导致无法管理,无法追溯短信发送的记录,以及是否发送成功。...
分类:其他好文   时间:2015-08-16 15:13:27    阅读次数:135
uva_10048_Audiophobia(floyd)
Audiophobia Time Limit: 3000MS   Memory Limit: Unknown   64bit IO Format: %lld & %llu Submit Status Description Consider yourself lucky! Consider yourself lucky to be sti...
分类:其他好文   时间:2015-08-16 15:15:29    阅读次数:174
关于time的使用
一般来说,我们会用time做这些事情,一个是,获取日期,一个是计算某段代码的运行时间。额,这是vs2008的。C++11有更好的精度。1.运行时间,clock_t单位是(ms),转为s 要/CLOCKS_PER_SEC(1000)#include #include #include void pri...
分类:其他好文   时间:2015-08-16 15:13:36    阅读次数:120
铺地毯
本题地址:http://www.luogu.org/problem/show?pid=1003noip2011提高组day1第1题题目描述 为了准备一个独特的颁奖典礼,组织者在会场的一片矩形区域(可看做是平面直角坐标系的第一象限)铺上一些矩形地毯。一共有 n 张地毯,编号从 1 到n 。现在将这些....
分类:其他好文   时间:2015-08-16 15:13:02    阅读次数:134
zoj 1028 Flip and Shift(数学)
Flip and ShiftTime Limit: 2 Seconds Memory Limit: 65536 KBThis puzzle consists of a random sequence of m black disks and n white disks on an oval-s...
分类:其他好文   时间:2015-08-16 15:13:15    阅读次数:126
LayoutInflater的原理分析【转载】
出处:http://blog.csdn.net/guolin_blog/article/details/12921889摘要:相信接触Android久一点的朋友对于LayoutInflater一定不会陌生,都会知道它主要是用于加载布局的。而刚接触Android的朋友可能对LayoutInflater...
分类:其他好文   时间:2015-08-16 15:12:26    阅读次数:205
【LeetCode】Add Digits
Add DigitsGiven a non-negative integernum, repeatedly add all its digits until the result has only one digit.For example:Givennum = 38, the process is...
分类:其他好文   时间:2015-08-16 15:11:22    阅读次数:80
POJ3026(BFS + prim)
Borg MazeTime Limit:1000MSMemory Limit:65536KTotal Submissions:10554Accepted:3501DescriptionThe Borg is an immensely powerful race of enhanced humanoi...
分类:其他好文   时间:2015-08-16 15:12:11    阅读次数:186
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!