- 博客(10)
- 资源 (10)
- 收藏
- 关注
原创 寒假集训2 I 二分 hdu 5178
Problem I Time Limit : 2000/1000ms (Java/Other) Memory Limit : 32768/32768K (Java/Other) Total Submission(s) : 9 Accepted Submission(s) : 1 Font: Times New Roman | Verdana | Georgia Font S
2016-01-18 16:26:06 438
原创 寒假集训2 H hdu 5265 贪心
题目链接 Problem Description Pog and Szh are playing games.There is a sequence with n numbers, Pog will choose a number A from the sequence. Szh will choose an another number named B from the rest
2016-01-15 16:11:39 570
原创 寒假集训2 c 时钟问题 hdu 5387
原文链接 Problem C Time Limit : 2000/1000ms (Java/Other) Memory Limit : 65536/65536K (Java/Other) Total Submission(s) : 1 Accepted Submission(s) : 1 Font: Times New Roman | Verdana | Georgi
2016-01-15 13:32:26 449
原创 寒假集训2 B hdu 5272 关于二进制
题目链接:http://acm.hdu.edu.cn/showproblem.php?pid=5272 判断一个数中有多少组不连续的1,注意是组,即1101有2组,101也有两组 主要通过移位运算判断#include #include #include #include #include #include #include using namesp
2016-01-14 19:50:08 436
原创 寒假集训02 J hdu 5303 DP+枚举
题目链接:http://acm.hdu.edu.cn/showproblem.php?pid=5303 题意: 在一圈长为l的圆圈周围种了n棵苹果树 有一个容积为k的篮子 圆圈的原点是0,顺时针方向记录了苹果树的位置以及苹果的数量 将苹果全部摘完,最少需要走多少路 篮子装满就必须走回原点 题目分析: 对这个环,有3种操作: 1.顺时针过去取 2.逆时针过去取
2016-01-14 17:17:11 378
原创 hdu 2079 选课时间 DP动态规划 母函数 穷举 寒假集训1 07
原题链接 这题困扰很长时间,感觉有思路,却又无从下手,考虑到穷举,但实在没耐心,再而想到是DP,但是确实转移方程不好想到,最后用DP果然代码最短而且速度快,网上说母函数也可以做,关于母函数一直没有弄懂,该找个时间好好练一练了 /* Description:DP Author:sty Data:2016/1/11 */ #include #include #incl
2016-01-11 23:47:57 671
原创 hdu 2094 产生冠军 寒假集训1 09
原文链接 思路一:产生冠军的条件:(1)获胜的人没输过一次(2)最终获胜的人只有一个 思路二:观察一下,可以看到其实只要总元素数-失败者==1就可以输出YES了。。 思路三:左边的为胜利者,右边的为失败者,如果左边的胜利者只有一个没在右边出现过,那么这个就是产生的冠军,否则产生不了。 #include #include #include #include using names
2016-01-11 21:03:55 369
原创 HDU-2089 不要62 寒假集训1 08
原文链接 这题大部分方法采用数位DP可做,但是采用bool类型标记更简便 #include #include #include #include using namespace std; #define N 1000005 bool a[N]; bool f(int num) { int len, i; char s[10]; sprintf(s, "%d", n
2016-01-11 19:21:59 367
原创 hdu 2097 Sky数 寒假集训1 06
原题链接 思路:其实只需求各个位数之和,不需要进行进制转换,开始想的复杂了,同时采用函数进行书写,可大大提高效率和减少代码量 #include #include #include #include using namespace std; int f(int n, int m) { int sum = 0; while (n) { sum += n % m; n
2016-01-11 16:19:42 346
原创 hdu 2072 单词数 寒假集训1 -03
链接 #include #include #include #include using namespace std; char a[10000]; char b[10000][100]; int main () { // freopen("E:\input.txt", "r", stdin); char *c=NULL,*d=NULL; //指针初始化!!! i
2016-01-11 14:46:54 368
Deep learning Yann LeCun, Yoshua Bengio & Geoffrey Hinton 三位大牛综述
2017-09-25
OpenCV安装所需插件ippicv_linux_20151201.tgz
2017-08-16
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人