哈希,对于每个点哈希一次 哈希的方式:该点到联通分量边界(上下左右)的距离和 然后分别对两个图的n个点按hash值排序,判断是否相等即可 1 #include <set> 2 #include <map> 3 #include <cmath> 4 #include <queue> 5 #includ ...
分类:
编程语言 时间:
2020-02-11 14:34:01
阅读次数:
52
解题报告 之 POJ1021 Fibonacci Again
POJ1021 ,Fibonacci Again,数论,同余
There are another kind of Fibonacci numbers: F(0) = 7, F(1) = 11, F(n) = F(n-1) + F(n-2) (n>=2).
Description
There are another kind of Fibonacci numbers: F(0) = 7, F(1) = 11, F(n) = F(n...
分类:
其他好文 时间:
2015-05-11 14:58:00
阅读次数:
137