- 博客(3)
- 收藏
- 关注
原创 bzoj 2761 不重复数字
先排序,然后把重复的改成很大的数,再排序,最后输出结果“不为那个很大的数”的数。 #include #include #include #include #include #include #define Maxn 1100000 #define Maxp 9999999 using namespace std; struct node { int x,y; }a[Maxn];
2015-02-03 14:45:17
289
原创 dsy 1002 轮状病毒
基尔霍夫矩阵。。。虽然不知道是什么,只知道 f(n)=f(n-1)*3-f(n-2)+2,在直接用高精度就可以。 #include#include#include#include#include#includeusing namespace std;struct node{ int a[101],len;}f[110];int n;node Uzi(node a,int k){ for(int
2015-02-02 15:11:21
299
原创 Qnumber
A:Qnumber 描述 12月23日是小H的女神的生日,最近小H都在烦恼着该送她什么样的生日礼物,但小H情商太低,始终没能想到一个很好的主意。 这天晚上,小H默默地对着1223这个数字看了很久很久,发现这个数字是一个ABBC的结构,而且A+1=B,B+1=C,他认为这种数非常有美感,于是称其为Q数。 “这还不够!”小H高呼,然后他就在Q数的基础上又定义了超Q数,即在Q数的基础上满
2015-01-18 15:01:00
590
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人