https://vjudge.net/problem/POJ-3268 一开始floyd超时了。。 对正图定点求最短,对逆图定点求最短,得到任意点到定点的往返最短路。 ...
分类:
其他好文 时间:
2018-05-09 19:30:31
阅读次数:
140
几乎是板子,求有几个size 1的scc 直接tarjan即可 cpp include include include using namespace std; const int N=10005; int n,m,h[N],cnt,ans,tmp,dfn[N],low[N],s[N],top; b ...
分类:
其他好文 时间:
2018-05-09 18:00:43
阅读次数:
143
题目描述 Farmer John has a brilliant idea for the next great spectator sport: Cow Steeplechase! As everyone knows, regular steeplechase involves a group o ...
分类:
其他好文 时间:
2018-05-07 21:08:38
阅读次数:
202
https://vjudge.net/problem/POJ-3617 这类字符串处理字典序问题经常用到贪心, 每决定输出一个字符之前,都要前后i++,j--逐个比大小,直至比出为止。 ...
分类:
其他好文 时间:
2018-05-06 20:38:02
阅读次数:
153
震惊!记忆化搜索忘记返回map值调了半小时! 边(u,v)的经过次数是:能到u的牛数\ v到n的方案数。正反两次连边,dfs两次即可 cpp include include include using namespace std; const int N=5005,M=50005; int n,m, ...
分类:
其他好文 时间:
2018-05-06 17:04:39
阅读次数:
155
1、常用的HTTP方法有哪些?GET: 用于请求访问已经被URI(统一资源标识符)识别的资源,可以通过URL传参给服务器POST:用于传输信息给服务器,主要功能与GET方法类似,但一般推荐使用POST方式。PUT: 传输文件,报文主体中包含文件内容,保存到对应URI位置。HEAD: 获得报文首部,与 ...
分类:
Web程序 时间:
2018-05-06 10:34:37
阅读次数:
198
项目中常常需要使用到字体图标,微信小程序中使用字体图标与在平常的web前端中类似但是又有区别。下面以使用阿里图标为例子讲解如何在微信小程序中使用字体图标。 第一步:下载需要的字体图标 进入阿里图标官网http://iconfont.cn/搜索自己想要的图标,如这里需要一个购物车的图标,流程为: 搜索 ...
分类:
其他好文 时间:
2018-05-05 20:38:30
阅读次数:
146
至今都不知道置换群是个什么东西……题解说什么就是什么.jpg 以下来自hzwer:http://hzwer.com/3905.html cpp include include include using namespace std; const int N=10005; int n,w[N],a[N ...
分类:
编程语言 时间:
2018-05-05 16:52:01
阅读次数:
156
Dollar Dayz Time Limit: 1000MS Memory Limit: 65536K Total Submissions: 8672 Accepted: 3233 Description Farmer John goes to Dollar Days at The Cow Stor ...
分类:
其他好文 时间:
2018-05-04 22:25:08
阅读次数:
220