摘要: 1:前n项和公式:1+2+3+...+n = n*(n+1)/22:前n项平方和公式:1^2+2^2+.........+n^2=n*(n+1)*(2n+1)/6#include#includeint main() {__int64 t,x,y;__int64 ans,sum;double a,b;... 阅读全文
posted @ 2014-03-17 21:10 HYDhyd 阅读(153) 评论(0) 推荐(0) 编辑
摘要: #include#include#define N 100#define INF 2000000000int b[N]; char s[100001];struct nodee{ int parent,lson,rson,visit,weight;}a[N];int main() { int ... 阅读全文
posted @ 2014-03-17 20:30 HYDhyd 阅读(285) 评论(0) 推荐(0) 编辑
摘要: http://blog.chinaunix.net/uid-26833883-id-3158234.html 阅读全文
posted @ 2014-03-17 19:20 HYDhyd 阅读(209) 评论(0) 推荐(0) 编辑