![](https://img-blog.csdnimg.cn/20201014180756927.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
数学
miao_2cm
这个作者很懒,什么都没留下…
展开
-
HDU 5301_Buildings
Time Limit: 4000/2000 MS (Java/Others) Memory Limit: 131072/131072 K (Java/Others)Total Submission(s): 1360 Accepted Submission(s): 380Problem DescriptionYour current task is to ma原创 2015-07-24 22:12:22 · 376 阅读 · 0 评论 -
CSU 1563 Lexicography
Description An anagram of a string is any string that can be formed using the same letters as the original. (We consider the original string an anagram of itself as well.) For example, the string ACM原创 2016-05-13 19:39:46 · 380 阅读 · 0 评论 -
HDU 5858 Hard problem(求角度的模板)
Time Limit: 2000/1000 MS (Java/Others) Memory Limit: 65536/65536 K (Java/Others)Problem Description cjj is fun with math problem. One day he found a Olympic Mathematics problem for primary school stu原创 2016-08-20 15:33:50 · 322 阅读 · 0 评论 -
HDU 5793 A Boring Question(快速幂+求逆元)
题目链接:http://acm.hdu.edu.cn/showproblem.php?pid=5793这道题就是给你一个公式,然后再给数据范围给你,然后求答案。这道题的公式推到最后就是一个等比数列的求和公式,也就是说,输入n和m,然后从m的0次方一直加到n次方的和就是答案。但是由于这道题的数据太大了,有1e9,所以我们不可能用for循环一直加到最后,所以根据公式,我们需要用到快速幂来求m^n。用快速原创 2016-08-04 19:08:57 · 915 阅读 · 0 评论