数学
文章平均质量分 84
99一零七19
这个作者很懒,什么都没留下…
展开
-
省赛模拟一 又一道简单题
http://acm.csu.edu.cn/csuoj/problemset/problem?pid=1785 输入一个四个数字组成的整数 n,你的任务是数一数有多少种方法,恰好修改一个数字,把它 变成一个完全平方数(不能把首位修改成 0)。比如 n=7844,有两种方法:3844=62^2和 7744=88^2。 Input 输入第一行为整数 T (1 Output原创 2017-07-09 16:39:02 · 293 阅读 · 0 评论 -
省赛模拟一 阶乘除法
http://acm.csu.edu.cn/csuoj/problemset/problem?pid=1781 输入两个正整数 n, m,输出 n!/m!,其中阶乘定义为 n!= 1*2*3*...*n (n>=1)。 比如,若 n=6, m=3,则n!/m!=6!/3!=720/6=120。 是不是很简单?现在让我们把问题反过来:输入 k=n!/m!,找到这样的整数二元组(n,m原创 2017-07-09 15:55:59 · 278 阅读 · 0 评论 -
zcmu 1901: Problem E: Logo
http://acm.zcmu.edu.cn/JudgeOnline/problem.php?id=1901 1901: Problem E: Logo Time Limit: 1 Sec Memory Limit: 128 MB Submit: 130 Solved: 37 [Submit][Status][Web Board] Description原创 2017-07-13 17:03:08 · 244 阅读 · 0 评论 -
A - Tricky Sum CodeForces - 598A (推公式)
A - Tricky Sum CodeForces - 598A In this problem you are to calculate the sum of all integers from 1 to n, but you should take all powers of two with minus in the sum. For example, for n = 4 the su...原创 2018-07-25 16:15:15 · 132 阅读 · 0 评论 -
C - 极角 CodeForces - 598C (数学)
C - 极角 CodeForces - 598C You are given the set of vectors on the plane, each of them starting at the origin. Your task is to find a pair of vectors with the minimal non-oriented angle between the...原创 2018-07-25 16:36:58 · 168 阅读 · 0 评论 -
2018 “百度之星”程序设计大赛 - 初赛(B)1004 p1m2 找规律数学
2018 “百度之星”程序设计大赛 - 初赛(B)1004(p1m2):选择数组中两个“不同”的元素,是指位置不同的元素 p1m2 Accepts: 1003 Submissions: 4595 Time Limit: 2000/1000 MS (Java/Others) Memory Limit: 131072/131072 K (Java/Others) ...原创 2018-08-12 21:58:51 · 220 阅读 · 0 评论