2016年5月24日
摘要:
HDU 1716利用 DFS 的回溯产生全排列DFS 回溯的这点功能是很神奇的 #include<cstdio> #include<cstring> #include<cstdlib> #include<cmath> #include<cctype> #include<algorithm> #inc
阅读全文
posted @ 2016-05-24 19:37
南风丶丶
阅读(142)
推荐(0)
摘要:
zznu 1983最小生成树的变形,关键是想不到,想到也就不会觉得难了#include<cstdio> #include<cstring> #include<cstdlib> #include<cmath> #include<cctype> #include<algorithm> #include
阅读全文
posted @ 2016-05-24 19:13
南风丶丶
阅读(119)
推荐(0)
2016年5月22日
摘要:
题目链接: FZU 2132第一道概率论题目,说白了,就是算概率另外推荐一篇博文 http://blog.csdn.net/crescent__moon/article/details/17347379讲的很好#include<cstdio> #include<cstring> #include<c
阅读全文
posted @ 2016-05-22 17:19
南风丶丶
阅读(157)
推荐(0)
2016年5月14日
摘要:
HDU 2199#include<cstdio> #include<cstring> #include<cstdlib> #include<cctype> #include<cmath> #include<algorithm> using namespace std; #define N 510 #
阅读全文
posted @ 2016-05-14 20:09
南风丶丶
阅读(181)
推荐(0)
2016年5月10日
摘要:
题目链接: CodeForces 670C‘题意:有n个科学家去看电影,要使这些科学家能听懂的人数最多,在能听懂的人数一样的情况下,选择能看懂字幕的人数最多的那个电影作为答案神奇的二分搜索#include<cstdio> #include<cstring> #include<cstdlib> #in
阅读全文
posted @ 2016-05-10 16:29
南风丶丶
阅读(126)
推荐(0)
2016年5月9日
摘要:
题目链接 CodeForces 614A::::在要爆long long 时,用除法判断#include<cstdio> #include<cstring> #include<cstdlib> #include<cctype> #include<cmath> #include<algorithm>
阅读全文
posted @ 2016-05-09 22:50
南风丶丶
阅读(139)
推荐(0)
2016年5月3日
摘要:
// CodeForces 600B//二分搜索 时间复杂度为O(log n)#include<stdio.h> #include<string.h> #include<stdlib.h> #include<ctype.h> #include<math.h> #include<algorithm>
阅读全文
posted @ 2016-05-03 22:13
南风丶丶
阅读(149)
推荐(0)
2016年4月26日
摘要:
/*给组数据3 2 4 2dp[i][j]为:1 0 1第一秒0 2 02 0 20 4 0 答案为:4 */
阅读全文
posted @ 2016-04-26 13:45
南风丶丶
阅读(158)
推荐(0)
2016年4月21日
摘要:
//hdu 2133 what day is it//题意:给一个日期计算是周几//再次我采用从该日期到1年1月1日有多天,这时候y年以前比较好算,即(y-1)*365+(y-1)/4-(y-1)/100+(y-1)/400,(x/4-x/100+x/400),这样是直接计算出日期,要是你选择跑循环
阅读全文
posted @ 2016-04-21 23:11
南风丶丶
阅读(220)
推荐(0)
摘要:
//poj 2080//题目大意:给定天数,从2000年1月1日经过这些天后的 年 月 日 及 星期几//代码参照大牛的写的,本人还是处于菜鸟阶段,思路很好#include<stdio.h> #include<string.h> #include<stdlib.h> #include<ctype.h
阅读全文
posted @ 2016-04-21 16:33
南风丶丶
阅读(481)
推荐(0)