摘要: 题目是求fun(n)的值fun(n)= Gcd(3)+Gcd(4)+…+Gcd(i)+…+Gcd(n).Gcd(n)=gcd(C[n][1],C[n][2],……,C[n][n-1])C[n][k] means the number of way to choose k things from n ... 阅读全文
posted @ 2014-12-02 22:40 moonbay 阅读(204) 评论(0) 推荐(0)
摘要: 给定两个圆,求其覆盖的面积,其实也就是求其公共面积(然后用两圆面积和减去此值即得最后结果)。我一开始是用计算几何的方法做的,结果始终不过。代码如下:/* * Author : ben */#include #include #include #include #include #include... 阅读全文
posted @ 2014-12-02 18:12 moonbay 阅读(300) 评论(0) 推荐(0)