- 博客(4)
- 资源 (1)
- 收藏
- 关注
原创 nyoj 301 递推求值 矩阵幂
给你一个递推公式:f(x)=a*f(x-2)+b*f(x-1)+c并给你f(1),f(2)的值,请求出f(n)的值,由于f(n)的值可能过大,求出f(n)对1000007取模后的值。注意:-1对3取模后等于2在涛神的协助下构造出来的矩阵:Fn b a 1 Fn-1Fn-1 = 1 00 Fn-2
2016-05-25 17:02:10 356
原创 Gym 100712H Bridges
An edge in an undirected graph is a bridge if after removing it the graph will be disconnected. Given an undirected connected graph, you are allowed to add one edge between any pair of nodes so th
2016-05-16 23:06:22 586
原创 POJ 3352 Road Construction
Road ConstructionTime Limit: 2000MS Memory Limit: 65536KTotal Submissions: 10648 Accepted: 5266DescriptionIt's almost summer time, and that means that it's almost
2016-05-09 21:08:36 804
原创 POJ 1523 SPF 找割点
SPFTime Limit: 1000MS Memory Limit: 10000KTotal Submissions: 7598 Accepted: 3453DescriptionConsider the two networks shown below. Assuming that data moves around
2016-05-04 19:20:48 367
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人