上一页 1 ··· 30 31 32 33 34 35 36 37 38 ··· 50 下一页
摘要: 题目连接:https://uva.onlinejudge.org/index.php?option=com_onlinejudge&Itemid=8&page=show_problem&problem=4364 注意条件是可以旋转或者翻转,, 每条边看作点,两个正方形相连的边看作连接两点的有向边 拓 阅读全文
posted @ 2017-04-28 09:58 yijiull 阅读(175) 评论(0) 推荐(0) 编辑
摘要: 题目连接:https://uva.onlinejudge.org/index.php?option=com_onlinejudge&Itemid=8&page=show_problem&problem=3323 抄的代码,, 阅读全文
posted @ 2017-04-28 02:16 yijiull 阅读(143) 评论(0) 推荐(0) 编辑
摘要: 题目连接:https://uva.onlinejudge.org/index.php?option=com_onlinejudge&Itemid=8&page=show_problem&problem=1503 是树,递归即可 学习一下fgets的用法http://blog.csdn.net/dai 阅读全文
posted @ 2017-04-27 22:56 yijiull 阅读(143) 评论(0) 推荐(0) 编辑
摘要: 题目连接:https://uva.onlinejudge.org/index.php?option=com_onlinejudge&Itemid=8&page=show_problem&problem=1070 将每个单词首字母和尾字母抽象成两个点,中间一条有向边 判断是否存在欧拉路径 存在欧拉路径 阅读全文
posted @ 2017-04-27 21:24 yijiull 阅读(473) 评论(0) 推荐(0) 编辑
摘要: 题目连接:UVA - 10305 拓扑排序 lrj167 1 #include<cstdio> 2 #include<cstring> 3 #include<set> 4 #include<iostream> 5 #include<cctype> 6 #include<string> 7 #incl 阅读全文
posted @ 2017-04-27 17:52 yijiull 阅读(167) 评论(0) 推荐(0) 编辑
摘要: poj1979:(floodfill)http://poj.org/problem?id=1979 1 #include<cstdio> 2 #include<cstring> 3 int dir[4][2]={0,1,0,-1,1,0,-1,0}; 4 int n,m; 5 char p[25][ 阅读全文
posted @ 2017-04-25 08:48 yijiull 阅读(88) 评论(0) 推荐(0) 编辑
摘要: 题目连接:http://acm.hdu.edu.cn/showproblem.php?pid=2859 来自:http://www.cnblogs.com/kuangbin/p/3228215.html 阅读全文
posted @ 2017-04-24 17:54 yijiull 阅读(109) 评论(0) 推荐(0) 编辑
摘要: 题目连接:http://acm.hdu.edu.cn/showproblem.php?pid=2888 之前可能学了假的二维RMQ,跑了9000多ms。。。。。。 1 #include<cstdio> 2 #include<cstring> 3 #include<cmath> 4 #include< 阅读全文
posted @ 2017-04-24 17:24 yijiull 阅读(197) 评论(0) 推荐(0) 编辑
摘要: 题目连接:http://acm.hdu.edu.cn/showproblem.php?pid=3193 转换成求价格在0到p的酒店中的最短距离。。。 p最大10000 当p为0时一定选 阅读全文
posted @ 2017-04-24 16:18 yijiull 阅读(205) 评论(0) 推荐(0) 编辑
摘要: 题目连接:http://acm.hdu.edu.cn/showproblem.php?pid=3486 二分+RMQ 阅读全文
posted @ 2017-04-24 15:15 yijiull 阅读(132) 评论(0) 推荐(0) 编辑
上一页 1 ··· 30 31 32 33 34 35 36 37 38 ··· 50 下一页