数论
hldfight
微信公众号:小胖的安全之旅
展开
-
求两圆环相交部分的面积
Matt is a big fan of logo design. Recently he falls in love with logo made up by rings. The following figures are some famous examples you may know.A ring is a 2-D figure bounded by two circ原创 2016-07-25 10:36:21 · 3460 阅读 · 0 评论 -
读入一个自然数,将n分解为质因子连乘的形式输出(筛法)
为了提高速度,采用筛法来求质因子:#include#include#include#includeusing namespace std;int main (){ int T; int n; scanf("%d", &T); while(T--) { scanf("%d", &n); printf("%原创 2016-07-13 21:21:43 · 6453 阅读 · 0 评论